瀏覽代碼

SHA1_DIGEST_SIZE also available as a static constant

tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
0050378f51
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1
    1
      src/crypto/axtls_sha1.c
  2. 1
    0
      src/include/gpxe/sha1.h

+ 1
- 1
src/crypto/axtls_sha1.c 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存