SHA1_DIGEST_SIZE also available as a static constant
authorMichael Brown <mcb30@etherboot.org>
Thu, 1 Feb 2007 06:36:45 +0000 (06:36 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 1 Feb 2007 06:36:45 +0000 (06:36 +0000)
src/crypto/axtls_sha1.c
src/include/gpxe/sha1.h

index b44fe7f..62ff878 100644 (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,
index 0a81101..2d6e90d 100644 (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;