Rewrite c2i_ASN1_INTEGER() using CBS.
authorjsing <jsing@openbsd.org>
Wed, 27 Apr 2022 17:42:08 +0000 (17:42 +0000)
committerjsing <jsing@openbsd.org>
Wed, 27 Apr 2022 17:42:08 +0000 (17:42 +0000)
commit8a6d3bd6837d9d0f3d44bd86ef097272fa983a77
treea305a166228811701de2f9432119a7e67be5a022
parentf7b0214c21e39d8dbbb49d8b1f8a189ed892ad93
Rewrite c2i_ASN1_INTEGER() using CBS.

This also makes validation stricter and inline with X.690 - we now reject
zero length inputs (rather than treating them as zero values) and enforce
minimal encoding.

ok tb@
lib/libcrypto/asn1/a_int.c