mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 00:12:19 +03:00
SHA1_DIGEST_SIZE also available as a static constant
This commit is contained in:
@@ -19,7 +19,7 @@ struct crypto_algorithm sha1_algorithm = {
|
|||||||
.name = "sha1",
|
.name = "sha1",
|
||||||
.ctxsize = SHA1_CTX_SIZE,
|
.ctxsize = SHA1_CTX_SIZE,
|
||||||
.blocksize = 64,
|
.blocksize = 64,
|
||||||
.digestsize = SHA1_SIZE,
|
.digestsize = SHA1_DIGEST_SIZE,
|
||||||
.init = sha1_init,
|
.init = sha1_init,
|
||||||
.encode = sha1_update,
|
.encode = sha1_update,
|
||||||
.final = sha1_final,
|
.final = sha1_final,
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
struct crypto_algorithm;
|
struct crypto_algorithm;
|
||||||
|
|
||||||
#define SHA1_CTX_SIZE sizeof ( SHA1_CTX )
|
#define SHA1_CTX_SIZE sizeof ( SHA1_CTX )
|
||||||
|
#define SHA1_DIGEST_SIZE SHA1_SIZE
|
||||||
|
|
||||||
extern struct crypto_algorithm sha1_algorithm;
|
extern struct crypto_algorithm sha1_algorithm;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user