mbedtls_md_clone() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_md_clone() function

This function clones the state of an message-digest context. \warning This function clones the message-digest state, not the HMAC state.

Syntax

int mbedtls_md_clone( mbedtls_md_context_t *dst,     const mbedtls_md_context_t *src );
Implemented in md.c:200

Arguments

dst

The destination context.

src

The context to be cloned.

Return value

\c 0 on success. #MBEDTLS_ERR_MD_BAD_INPUT_DATA on parameter-verification failure.

Notes

You must call mbedtls_md_setup() on \c dst before calling this function. The two contexts must have the same type, for example, both are SHA-256.

References

LocationText
md.c:200
int mbedtls_md_clone( mbedtls_md_context_t *dst,
md.h:223
int mbedtls_md_clone( mbedtls_md_context_t *dst,

Call Tree

Functions called by mbedtls_md_clone()
mbedtls_md_clone()
all items filtered out
Data read by mbedtls_md_clone()
mbedtls_md_clone()