Package com.hierynomus.sshj.signature
Class SignatureSkEd25519
java.lang.Object
net.schmizz.sshj.signature.AbstractSignature
net.schmizz.sshj.signature.AbstractSignatureDSA
com.hierynomus.sshj.signature.AbstractSecurityKeySignature
com.hierynomus.sshj.signature.SignatureSkEd25519
- All Implemented Interfaces:
Signature
Signature for the
sk-ssh-ed25519@openssh.com FIDO/U2F key type. The raw Ed25519
signature is used as-is in both directions.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class net.schmizz.sshj.signature.AbstractSignature
signature -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]deviceSignatureToSsh(byte[] deviceSignature) Convert the authenticator's native signature into the SSH raw-signature encoding (r||s as two mpints for ECDSA, unchanged for Ed25519).protected byte[]sshSignatureToDevice(byte[] sshRawSignature) Convert the SSH raw-signature encoding read off the wire into the byte format the JCA verification engine expects (DER for ECDSA, unchanged for Ed25519).Methods inherited from class com.hierynomus.sshj.signature.AbstractSecurityKeySignature
encode, initSign, initVerify, isSignaturePreEncoded, sha256, sign, update, verifyMethods inherited from class net.schmizz.sshj.signature.AbstractSignatureDSA
encodeAsnSignatureMethods inherited from class net.schmizz.sshj.signature.AbstractSignature
extractSig, getSignatureName, update
-
Constructor Details
-
SignatureSkEd25519
public SignatureSkEd25519()
-
-
Method Details
-
sshSignatureToDevice
protected byte[] sshSignatureToDevice(byte[] sshRawSignature) Description copied from class:AbstractSecurityKeySignatureConvert the SSH raw-signature encoding read off the wire into the byte format the JCA verification engine expects (DER for ECDSA, unchanged for Ed25519).- Specified by:
sshSignatureToDevicein classAbstractSecurityKeySignature
-
deviceSignatureToSsh
protected byte[] deviceSignatureToSsh(byte[] deviceSignature) Description copied from class:AbstractSecurityKeySignatureConvert the authenticator's native signature into the SSH raw-signature encoding (r||s as two mpints for ECDSA, unchanged for Ed25519).- Specified by:
deviceSignatureToSshin classAbstractSecurityKeySignature
-