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:
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…
x
Reference in New Issue
Block a user