Authenticator.swift 354 B

123456789101112
  1. //
  2. // MAC.swift
  3. // CryptoSwift
  4. //
  5. // Created by Marcin Krzyzanowski on 03/09/14.
  6. // Copyright (c) 2014 Marcin Krzyzanowski. All rights reserved.
  7. //
  8. public protocol Authenticator {
  9. /// Generates an authenticator for message using a one-time key and returns the 16-byte result
  10. func authenticate(_ bytes: Array<UInt8>) throws -> Array<UInt8>
  11. }