Package com.trilead.ssh2.signature
Class ED25519KeyAlgorithm
- java.lang.Object
-
- com.trilead.ssh2.signature.KeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>
-
- com.trilead.ssh2.signature.ED25519KeyAlgorithm
-
public class ED25519KeyAlgorithm extends KeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>
- Author:
- Michael Clarke
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ED25519KeyAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.i2p.crypto.eddsa.EdDSAPublicKey
decodePublicKey(byte[] encodedPublicKey)
byte[]
decodeSignature(byte[] encodedSignature)
byte[]
encodePublicKey(net.i2p.crypto.eddsa.EdDSAPublicKey publicKey)
byte[]
encodeSignature(byte[] signature)
java.util.List<CertificateDecoder>
getCertificateDecoders()
-
Methods inherited from class com.trilead.ssh2.signature.KeyAlgorithm
generateSignature, getKeyFormat, supportsKey, verifySignature
-
-
-
-
Method Detail
-
encodeSignature
public byte[] encodeSignature(byte[] signature) throws java.io.IOException
- Specified by:
encodeSignature
in classKeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>
- Throws:
java.io.IOException
-
decodeSignature
public byte[] decodeSignature(byte[] encodedSignature) throws java.io.IOException
- Specified by:
decodeSignature
in classKeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>
- Throws:
java.io.IOException
-
encodePublicKey
public byte[] encodePublicKey(net.i2p.crypto.eddsa.EdDSAPublicKey publicKey) throws java.io.IOException
- Specified by:
encodePublicKey
in classKeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>
- Throws:
java.io.IOException
-
decodePublicKey
public net.i2p.crypto.eddsa.EdDSAPublicKey decodePublicKey(byte[] encodedPublicKey) throws java.io.IOException
- Specified by:
decodePublicKey
in classKeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>
- Throws:
java.io.IOException
-
getCertificateDecoders
public java.util.List<CertificateDecoder> getCertificateDecoders()
- Specified by:
getCertificateDecoders
in classKeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>
-
-