Type Aliasswift-crypto 3.15.1Crypto
Digest
The digest type for a SHA1 hash function.
- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
typealias Digest = Insecure.SHA1DigestThe digest type for a SHA1 hash function.
typealias Digest = Insecure.SHA1Digestimport CryptoA cryptography library for Swift.
struct SHA1An implementation of SHA1 hashing.
enum InsecureA container for older, cryptographically insecure algorithms.
struct SHA1DigestThe output of a SHA1 hash.
init() Creates a SHA1 hash function.
static var blockByteCount: Int { get set }The number of bytes that represents the hash function’s internal state.
static var byteCount: Int { get set }The number of bytes in a SHA1 digest.
func finalize() -> Insecure.SHA1.Digest Finalizes the hash function and returns the computed digest.
mutating func update(bufferPointer: UnsafeRawBufferPointer) Incrementally updates the hash function with the contents of the buffer.