Hi,

I have a couple of questions regarding the EVP_MD_CTX_copy_ex() function in crypto/evp/digest.c and I would appreciate if you can shed some light upon it.

Q1: If a digest copy function is provided by an engine, is the EVP_MD_CTX_copy_ex() function the only function in OpenSSL that will call that digest copy function ?

Q2: If an engine uses the digest context passed from the OpenSSL's EVP_* functions directly, then the direct memcpy() in the EVP_MD_CTX_copy_ex() function does the copy, and therefore, the engine shouldn't need to do this copy again. Because the direct memcpy() is sufficient for the copy, it appears to be unnecessary for the engine to provide a copy function. Is this the case ?


Thanks,
Huie-Ying Lee
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to