diff options
author | doug <> | 2015-04-25 15:28:47 +0000 |
---|---|---|
committer | doug <> | 2015-04-25 15:28:47 +0000 |
commit | f7c257c94b0ba9258a1f7a5ec03099db9586b791 (patch) | |
tree | 2d4124d3ad14035e2d57d39b5be185892b4a24c7 /src/lib/libcrypto/crypto/getentropy_linux.c | |
parent | 61630c9631a2bd70570f348c1a65eefb0a864d9d (diff) | |
download | openbsd-f7c257c94b0ba9258a1f7a5ec03099db9586b791.tar.gz openbsd-f7c257c94b0ba9258a1f7a5ec03099db9586b791.tar.bz2 openbsd-f7c257c94b0ba9258a1f7a5ec03099db9586b791.zip |
Check for invalid leading zeros in CBS_get_asn1_uint64.
ASN.1 integers cannot have all zeros or all ones for the first 9 bits.
This rule ensures the numbers are encoded with the smallest number of
content octets (see ITU-T Rec X.690 section 8.3.2).
Based on BoringSSL commit 5933723b7b592e9914f703d630b596e140c93e16
ok deraadt@ jsing@
Diffstat (limited to 'src/lib/libcrypto/crypto/getentropy_linux.c')
0 files changed, 0 insertions, 0 deletions