summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_oaep.c
diff options
context:
space:
mode:
authortb <>2022-11-19 11:53:38 +0000
committertb <>2022-11-19 11:53:38 +0000
commit70ddf26a8fd6a69b3352837ca8e572eabcdfb7c1 (patch)
tree43f97556a03caa392123ac17cb7a5449d5a04051 /src/lib/libcrypto/rsa/rsa_oaep.c
parentb78141471e53d13ea11d14dd53817687e84a5a92 (diff)
downloadopenbsd-70ddf26a8fd6a69b3352837ca8e572eabcdfb7c1.tar.gz
openbsd-70ddf26a8fd6a69b3352837ca8e572eabcdfb7c1.tar.bz2
openbsd-70ddf26a8fd6a69b3352837ca8e572eabcdfb7c1.zip
Rework pkey_dsa_sign() and pkey_dsa_verify()
Since DSA_sign() and DSA_verify() ignore their type argument, don't bother to determine it here. Check all size_t for overflow before passing them as int arguments. Follow OpenSSL and add a check to see if the tbs blob's length matches the one of the md, in case it is set on the EVP_PKEY_CTX. Fix return value check of DSA_sign(). ok jsing
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_oaep.c')
0 files changed, 0 insertions, 0 deletions