Class X25519Conscrypt
- java.lang.Object
-
- com.google.crypto.tink.hybrid.internal.X25519Conscrypt
-
- All Implemented Interfaces:
X25519
@Immutable public final class X25519Conscrypt extends java.lang.Object implements X25519
X25519 implementation using Conscrypt.We use the PKCS8 and X509 encodings of the private and the public keys, because they are supported by all JCE implementations and they are easier to convert from and to their raw 32-byte encodings.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.crypto.tink.hybrid.internal.X25519
X25519.KeyPair
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]computeSharedSecret(byte[] privateValue, byte[] peersPublicValue)computeSharedSecret.static X25519create()X25519.KeyPairgenerateKeyPair()generateKeyPair.
-
-
-
Method Detail
-
create
public static X25519 create() throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
generateKeyPair
public X25519.KeyPair generateKeyPair() throws java.security.GeneralSecurityException
Description copied from interface:X25519generateKeyPair.- Specified by:
generateKeyPairin interfaceX25519- Throws:
java.security.GeneralSecurityException
-
computeSharedSecret
public byte[] computeSharedSecret(byte[] privateValue, byte[] peersPublicValue) throws java.security.GeneralSecurityExceptionDescription copied from interface:X25519computeSharedSecret.- Specified by:
computeSharedSecretin interfaceX25519- Throws:
java.security.GeneralSecurityException
-
-