public final class EciesAeadHkdfHybridEncrypt extends Object implements HybridEncrypt
| Constructor and Description |
|---|
EciesAeadHkdfHybridEncrypt(ECPublicKey recipientPublicKey,
byte[] hkdfSalt,
String hkdfHmacAlgo,
EllipticCurves.PointFormatType ecPointFormat,
EciesAeadHkdfDemHelper demHelper) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encrypt(byte[] plaintext,
byte[] contextInfo)
Encrypts
plaintext using contextInfo as info-parameter of the underlying
HKDF. |
public EciesAeadHkdfHybridEncrypt(ECPublicKey recipientPublicKey, byte[] hkdfSalt, String hkdfHmacAlgo, EllipticCurves.PointFormatType ecPointFormat, EciesAeadHkdfDemHelper demHelper) 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