From ec4f9699718054f2b4e49ed441f3420c257f5f26 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 17 Mar 2015 12:53:10 +0100 Subject: digest: add verify callback this will allow to compare a md with the original one When calling this do not call final For RSA_SIGN verification final does not exist only verify as final will be for signing Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- crypto/md5.c | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/md5.c') diff --git a/crypto/md5.c b/crypto/md5.c index fe17ff5863..4847b38631 100644 --- a/crypto/md5.c +++ b/crypto/md5.c @@ -294,6 +294,7 @@ static struct digest_algo md5 = { .init = digest_md5_init, .update = digest_md5_update, .final = digest_md5_final, + .verify = digest_generic_verify, .length = 16, .ctx_length = sizeof(struct MD5Context), }; -- cgit v1.2.3