Class ED25519KeyAlgorithm


  • public class ED25519KeyAlgorithm
    extends KeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,​net.i2p.crypto.eddsa.EdDSAPrivateKey>
    Author:
    Michael Clarke
    • Constructor Detail

      • ED25519KeyAlgorithm

        protected ED25519KeyAlgorithm()
    • Method Detail

      • encodeSignature

        public byte[] encodeSignature​(byte[] signature)
                               throws java.io.IOException
        Specified by:
        encodeSignature in class KeyAlgorithm<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 class KeyAlgorithm<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 class KeyAlgorithm<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 class KeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,​net.i2p.crypto.eddsa.EdDSAPrivateKey>
        Throws:
        java.io.IOException