summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Nilsson <hans@erlang.org>2021-04-12 09:23:51 +0200
committerGitHub <noreply@github.com>2021-04-12 09:23:51 +0200
commite93c2734460fde0f45f6b7d71b284bb7cbe7ffb7 (patch)
treef5e611190dc5f1bbea1f745bc6a2c4350b395460
parent2b0d30b0e77a8aa2be7e8ffad54a76f226afee77 (diff)
parent80d0956f8ad027f290db1d0c9982271edfca1e3a (diff)
downloaderlang-e93c2734460fde0f45f6b7d71b284bb7cbe7ffb7.tar.gz
Merge pull request #4723 from leoliu/master
Add missing digest none to crypto:sign/4 and verify/6 OTP-17312
-rw-r--r--lib/crypto/src/crypto.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index a9c18a3779..1fa2d3805c 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -1360,7 +1360,8 @@ rand_seed_nif(_Seed) -> ?nif_stub.
when Algorithm :: pk_sign_verify_algs(),
DigestType :: rsa_digest_type()
| dss_digest_type()
- | ecdsa_digest_type(),
+ | ecdsa_digest_type()
+ | none,
Msg :: iodata() | {digest,iodata()},
Key :: rsa_private()
| dss_private()
@@ -1426,7 +1427,8 @@ verify(Algorithm, Type, Data, Signature, Key) ->
when Algorithm :: pk_sign_verify_algs(),
DigestType :: rsa_digest_type()
| dss_digest_type()
- | ecdsa_digest_type(),
+ | ecdsa_digest_type()
+ | none,
Msg :: iodata() | {digest,iodata()},
Signature :: binary(),
Key :: rsa_public()