87897a8cea
This is the first structure to be implemented with the new BIGNUM ASN.1 routines. Object reuse in the legacy d2i/i2d functions is implemented by releasing whatever was in *out before and setting it to the newly-allocated object. As with the new d2i_SSL_SESSION, this is a weaker form of object reuse, but should suffice for reasonable callers. As ECDSA_SIG is more likely to be parsed alone than as part of another structure (and using CBB is slightly tedious), add convenient functions which take byte arrays. For consistency with SSL_SESSION, they are named to/from_bytes. from_bytes, unlike the CBS variant, rejects trailing data. Note this changes some test expectations: BER signatures now push an error code. That they didn't do this was probably a mistake. BUG=499653 Change-Id: I9ec74db53e70d9a989412cc9e2b599be0454caec Reviewed-on: https://boringssl-review.googlesource.com/5269 Reviewed-by: Adam Langley <agl@google.com> |
||
---|---|---|
.. | ||
algorithm.c | ||
asn1.c | ||
CMakeLists.txt | ||
digestsign.c | ||
evp_ctx.c | ||
evp_extra_test.cc | ||
evp_test.cc | ||
evp_tests.txt | ||
evp.c | ||
internal.h | ||
p_dsa_asn1.c | ||
p_ec_asn1.c | ||
p_ec.c | ||
p_rsa_asn1.c | ||
p_rsa.c | ||
pbkdf_test.cc | ||
pbkdf.c | ||
sign.c |