From fdaddd969a5f5ae798baa0b68f4fff6b28f91665 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 21 Nov 2006 16:14:50 +0000 Subject: [PATCH] Added "name" field to digest algorithms --- src/crypto/md5.c | 1 + src/include/gpxe/crypto.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/crypto/md5.c b/src/crypto/md5.c index 2aa21020..182b625f 100644 --- a/src/crypto/md5.c +++ b/src/crypto/md5.c @@ -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, diff --git a/src/include/gpxe/crypto.h b/src/include/gpxe/crypto.h index e2a728fd..023a0022 100644 --- a/src/include/gpxe/crypto.h +++ b/src/include/gpxe/crypto.h @@ -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 */