diff options
author | Hans Nilsson <[email protected]> | 2018-05-21 12:54:43 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-11-19 17:22:38 +0100 |
commit | e923747f392a3c3a4da0aae2f3766d3173b80f6e (patch) | |
tree | f7717102571b60410a3ceae073989794ffae732a /lib/ssh/src/ssh_message.erl | |
parent | 5503d96504a89b1b00a78f7e7d12e79be553b215 (diff) | |
download | otp-e923747f392a3c3a4da0aae2f3766d3173b80f6e.tar.gz otp-e923747f392a3c3a4da0aae2f3766d3173b80f6e.tar.bz2 otp-e923747f392a3c3a4da0aae2f3766d3173b80f6e.zip |
ssh: Add public keys 'ssh-ed25519' and 'ssh-ed448'
Requires OpenSSL-1.1.1
https://tools.ietf.org/html/draft-ietf-curdle-ssh-ed25519-ed448-00
Diffstat (limited to 'lib/ssh/src/ssh_message.erl')
-rw-r--r-- | lib/ssh/src/ssh_message.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_message.erl b/lib/ssh/src/ssh_message.erl index da4027a763..d95e58c1bb 100644 --- a/lib/ssh/src/ssh_message.erl +++ b/lib/ssh/src/ssh_message.erl @@ -611,7 +611,13 @@ encode_signature({_, #'Dss-Parms'{}}, _SigAlg, Signature) -> <<?Ebinary(<<"ssh-dss">>), ?Ebinary(Signature)>>; encode_signature({#'ECPoint'{}, {namedCurve,OID}}, _SigAlg, Signature) -> CurveName = public_key:oid2ssh_curvename(OID), - <<?Ebinary(<<"ecdsa-sha2-",CurveName/binary>>), ?Ebinary(Signature)>>. + <<?Ebinary(<<"ecdsa-sha2-",CurveName/binary>>), ?Ebinary(Signature)>>; +encode_signature({ed_pub, ed25519,_}, _SigAlg, Signature) -> + <<?Ebinary(<<"ssh-ed25519">>), ?Ebinary(Signature)>>; +encode_signature({ed_pub, ed448,_}, _SigAlg, Signature) -> + <<?Ebinary(<<"ssh-ed448">>), ?Ebinary(Signature)>>. + + %%%################################################################ %%%# |