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/include/mbedtls/md.h b/include/mbedtls/md.h index 40624e4..111427f 100644 --- a/include/mbedtls/md.h +++ b/include/mbedtls/md.h
@@ -104,6 +104,12 @@ void *hmac_ctx; } mbedtls_md_context_t; +static inline mbedtls_md_handle_t mbedtls_md_get_handle( + struct mbedtls_md_context_t const *ctx ) +{ + return( ctx->md_info ); +} + /** * \brief This function returns the list of digests supported by the * generic digest module.