Authenticator.swift 353 B

12345678910111213
  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. /// Message authentication code.
  9. public protocol Authenticator {
  10. /// Calculate Message Authentication Code (MAC) for message.
  11. func authenticate(_ bytes: Array<UInt8>) throws -> Array<UInt8>
  12. }