diff options
author | Hans Nilsson <[email protected]> | 2016-11-11 14:33:14 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2016-11-18 15:05:38 +0100 |
commit | 01bd8ba71ce1f56ec9f8ef9de8a9f123076ed12a (patch) | |
tree | 60145005612d274d97f2505d2db7343a4af9b016 /lib | |
parent | 849ccb69d20a1febaf8a6681a996bec04a2f9590 (diff) | |
download | otp-01bd8ba71ce1f56ec9f8ef9de8a9f123076ed12a.tar.gz otp-01bd8ba71ce1f56ec9f8ef9de8a9f123076ed12a.tar.bz2 otp-01bd8ba71ce1f56ec9f8ef9de8a9f123076ed12a.zip |
public_key: type extension (digest_type())
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public_key/src/public_key.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public_key/src/public_key.erl b/lib/public_key/src/public_key.erl index 418a824ab7..fed3b09f36 100644 --- a/lib/public_key/src/public_key.erl +++ b/lib/public_key/src/public_key.erl @@ -92,7 +92,8 @@ -type public_crypt_options() :: [{rsa_pad, rsa_padding()}]. -type rsa_digest_type() :: 'md5' | 'sha'| 'sha224' | 'sha256' | 'sha384' | 'sha512'. -type dss_digest_type() :: 'none' | 'sha'. %% None is for backwards compatibility --type ecdsa_digest_type() :: 'sha'| 'sha224' | 'sha256' | 'sha384' | 'sha512'. +-type ecdsa_digest_type() :: 'sha'| 'sha224' | 'sha256' | 'sha384' | 'sha512'. +-type digest_type() :: rsa_digest_type() | dss_digest_type() | ecdsa_digest_type(). -type crl_reason() :: unspecified | keyCompromise | cACompromise | affiliationChanged | superseded | cessationOfOperation | certificateHold | privilegeWithdrawn | aACompromise. -type oid() :: tuple(). @@ -821,7 +822,7 @@ oid2ssh_curvename(?'secp521r1') -> <<"nistp521">>. %%-------------------------------------------------------------------- -spec ssh_hostkey_fingerprint(public_key()) -> string(). --spec ssh_hostkey_fingerprint(md5, public_key()) -> string(). +-spec ssh_hostkey_fingerprint(digest_type(), public_key()) -> string(). ssh_hostkey_fingerprint(Key) -> sshfp_string(md5, Key). |