Sfoglia il codice sorgente

SHA1_DIGEST_SIZE also available as a static constant

tags/v0.9.3
Michael Brown 18 anni fa
parent
commit
0050378f51
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1
    1
      src/crypto/axtls_sha1.c
  2. 1
    0
      src/include/gpxe/sha1.h

+ 1
- 1
src/crypto/axtls_sha1.c Vedi File

@@ -19,7 +19,7 @@ struct crypto_algorithm sha1_algorithm = {
19 19
 	.name		= "sha1",
20 20
 	.ctxsize	= SHA1_CTX_SIZE,
21 21
 	.blocksize	= 64,
22
-	.digestsize	= SHA1_SIZE,
22
+	.digestsize	= SHA1_DIGEST_SIZE,
23 23
 	.init		= sha1_init,
24 24
 	.encode		= sha1_update,
25 25
 	.final		= sha1_final,

+ 1
- 0
src/include/gpxe/sha1.h Vedi File

@@ -6,6 +6,7 @@
6 6
 struct crypto_algorithm;
7 7
 
8 8
 #define SHA1_CTX_SIZE sizeof ( SHA1_CTX )
9
+#define SHA1_DIGEST_SIZE SHA1_SIZE
9 10
 
10 11
 extern struct crypto_algorithm sha1_algorithm;
11 12
 

Loading…
Annulla
Salva