Interface X25519

  • All Known Implementing Classes:
    X25519Conscrypt

    @Immutable
    public interface X25519
    Interface for X25519.
    • Method Detail

      • generateKeyPair

        X25519.KeyPair generateKeyPair()
                                throws java.security.GeneralSecurityException
        generateKeyPair.
        Throws:
        java.security.GeneralSecurityException
      • computeSharedSecret

        byte[] computeSharedSecret​(byte[] privateValue,
                                   byte[] peersPublicValue)
                            throws java.security.GeneralSecurityException
        computeSharedSecret.
        Throws:
        java.security.GeneralSecurityException