mirror of https://github.com/ipxe/ipxe.git
Added "name" field to digest algorithms
parent
d37f82509f
commit
fdaddd969a
|
@ -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,
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue