Class ED25519KeyAlgorithm


  • public class ED25519KeyAlgorithm
    extends KeyAlgorithm<net.i2p.crypto.eddsa.EdDSAPublicKey,​net.i2p.crypto.eddsa.EdDSAPrivateKey>
    • Field Detail

      • ED25519_KEY_NAME

        private static final java.lang.String ED25519_KEY_NAME
        See Also:
        Constant Field Values
      • ED25519_CURVE_NAME

        private static final java.lang.String ED25519_CURVE_NAME
        See Also:
        Constant Field Values
    • 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