0007-Remove-unused-SHA256_digestinfo-declaration.patch 844 B

1234567891011121314151617181920212223242526272829303132
  1. From c4b1a9b5547321126658be2b418edc5b86010e3a Mon Sep 17 00:00:00 2001
  2. From: Andrew Robbins <contact@andrewrobbins.info>
  3. Date: Thu, 15 Nov 2018 18:54:57 -0500
  4. Subject: [PATCH] Remove unused SHA256_digestinfo declaration
  5. ---
  6. common/sha256.c | 8 --------
  7. 1 file changed, 8 deletions(-)
  8. diff --git a/common/sha256.c b/common/sha256.c
  9. index e8f9f18..7e74a7f 100644
  10. --- a/common/sha256.c
  11. +++ b/common/sha256.c
  12. @@ -104,14 +104,6 @@ static const uint32_t sha256_k[64] = {
  13. 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
  14. 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2};
  15. -#define SHA256_DIGESTINFO_LEN 19
  16. -
  17. -static const uint8_t SHA256_digestinfo[] = {
  18. - 0x30, 0x31, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86,
  19. - 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05,
  20. - 0x00, 0x04, 0x20
  21. -};
  22. -
  23. void SHA256_init(struct sha256_ctx *ctx)
  24. {
  25. int i;
  26. --
  27. 2.7.4