Instance Methodswift-crypto 3.8.0Crypto
finalize
Finalizes the hash function and returns the computed digest.
HashFunctions_SHA2.swift:177func finalize() -> `Self`.Digest
Returns
The computed digest of the data.
Call this method after you provide the hash function with all the data to hash by making one or more calls to the update(data:)
or update(bufferPointer:)
method. After finalizing the hash function, discard it. To compute a new digest, create a new hash function with a call to the init
method.
Other members in extension
Typealiases
typealias Digest
The digest type for a SHA384 hash function.
Type members
init(
) Creates a SHA384 hash function.
static var blockByteCount: Int
static var byteCount: Int
The number of bytes in a SHA384 digest.
Instance members
func update(bufferPointer: UnsafeRawBufferPointer
) Incrementally updates the hash function with the contents of the buffer.