Hpke.Seal(IPublicKey, Byte[], Byte[], 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 seal a single message using BASE mode (no authentication).
[Android.Runtime.Register("seal", "(Ljava/security/PublicKey;[B[B[B)Landroid/crypto/hpke/Message;", "GetSeal_Ljava_security_PublicKey_arrayBarrayBarrayBHandler", ApiSince=37)]
public virtual Android.Crypto.Hpke.Message Seal(Java.Security.IPublicKey recipientKey, byte[]? info, byte[] plaintext, byte[]? aad);
[<Android.Runtime.Register("seal", "(Ljava/security/PublicKey;[B[B[B)Landroid/crypto/hpke/Message;", "GetSeal_Ljava_security_PublicKey_arrayBarrayBarrayBHandler", ApiSince=37)>]
abstract member Seal : Java.Security.IPublicKey * byte[] * byte[] * byte[] -> Android.Crypto.Hpke.Message
override this.Seal : Java.Security.IPublicKey * byte[] * byte[] * byte[] -> Android.Crypto.Hpke.Message
Parameters
- recipientKey
- IPublicKey
public key of the recipient
- info
- Byte[]
additional application-supplied information, may be null or empty
- plaintext
- Byte[]
the message to send
- aad
- Byte[]
optional additional authenticated data, may be null or empty
Returns
a Message object containing the encapsulated key, ciphertext and aad
- Attributes
Remarks
One shot API to seal a single message using BASE mode (no authentication).
Android reference for android.crypto.hpke.Hpke.seal.
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.