Package com.google.crypto.tink.subtle
Class EciesAeadHkdfHybridDecrypt
- java.lang.Object
-
- com.google.crypto.tink.subtle.EciesAeadHkdfHybridDecrypt
-
- All Implemented Interfaces:
HybridDecrypt
public final class EciesAeadHkdfHybridDecrypt extends java.lang.Object implements HybridDecrypt
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 HybridDecryptcreate(EciesPrivateKey key)byte[]decrypt(byte[] ciphertext, byte[] contextInfo)Decryption operation: decryptsciphertextverifying the integrity ofcontextInfo.
-
-
-
Method Detail
-
create
public static HybridDecrypt create(EciesPrivateKey key) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
decrypt
public byte[] decrypt(byte[] ciphertext, byte[] contextInfo) throws java.security.GeneralSecurityExceptionDescription copied from interface:HybridDecryptDecryption operation: decryptsciphertextverifying the integrity ofcontextInfo.- Specified by:
decryptin interfaceHybridDecrypt- Returns:
- resulting plaintext
- Throws:
java.security.GeneralSecurityException
-
-