@Immutable public final class LegacyFullHybridEncrypt extends Object implements HybridEncrypt
| Modifier and Type | Method and Description |
|---|---|
static HybridEncrypt |
create(LegacyProtoKey key)
This method covers the cases where users created their own aead/key classes.
|
byte[] |
encrypt(byte[] plaintext,
byte[] contextInfo)
Encryption operation: encrypts
plaintext binding contextInfo to the resulting
ciphertext. |
public static HybridEncrypt create(LegacyProtoKey key) throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] encrypt(byte[] plaintext,
byte[] contextInfo)
throws GeneralSecurityException
HybridEncryptplaintext binding contextInfo to the resulting
ciphertext.encrypt in interface HybridEncryptGeneralSecurityException