diff --git a/src/crypto/md5.c b/src/crypto/md5.c index 2aa21020c..182b625fe 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 e2a728fda..023a00228 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 */