diff options
author | Péter Dimitrov <[email protected]> | 2019-01-28 16:14:56 +0100 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2019-01-28 16:14:56 +0100 |
commit | 91686262b52a95aa06d0272e98fe610d84121b90 (patch) | |
tree | 739eeed78eea39a801e385e4b1c43ae5533a6e31 /lib/crypto | |
parent | 1ea703443fa0bbc3aade0bb61fc96b2f0cf6b84c (diff) | |
download | otp-91686262b52a95aa06d0272e98fe610d84121b90.tar.gz otp-91686262b52a95aa06d0272e98fe610d84121b90.tar.bz2 otp-91686262b52a95aa06d0272e98fe610d84121b90.zip |
crypto: Fix type spec rsa_sign_verify_opt()
Add missing type {rsa_mgf1_md, sha2} to rsa_sign_verify_opt.
This commit fixes dialyzer warnings when crypto users configured
explicit MGF1 hash function for RSA PSS signatures.
Change-Id: Ie11b1c73fc0d111303e256a578a2fd7b0d09b18a
Diffstat (limited to 'lib/crypto')
-rw-r--r-- | lib/crypto/src/crypto.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl index 6836e30a1b..987bc3fe0f 100644 --- a/lib/crypto/src/crypto.erl +++ b/lib/crypto/src/crypto.erl @@ -914,7 +914,8 @@ rand_seed_nif(_Seed) -> ?nif_stub. -type pk_sign_verify_opts() :: [ rsa_sign_verify_opt() ] . -type rsa_sign_verify_opt() :: {rsa_padding, rsa_sign_verify_padding()} - | {rsa_pss_saltlen, integer()} . + | {rsa_pss_saltlen, integer()} + | {rsa_mgf1_md, sha2()}. -type rsa_sign_verify_padding() :: rsa_pkcs1_padding | rsa_pkcs1_pss_padding | rsa_x931_padding | rsa_no_padding |