]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Added "name" field to digest algorithms
authorMichael Brown <mcb30@etherboot.org>
Tue, 21 Nov 2006 16:14:50 +0000 (16:14 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 21 Nov 2006 16:14:50 +0000 (16:14 +0000)
src/crypto/md5.c
src/include/gpxe/crypto.h

index 2aa21020c7e5fb4a5781ee96139145bb9c112978..182b625fe24ef16d0c95f489bd727acf45ea1e12 100644 (file)
@@ -234,6 +234,7 @@ static void md5_finish(void *context, void *out)
 }
 
 struct digest_algorithm md5_algorithm = {
+       .name           = "md5",
        .context_len    = sizeof ( struct md5_ctx ),
        .digest_len     = MD5_DIGEST_SIZE,
        .init           = md5_init,
index e2a728fda3d8cde5d933a7f3cd49a45735910b6b..023a00228ffeee0c58c80c6eeb975b1016835497 100644 (file)
@@ -14,6 +14,8 @@
  *
  */
 struct digest_algorithm {
+       /** Algorithm name */
+       const char *name;
        /** Size of a context for this algorithm */
        size_t context_len;
        /** Size of a message digest for this algorithm */