MessageDigestSpi.EngineDigest 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
EngineDigest() |
Completes the hash computation by performing final operations such as padding. |
EngineDigest(Byte[], Int32, Int32) |
Completes the hash computation by performing final operations such as padding. |
EngineDigest()
Completes the hash computation by performing final operations such as padding.
[Android.Runtime.Register("engineDigest", "()[B", "GetEngineDigestHandler")]
protected abstract byte[]? EngineDigest ();
[<Android.Runtime.Register("engineDigest", "()[B", "GetEngineDigestHandler")>]
abstract member EngineDigest : unit -> byte[]
Returns
the array of bytes for the resulting hash value.
- Attributes
Remarks
Completes the hash computation by performing final operations such as padding. Once engineDigest
has been called, the engine should be reset (see #engineReset() engineReset
). Resetting is the responsibility of the engine implementor.
Java documentation for java.security.MessageDigestSpi.engineDigest()
.
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.
See also
Applies to
EngineDigest(Byte[], Int32, Int32)
Completes the hash computation by performing final operations such as padding.
[Android.Runtime.Register("engineDigest", "([BII)I", "GetEngineDigest_arrayBIIHandler")]
protected virtual int EngineDigest (byte[]? buf, int offset, int len);
[<Android.Runtime.Register("engineDigest", "([BII)I", "GetEngineDigest_arrayBIIHandler")>]
abstract member EngineDigest : byte[] * int * int -> int
override this.EngineDigest : byte[] * int * int -> int
Parameters
- buf
- Byte[]
the output buffer in which to store the digest
- offset
- Int32
offset to start from in the output buffer
- len
- Int32
number of bytes within buf allotted for the digest. Both this default implementation and the SUN provider do not return partial digests. The presence of this parameter is solely for consistency in our API's. If the value of this parameter is less than the actual digest length, the method will throw a DigestException. This parameter is ignored if its value is greater than or equal to the actual digest length.
Returns
the length of the digest stored in the output buffer.
- Attributes
Exceptions
if an error occures.
if offset
or len
are not valid in respect to
buf
.
Remarks
Completes the hash computation by performing final operations such as padding. Once engineDigest
has been called, the engine should be reset (see #engineReset() engineReset
). Resetting is the responsibility of the engine implementor.
This method should be abstract, but we leave it concrete for binary compatibility. Knowledgeable providers should override this method.
Added in 1.2.
Java documentation for java.security.MessageDigestSpi.engineDigest(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.