CipherSpi.EngineUpdateAAD 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.
Overloads
EngineUpdateAAD(ByteBuffer) |
Continues a multi-part update of the Additional Authentication Data (AAD). |
EngineUpdateAAD(Byte[], Int32, Int32) |
Continues a multi-part update of the Additional Authentication Data (AAD), using a subset of the provided buffer. |
EngineUpdateAAD(ByteBuffer)
Continues a multi-part update of the Additional Authentication Data (AAD).
[Android.Runtime.Register("engineUpdateAAD", "(Ljava/nio/ByteBuffer;)V", "GetEngineUpdateAAD_Ljava_nio_ByteBuffer_Handler")]
protected virtual void EngineUpdateAAD (Java.Nio.ByteBuffer? src);
[<Android.Runtime.Register("engineUpdateAAD", "(Ljava/nio/ByteBuffer;)V", "GetEngineUpdateAAD_Ljava_nio_ByteBuffer_Handler")>]
abstract member EngineUpdateAAD : Java.Nio.ByteBuffer -> unit
override this.EngineUpdateAAD : Java.Nio.ByteBuffer -> unit
Parameters
- src
- ByteBuffer
the buffer containing the AAD
- Attributes
Remarks
Continues a multi-part update of the Additional Authentication Data (AAD).
Calls to this method provide AAD to the cipher when operating in modes such as AEAD (GCM/CCM). If this cipher is operating in either GCM or CCM mode, all AAD must be supplied before beginning operations on the ciphertext (via the update
and doFinal
methods).
All src.remaining()
bytes starting at src.position()
are processed. Upon return, the input buffer's position will be equal to its limit; its limit will not have changed.
Added in 1.7.
Java documentation for javax.crypto.CipherSpi.engineUpdateAAD(java.nio.ByteBuffer)
.
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
EngineUpdateAAD(Byte[], Int32, Int32)
Continues a multi-part update of the Additional Authentication Data (AAD), using a subset of the provided buffer.
[Android.Runtime.Register("engineUpdateAAD", "([BII)V", "GetEngineUpdateAAD_arrayBIIHandler")]
protected virtual void EngineUpdateAAD (byte[]? src, int offset, int len);
[<Android.Runtime.Register("engineUpdateAAD", "([BII)V", "GetEngineUpdateAAD_arrayBIIHandler")>]
abstract member EngineUpdateAAD : byte[] * int * int -> unit
override this.EngineUpdateAAD : byte[] * int * int -> unit
Parameters
- src
- Byte[]
the buffer containing the AAD
- offset
- Int32
the offset in src
where the AAD input starts
- len
- Int32
the number of AAD bytes
- Attributes
Exceptions
if this cipher instance is not initialized for encryption or decryption.
if input
is null
, or if inputOffset
and
inputLen
do not specify a valid chunk in the input
buffer.
if the cipher does not support AEAD
Remarks
Continues a multi-part update of the Additional Authentication Data (AAD), using a subset of the provided buffer.
Calls to this method provide AAD to the cipher when operating in modes such as AEAD (GCM/CCM). If this cipher is operating in either GCM or CCM mode, all AAD must be supplied before beginning operations on the ciphertext (via the update
and doFinal
methods).
Added in 1.7.
Java documentation for javax.crypto.CipherSpi.engineUpdateAAD(byte[], int, int)
.
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.