6b35262272
Thanks to Lennart Beringer for pointing that that malloc failures could lead to invalid EVP_MD_CTX states. This change cleans up the code in general so that fallible operations are all performed before mutating objects. Thus failures should leave objects in a valid state. Also, |ctx_size| is never zero and a hash with no context is not sensible, so stop handling that case and simply assert that it doesn't occur. Change-Id: Ia60c3796dcf2f772f55e12e49431af6475f64d52 Reviewed-on: https://boringssl-review.googlesource.com/20544 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com> |
||
---|---|---|
.. | ||
digest.c | ||
digests.c | ||
internal.h | ||
md32_common.h |