2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-01-11 10:17:49 +00:00

SHA1_DIGEST_SIZE also available as a static constant

This commit is contained in:
Michael Brown 2007-02-01 06:36:45 +00:00
parent cc8f9e4b7f
commit 0050378f51
2 changed files with 2 additions and 1 deletions

View File

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

View File

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