mirror of
https://github.com/ipxe/ipxe
synced 2026-02-02 07:52:48 +03:00
Added "name" field to digest algorithms
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user