Package com.google.crypto.tink.subtle
Class EciesAeadHkdfHybridEncrypt
- java.lang.Object
-
- com.google.crypto.tink.subtle.EciesAeadHkdfHybridEncrypt
-
- All Implemented Interfaces:
HybridEncrypt
public final class EciesAeadHkdfHybridEncrypt extends java.lang.Object implements HybridEncrypt
ECIES encryption with HKDF-KEM (key encapsulation mechanism) and AEAD-DEM (data encapsulation mechanism).- Since:
- 1.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HybridEncryptcreate(EciesPublicKey key)byte[]encrypt(byte[] plaintext, byte[] contextInfo)EncryptsplaintextusingcontextInfoas info-parameter of the underlying HKDF.
-
-
-
Method Detail
-
create
public static HybridEncrypt create(EciesPublicKey key) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
encrypt
public byte[] encrypt(byte[] plaintext, byte[] contextInfo) throws java.security.GeneralSecurityExceptionEncryptsplaintextusingcontextInfoas info-parameter of the underlying HKDF.- Specified by:
encryptin interfaceHybridEncrypt- Returns:
- resulting ciphertext.
- Throws:
java.security.GeneralSecurityException
-
-