hash(into:)
Hashes the essential components of the digest by feeding them into the given hash function.
Declaration
func hash(into hasher: inout Hasher)Parameters
- hasher:
The hash function to use when combining the components of the digest.
Discussion
This method is part of the digest’s conformance to Swift standard library’s Hashable protocol, making it possible to compare digests. Don’t confuse that hashing with the cryptographically secure hashing that you use to create the digest in the first place by, for example, calling SHA384/hash(data:).