ValidKeySize

public enum ValidKeySize

Values used to specify the valid key sizes for an algorithm. Key sizes are specified in bytes.

  • Use when there is a single valid key size.

    Declaration

    Swift

    case fixed(Int)
  • Used when there is a discrete set of values. This pre-dates Swift Set.

    Declaration

    Swift

    case discrete([Int])
  • Used when a continuous range of key sizes are valid.

    Declaration

    Swift

    case range(Int, Int)