aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/src/public_key.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2010-06-09 09:37:04 +0000
committerErlang/OTP <[email protected]>2010-06-09 09:37:04 +0000
commit5cec02b04436ac121d95cec59c98ced8deb477d8 (patch)
treebafdd82f1cb61c5b23ea7fa890f55ea50deffcc7 /lib/public_key/src/public_key.erl
parent58076ca43949a935e36696608aefed373d6edbe9 (diff)
downloadotp-5cec02b04436ac121d95cec59c98ced8deb477d8.tar.gz
otp-5cec02b04436ac121d95cec59c98ced8deb477d8.tar.bz2
otp-5cec02b04436ac121d95cec59c98ced8deb477d8.zip
Support new crypto function
Diffstat (limited to 'lib/public_key/src/public_key.erl')
-rw-r--r--lib/public_key/src/public_key.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public_key/src/public_key.erl b/lib/public_key/src/public_key.erl
index d1d45f21a0..12354eee5d 100644
--- a/lib/public_key/src/public_key.erl
+++ b/lib/public_key/src/public_key.erl
@@ -360,7 +360,9 @@ verify_signature(PlainText, DigestType, Signature, #'RSAPublicKey'{} = Key,
pubkey_crypto:verify(DigestType, PlainText, Signature, Key, KeyParams);
verify_signature(PlainText, sha, Signature, Key, #'Dss-Parms'{} = KeyParams)
when is_binary(PlainText), is_binary(Signature), is_integer(Key) ->
- pubkey_crypto:verify(sha, PlainText, Signature, Key, KeyParams).
+ pubkey_crypto:verify(sha, PlainText, Signature, Key, KeyParams);
+verify_signature(Hash, none, Signature, Key, KeyParams) ->
+ pubkey_crypto:verify(none, Hash, Signature, Key, KeyParams).
verify_signature(DerCert, Key, #'Dss-Parms'{} = KeyParams)
when is_binary(DerCert), is_integer(Key) ->