summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/errstr.c
diff options
context:
space:
mode:
authortb <>2023-03-04 20:54:52 +0000
committertb <>2023-03-04 20:54:52 +0000
commit98663aed9698c546fe7e0b3f24371011c019a59b (patch)
tree56d6ce1822f7f755194f5fbf467c6b748c4ec587 /src/usr.bin/openssl/errstr.c
parent24d9ef03af8101abac25f58af7b7ec7bfa9050c9 (diff)
downloadopenbsd-98663aed9698c546fe7e0b3f24371011c019a59b.tar.gz
openbsd-98663aed9698c546fe7e0b3f24371011c019a59b.tar.bz2
openbsd-98663aed9698c546fe7e0b3f24371011c019a59b.zip
Provide dsa_check_key()
This is a cheap check that ensures basid parameter consistency per FIPS 186-4: 1 < g < q, that q has the allowed bit sizes 160, 224, 256 and that p is neither too small nor too large. Unfortunately, enforcing the three allowed sizes for p is not possible since the default dsa key generation has not respected this limitation. Instead of checking that p and q are prime, we only check that they are odd. Check that public and private keys, if set, are in the proper range. In particular, disallow zero values. Various versions of these checks have been added to the dsa code over time. This consolidates and extends them and in a subsequent commit wewill replace the incomplete checks. BoringSSL has a similar function of the same name, thanks to David Benjamin for pointing it out. ok beck jsing
Diffstat (limited to 'src/usr.bin/openssl/errstr.c')
0 files changed, 0 insertions, 0 deletions