summaryrefslogtreecommitdiff
path: root/src/test/test_rendcache.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-31 16:15:20 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-04 14:52:35 -0400
commit600e046ed32f9826bcbdf223d99ed8af23a67504 (patch)
treeddd8bd777f63c3ee5f684bb40478a4a91b94a492 /src/test/test_rendcache.c
parent3b5d6ef15bec26c3bda22057ba09e1301613ee71 (diff)
downloadtor-600e046ed32f9826bcbdf223d99ed8af23a67504.tar.gz
tor-600e046ed32f9826bcbdf223d99ed8af23a67504.zip
Rename crypto_pk_check_key(), use it more reasonably, add tests
This function was a wrapper around RSA_check_key() in openssl, which checks for invalid RSA private keys (like those where p or q are composite, or where d is not the inverse of e, or where n != p*q). We don't need a function like this in NSS, since unlike OpenSSL, NSS won't let you import a bogus private key. I've renamed the function and changed its return type to make it more reasonable, and added a unit test for trying to read a key where n != p*q.
Diffstat (limited to 'src/test/test_rendcache.c')
0 files changed, 0 insertions, 0 deletions