Sdílet prostřednictvím


IHpkeSpi.EngineSeal(Byte[], Byte[]) Method

Definition

Seals a message, using the internal key schedule maintained by an HPKE sender SPI.

[Android.Runtime.Register("engineSeal", "([B[B)[B", "GetEngineSeal_arrayBarrayBHandler:Android.Crypto.Hpke.IHpkeSpiInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public byte[] EngineSeal (byte[] plaintext, byte[]? aad);
[<Android.Runtime.Register("engineSeal", "([B[B)[B", "GetEngineSeal_arrayBarrayBHandler:Android.Crypto.Hpke.IHpkeSpiInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member EngineSeal : byte[] * byte[] -> byte[]

Parameters

plaintext
Byte[]

the plaintext

aad
Byte[]

optional associated data, may be null or empty

Returns

Byte[]

the ciphertext

Attributes

Remarks

Seals a message, using the internal key schedule maintained by an HPKE sender SPI.

Java documentation for android.crypto.hpke.HpkeSpi.engineSeal(byte[], byte[]).

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.

Applies to