Options

public struct Options : OptionSet

Maps CommonCryptoOptions onto a Swift struct.

  • Declaration

    Swift

    public typealias RawValue = Int
  • Declaration

    Swift

    public let rawValue: RawValue
  • Convert from a native value (i.e. 0, kCCOptionpkcs7Padding, kCCOptionECBMode)

    Declaration

    Swift

    public init(rawValue: RawValue)
  • Convert from a native value (i.e. 0, kCCOptionpkcs7Padding, kCCOptionECBMode)

    Declaration

    Swift

    public init(_ rawValue: RawValue)
  • No options

    Declaration

    Swift

    public static let none: StreamCryptor.Options
  • Use padding. Needed unless the input is a integral number of blocks long.

    Declaration

    Swift

    public static var pkcs7Padding: StreamCryptor.Options
  • Electronic Code Book Mode. Don’t use this.

    Declaration

    Swift

    public static var ecbMode: StreamCryptor.Options
  • Use padding. Needed unless the input is a integral number of blocks long.

  • Electronic Code Book Mode. Don’t use this.