]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
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 b44fe7fe830ba771be3e76a3071f031253f1defd..62ff878a098142c2c3f12e5ff5ccbe486d0ccd74 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 0a811018c20d577a26bd106b5665b3f73c9fdbbf..2d6e90ddfdd3899ab7e2844c75d530729852087a 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;