Add md/shaXXX_clone() API

Will be used in the SSL/TLS modules
This commit is contained in:
Manuel Pégourié-Gonnard 2015-07-06 15:26:26 +02:00
parent b9d64e5bbe
commit 16d412f465
14 changed files with 105 additions and 0 deletions
library

View file

@ -89,6 +89,12 @@ void mbedtls_sha256_free( mbedtls_sha256_context *ctx )
mbedtls_zeroize( ctx, sizeof( mbedtls_sha256_context ) );
}
void mbedtls_sha256_clone( mbedtls_sha256_context *dst,
const mbedtls_sha256_context *src )
{
*dst = *src;
}
/*
* SHA-256 context setup
*/