hash(into:)

    Hashes the essential components of the digest by feeding them into the given hash function.

    Digests.swift:300
    func hash(into hasher: inout Hasher)

    Parameters

    hasher

    The hash function to use when combining the components of the digest.

    This method is part of the digest’s conformance to Swift standard library’s doc://com.apple.documentation/documentation/swift/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 hash(data:).

    Other members in extension

    Type members

    Instance members