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 protectedED25519KeyAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.i2p.crypto.eddsa.EdDSAPublicKeydecodePublicKey(byte[] encodedPublicKey)byte[]decodeSignature(byte[] encodedSignature)byte[]encodePublicKey(net.i2p.crypto.eddsa.EdDSAPublicKey publicKey)byte[]encodeSignature(byte[] signature)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 IOException- Specified by:
encodeSignaturein classKeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>- Throws:
IOException
-
decodeSignature
public byte[] decodeSignature(byte[] encodedSignature) throws IOException- Specified by:
decodeSignaturein classKeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>- Throws:
IOException
-
encodePublicKey
public byte[] encodePublicKey(net.i2p.crypto.eddsa.EdDSAPublicKey publicKey) throws IOException- Specified by:
encodePublicKeyin classKeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>- Throws:
IOException
-
decodePublicKey
public net.i2p.crypto.eddsa.EdDSAPublicKey decodePublicKey(byte[] encodedPublicKey) throws IOException- Specified by:
decodePublicKeyin classKeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>- Throws:
IOException
-
getCertificateDecoders
public List<CertificateDecoder> getCertificateDecoders()
- Specified by:
getCertificateDecodersin classKeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,net.i2p.crypto.eddsa.EdDSAPrivateKey>
-
-