Hpke.Open(IPrivateKey, Byte[], Message, Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
One shot API to open a single ciphertext using BASE mode (no authentication).
[Android.Runtime.Register("open", "(Ljava/security/PrivateKey;[BLandroid/crypto/hpke/Message;[B)[B", "GetOpen_Ljava_security_PrivateKey_arrayBLandroid_crypto_hpke_Message_arrayBHandler", ApiSince=37)]
public virtual byte[] Open(Java.Security.IPrivateKey recipientKey, byte[]? info, Android.Crypto.Hpke.Message message, byte[]? aad);
[<Android.Runtime.Register("open", "(Ljava/security/PrivateKey;[BLandroid/crypto/hpke/Message;[B)[B", "GetOpen_Ljava_security_PrivateKey_arrayBLandroid_crypto_hpke_Message_arrayBHandler", ApiSince=37)>]
abstract member Open : Java.Security.IPrivateKey * byte[] * Android.Crypto.Hpke.Message * byte[] -> byte[]
override this.Open : Java.Security.IPrivateKey * byte[] * Android.Crypto.Hpke.Message * byte[] -> byte[]
Parameters
- recipientKey
- IPrivateKey
private key of the recipient
- info
- Byte[]
application-supplied information, may be null or empty
- message
- Message
the Message to open
- aad
- Byte[]
optional additional authenticated data, may be null or empty
Returns
decrypted plaintext
- Attributes
Remarks
One shot API to open a single ciphertext using BASE mode (no authentication).
Android reference for android.crypto.hpke.Hpke.open.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.