Share via


Mac.Update Method

Definition

Overloads

Update(ByteBuffer)

Processes input.remaining() bytes in the ByteBuffer input, starting at input.position().

Update(Byte[])

Processes the given array of bytes.

Update(SByte)

Processes the given byte.

Update(Byte[], Int32, Int32)

Processes the first len bytes in input, starting at offset inclusive.

Update(ByteBuffer)

Processes input.remaining() bytes in the ByteBuffer input, starting at input.position().

[Android.Runtime.Register("update", "(Ljava/nio/ByteBuffer;)V", "")]
public void Update (Java.Nio.ByteBuffer? input);
[<Android.Runtime.Register("update", "(Ljava/nio/ByteBuffer;)V", "")>]
member this.Update : Java.Nio.ByteBuffer -> unit

Parameters

input
ByteBuffer

the ByteBuffer

Attributes

Exceptions

if this MAC is not initialized.

Remarks

Processes input.remaining() bytes in the ByteBuffer input, starting at input.position(). Upon return, the buffer's position will be equal to its limit; its limit will not have changed.

Added in 1.5.

Java documentation for javax.crypto.Mac.update(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

Update(Byte[])

Processes the given array of bytes.

[Android.Runtime.Register("update", "([B)V", "")]
public void Update (byte[]? input);
[<Android.Runtime.Register("update", "([B)V", "")>]
member this.Update : byte[] -> unit

Parameters

input
Byte[]

the array of bytes to be processed.

Attributes

Exceptions

if this MAC is not initialized.

Remarks

Processes the given array of bytes.

Java documentation for javax.crypto.Mac.update(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

Update(SByte)

Processes the given byte.

[Android.Runtime.Register("update", "(B)V", "")]
public void Update (sbyte input);
[<Android.Runtime.Register("update", "(B)V", "")>]
member this.Update : sbyte -> unit

Parameters

input
SByte

the input byte to be processed.

Attributes

Exceptions

if this MAC is not initialized.

Remarks

Processes the given byte.

Java documentation for javax.crypto.Mac.update(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

Update(Byte[], Int32, Int32)

Processes the first len bytes in input, starting at offset inclusive.

[Android.Runtime.Register("update", "([BII)V", "")]
public void Update (byte[]? input, int offset, int len);
[<Android.Runtime.Register("update", "([BII)V", "")>]
member this.Update : byte[] * int * int -> unit

Parameters

input
Byte[]

the input buffer.

offset
Int32

the offset in input where the input starts.

len
Int32

the number of bytes to process.

Attributes

Exceptions

if this MAC is not initialized.

if offset and len do not specified a valid chunk in input buffer.

Remarks

Processes the first len bytes in input, starting at offset inclusive.

Java documentation for javax.crypto.Mac.update(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.

Applies to