Class X25519PublicKey

    • Constructor Detail

      • X25519PublicKey

        public X25519PublicKey​(byte[] data)
        Montgomery representation, little-endian
        Parameters:
        data - 32 bytes
        Throws:
        IllegalArgumentException - if not 32 bytes
    • Method Detail

      • getEncoded

        public byte[] getEncoded()
        The raw byte array, there is no encoding.
        Specified by:
        getEncoded in interface Key
        Returns:
        the data passed in