Browse Source

SHA1_DIGEST_SIZE also available as a static constant

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
0050378f51
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      src/crypto/axtls_sha1.c
  2. 1
    0
      src/include/gpxe/sha1.h

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

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

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

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

Loading…
Cancel
Save