CipherSpi.EngineUpdate 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
EngineUpdate(ByteBuffer, ByteBuffer) |
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part. |
EngineUpdate(Byte[], Int32, Int32) |
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part. |
EngineUpdate(Byte[], Int32, Int32, Byte[], Int32) |
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part. |
EngineUpdate(ByteBuffer, ByteBuffer)
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
[Android.Runtime.Register("engineUpdate", "(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I", "GetEngineUpdate_Ljava_nio_ByteBuffer_Ljava_nio_ByteBuffer_Handler")]
protected virtual int EngineUpdate (Java.Nio.ByteBuffer? input, Java.Nio.ByteBuffer? output);
[<Android.Runtime.Register("engineUpdate", "(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I", "GetEngineUpdate_Ljava_nio_ByteBuffer_Ljava_nio_ByteBuffer_Handler")>]
abstract member EngineUpdate : Java.Nio.ByteBuffer * Java.Nio.ByteBuffer -> int
override this.EngineUpdate : Java.Nio.ByteBuffer * Java.Nio.ByteBuffer -> int
Parameters
- input
- ByteBuffer
the input ByteBuffer
- output
- ByteBuffer
the output ByteByffer
Returns
the number of bytes stored in output
- Attributes
Exceptions
if the size of the output
buffer is too small.
Remarks
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
All input.remaining()
bytes starting at input.position()
are processed. The result is stored in the output buffer. Upon return, the input buffer's position will be equal to its limit; its limit will not have changed. The output buffer's position will have advanced by n, where n is the value returned by this method; the output buffer's limit will not have changed.
If output.remaining()
bytes are insufficient to hold the result, a ShortBufferException
is thrown.
Subclasses should consider overriding this method if they can process ByteBuffers more efficiently than byte arrays.
Added in 1.5.
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
EngineUpdate(Byte[], Int32, Int32)
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
[Android.Runtime.Register("engineUpdate", "([BII)[B", "GetEngineUpdate_arrayBIIHandler")]
protected abstract byte[]? EngineUpdate (byte[]? input, int inputOffset, int inputLen);
[<Android.Runtime.Register("engineUpdate", "([BII)[B", "GetEngineUpdate_arrayBIIHandler")>]
abstract member EngineUpdate : byte[] * int * int -> byte[]
Parameters
- input
- Byte[]
the input buffer
- inputOffset
- Int32
the offset in input
where the input
starts
- inputLen
- Int32
the input length
Returns
the new buffer with the result, or null if the underlying cipher is a block cipher and the input data is too short to result in a new block.
- Attributes
Exceptions
if this cipher instance is not initialized for encryption or decryption.
if the input is null, or if inputOffset
and inputLen
do not specify a valid chunk in the input buffer.
Remarks
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
The first inputLen
bytes in the input
buffer, starting at inputOffset
inclusive, are processed, and the result is stored in a new buffer.
Java documentation for javax.crypto.CipherSpi.engineUpdate(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
EngineUpdate(Byte[], Int32, Int32, Byte[], Int32)
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
[Android.Runtime.Register("engineUpdate", "([BII[BI)I", "GetEngineUpdate_arrayBIIarrayBIHandler")]
protected abstract int EngineUpdate (byte[]? input, int inputOffset, int inputLen, byte[]? output, int outputOffset);
[<Android.Runtime.Register("engineUpdate", "([BII[BI)I", "GetEngineUpdate_arrayBIIarrayBIHandler")>]
abstract member EngineUpdate : byte[] * int * int * byte[] * int -> int
Parameters
- input
- Byte[]
the input buffer
- inputOffset
- Int32
the offset in input
where the input
starts
- inputLen
- Int32
the input length
- output
- Byte[]
the buffer for the result
- outputOffset
- Int32
the offset in output
where the result
is stored
Returns
the number of bytes stored in output
- Attributes
Exceptions
if the size of the output
buffer is too small.
Remarks
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
The first inputLen
bytes in the input
buffer, starting at inputOffset
inclusive, are processed, and the result is stored in the output
buffer, starting at outputOffset
inclusive.
If the output
buffer is too small to hold the result, a ShortBufferException
is thrown.
Java documentation for javax.crypto.CipherSpi.engineUpdate(byte[], int, int, byte[], 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.