Browse Source

Added "name" field to digest algorithms

tags/v0.9.3
Michael Brown 18 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
 }
234
 }
235
 
235
 
236
 struct digest_algorithm md5_algorithm = {
236
 struct digest_algorithm md5_algorithm = {
237
+	.name		= "md5",
237
 	.context_len	= sizeof ( struct md5_ctx ),
238
 	.context_len	= sizeof ( struct md5_ctx ),
238
 	.digest_len	= MD5_DIGEST_SIZE,
239
 	.digest_len	= MD5_DIGEST_SIZE,
239
 	.init		= md5_init,
240
 	.init		= md5_init,

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

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

Loading…
Cancel
Save