Re: Calling EVP_DigestFinal_ex multiple times

2019-06-17 Thread Sam Roberts
On Mon, Jun 17, 2019 at 2:07 AM Matt Caswell wrote: > On 15/06/2019 15:08, Tobias Nießen wrote: > > I am wondering whether it is permitted to call EVP_DigestFinal_ex multiple > > times on the same context in order to retrieve the same digest twice. I > > expected OpenSSL to fail with an error code

Re: Calling EVP_DigestFinal_ex multiple times

2019-06-17 Thread Matt Caswell
On 15/06/2019 15:08, Tobias Nießen wrote: > Hello, > > I am wondering whether it is permitted to call EVP_DigestFinal_ex multiple > times on the same context in order to retrieve the same digest twice. I > expected OpenSSL to fail with an error code, but SHA256 seems to permit it > whereas SHA3

Calling EVP_DigestFinal_ex multiple times

2019-06-15 Thread Tobias Nießen
Hello, I am wondering whether it is permitted to call EVP_DigestFinal_ex multiple times on the same context in order to retrieve the same digest twice. I expected OpenSSL to fail with an error code, but SHA256 seems to permit it whereas SHA3 seems to cause a segmentation fault. The documentatio