Class XWingHpkeConscryptEncrypt
- java.lang.Object
-
- com.google.crypto.tink.hybrid.internal.XWingHpkeConscryptEncrypt
-
- All Implemented Interfaces:
HybridEncrypt
public final class XWingHpkeConscryptEncrypt extends java.lang.Object implements HybridEncrypt
X-Wing HPKE encryption stub implementation for Android.
-
-
Constructor Summary
Constructors Constructor Description XWingHpkeConscryptEncrypt()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HybridEncryptcreate(HpkePublicKey key)byte[]encrypt(byte[] plaintext, byte[] contextInfo)Encryption operation: encryptsplaintextbindingcontextInfoto the resulting ciphertext.static booleanisSupported()
-
-
-
Method Detail
-
create
public static HybridEncrypt create(HpkePublicKey key) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
encrypt
public byte[] encrypt(byte[] plaintext, byte[] contextInfo) throws java.security.GeneralSecurityExceptionDescription copied from interface:HybridEncryptEncryption operation: encryptsplaintextbindingcontextInfoto the resulting ciphertext.- Specified by:
encryptin interfaceHybridEncrypt- Returns:
- resulting ciphertext
- Throws:
java.security.GeneralSecurityException
-
isSupported
public static boolean isSupported()
-
-