From 0050378f5167f9972f94ac374cebad749fb39395 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 1 Feb 2007 06:36:45 +0000 Subject: [PATCH] SHA1_DIGEST_SIZE also available as a static constant --- src/crypto/axtls_sha1.c | 2 +- src/include/gpxe/sha1.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crypto/axtls_sha1.c b/src/crypto/axtls_sha1.c index b44fe7fe8..62ff878a0 100644 --- a/src/crypto/axtls_sha1.c +++ b/src/crypto/axtls_sha1.c @@ -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, diff --git a/src/include/gpxe/sha1.h b/src/include/gpxe/sha1.h index 0a811018c..2d6e90ddf 100644 --- a/src/include/gpxe/sha1.h +++ b/src/include/gpxe/sha1.h @@ -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;