diff options
author | Michael Brown | 2006-11-21 17:14:50 +0100 |
---|---|---|
committer | Michael Brown | 2006-11-21 17:14:50 +0100 |
commit | fdaddd969a5f5ae798baa0b68f4fff6b28f91665 (patch) | |
tree | 3d354e982f43c60743b14d59cbe9d8d4bfc7d8b7 /src | |
parent | Added debug statements. (diff) | |
download | ipxe-fdaddd969a5f5ae798baa0b68f4fff6b28f91665.tar.gz ipxe-fdaddd969a5f5ae798baa0b68f4fff6b28f91665.tar.xz ipxe-fdaddd969a5f5ae798baa0b68f4fff6b28f91665.zip |
Added "name" field to digest algorithms
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto/md5.c | 1 | ||||
-rw-r--r-- | src/include/gpxe/crypto.h | 2 |
2 files changed, 3 insertions, 0 deletions
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 */ |