summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto/getentropy_linux.c
diff options
context:
space:
mode:
authordoug <>2015-04-25 15:28:47 +0000
committerdoug <>2015-04-25 15:28:47 +0000
commitf7c257c94b0ba9258a1f7a5ec03099db9586b791 (patch)
tree2d4124d3ad14035e2d57d39b5be185892b4a24c7 /src/lib/libcrypto/crypto/getentropy_linux.c
parent61630c9631a2bd70570f348c1a65eefb0a864d9d (diff)
downloadopenbsd-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