Type Aliasswift-crypto 3.8.0Crypto
Digest
The digest type for a SHA1 hash function.
Insecure_HashFunctions.swift:51typealias Digest = Insecure.SHA1Digest
Other members in extension
Type members
init(
) Creates a SHA1 hash function.
static var blockByteCount: Int
The number of bytes that represents the hash function’s internal state.
static var byteCount: Int
The number of bytes in a SHA1 digest.
Instance members
func finalize(
) -> `Self`.Digest Finalizes the hash function and returns the computed digest.
func update(bufferPointer: UnsafeRawBufferPointer
) Incrementally updates the hash function with the contents of the buffer.