Pārlūkot izejas kodu

SHA1_DIGEST_SIZE also available as a static constant

tags/v0.9.3
Michael Brown 18 gadus atpakaļ
vecāks
revīzija
0050378f51
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/crypto/axtls_sha1.c
  2. 1
    0
      src/include/gpxe/sha1.h

+ 1
- 1
src/crypto/axtls_sha1.c Parādīt failu

@@ -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 Parādīt failu

@@ -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
 

Notiek ielāde…
Atcelt
Saglabāt