Protocol

Digest

A type that represents the output of a hash.

Declaration

protocol Digest where Self.Element == UInt8

Topics

Getting the Digest Length

static var byteCount: Int

The number of bytes in the digest.

Required.

Comparing Digests

static func == (Self, Self) -> Bool

Determines whether two digests are equal.

See Also

Specifying the Output Type

associatedtype Digest

The type of the digest returned by the hash function.

Required.