2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-01-18 21:43:14 +00:00

Added "name" field to digest algorithms

This commit is contained in:
Michael Brown 2006-11-21 16:14:50 +00:00
parent d37f82509f
commit fdaddd969a
2 changed files with 3 additions and 0 deletions

View File

@ -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,

View File

@ -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 */