Padding.swift 317 B

123456789101112
  1. //
  2. // Padding.swift
  3. // CryptoSwift
  4. //
  5. // Created by Marcin Krzyzanowski on 27/02/15.
  6. // Copyright (c) 2015 Marcin Krzyzanowski. All rights reserved.
  7. //
  8. public protocol Padding {
  9. func add(to: Array<UInt8>, blockSize: Int) -> Array<UInt8>
  10. func remove(from: Array<UInt8>, blockSize: Int?) -> Array<UInt8>
  11. }