Browse Source

Added "name" field to digest algorithms

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
fdaddd969a
2 changed files with 3 additions and 0 deletions
  1. 1
    0
      src/crypto/md5.c
  2. 2
    0
      src/include/gpxe/crypto.h

+ 1
- 0
src/crypto/md5.c View File

@@ -234,6 +234,7 @@ static void md5_finish(void *context, void *out)
234 234
 }
235 235
 
236 236
 struct digest_algorithm md5_algorithm = {
237
+	.name		= "md5",
237 238
 	.context_len	= sizeof ( struct md5_ctx ),
238 239
 	.digest_len	= MD5_DIGEST_SIZE,
239 240
 	.init		= md5_init,

+ 2
- 0
src/include/gpxe/crypto.h View File

@@ -14,6 +14,8 @@
14 14
  *
15 15
  */
16 16
 struct digest_algorithm {
17
+	/** Algorithm name */
18
+	const char *name;
17 19
 	/** Size of a context for this algorithm */
18 20
 	size_t context_len;
19 21
 	/** Size of a message digest for this algorithm */

Loading…
Cancel
Save