commit | d3827c74d54f2fa0523fab16c6edf6f3f8c203dc | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Tue Sep 03 12:56:37 2019 +0100 |
committer | Hanno Becker <hanno.becker@arm.com> | Mon Sep 09 09:45:57 2019 +0100 |
tree | e2b079379d3202786e2760c7a61fa989746fde5c | |
parent | 62a44d43b013a780f964ffc1593464038b3383e5 [diff] [blame] |
Introduce getter for MD handle from MD context
diff --git a/library/pkcs5.c b/library/pkcs5.c index 2717aaa..a517778 100644 --- a/library/pkcs5.c +++ b/library/pkcs5.c
@@ -226,7 +226,7 @@ unsigned int i; unsigned char md1[MBEDTLS_MD_MAX_SIZE]; unsigned char work[MBEDTLS_MD_MAX_SIZE]; - unsigned char md_size = mbedtls_md_get_size( ctx->md_info ); + unsigned char md_size = mbedtls_md_get_size( mbedtls_md_get_handle( ctx ) ); size_t use_len; unsigned char *out_p = output; unsigned char counter[4];