init(key:)

    Creates a message authentication code generator.

    HMAC.swift:59
    init(key: SymmetricKey)

    Parameters

    key

    The symmetric key used to secure the computation.

    Other members in extension

    Typealiases

    • typealias Key

      An alias for the symmetric key type used to compute or verify a message authentication code.

    • typealias MAC

      An alias for a hash-based message authentication code.

    Type members

    Instance members