public final class EciesAeadHkdfHybridEncrypt extends Object implements HybridEncrypt
| Modifier and Type | Method and Description |
|---|---|
static HybridEncrypt |
create(EciesPublicKey key) |
byte[] |
encrypt(byte[] plaintext,
byte[] contextInfo)
Encrypts
plaintext using contextInfo as info-parameter of the underlying
HKDF. |
public static HybridEncrypt create(EciesPublicKey key) throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] encrypt(byte[] plaintext,
byte[] contextInfo)
throws GeneralSecurityException
plaintext using contextInfo as info-parameter of the underlying
HKDF.encrypt in interface HybridEncryptGeneralSecurityException