mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
libmbedcrypto: Fix creating evp hash
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 856dc698a9)
This commit is contained in:
@@ -172,7 +172,7 @@ void evp_update(EVPCTX ctx, const void *data, unsigned long len)
|
|||||||
void evp_final(EVPCTX ctx, unsigned char *md, unsigned int *mdlen)
|
void evp_final(EVPCTX ctx, unsigned char *md, unsigned int *mdlen)
|
||||||
{
|
{
|
||||||
*mdlen = mbedtls_md_get_size(ctx->md_info);
|
*mdlen = mbedtls_md_get_size(ctx->md_info);
|
||||||
mbedtls_md_hmac_finish(ctx, md);
|
mbedtls_md_finish(ctx, md);
|
||||||
mbedtls_md_free(ctx);
|
mbedtls_md_free(ctx);
|
||||||
SAFE_FREE(ctx);
|
SAFE_FREE(ctx);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user