Mbed TLS is now part of TrustedFirmware.org.

Function to copy a particular context (md_context_t for example)

May 31, 2014 06:09

It will be nice to have a function that allows one to duplicate a particular context in it's current state ala EVP_MD_CTX_copy() in OpenSSL.

This is a handy function to have if there are large amounts of data to be hashed where only a few bytes differ from each other. Alternatively, is there another way to accomplish this?

Jun 4, 2014 18:58
Paul Bakker

Agreed. I'll put it on the list..

There is no quick way to do it now without a non-generic switch with the different MD-type context sizes.