KeyDerivationFunctionMode

internal enum KeyDerivationFunctionMode : UInt8

This enum contains all the different modes using to derive session keys.

The KDF input requires a 32-bit, big-endian integer counter c, and its value is different according to the session key uses. Here, the following uses/modes are defined:

  • ENC_MODE: To derive a session key for encryption.
  • MAC_MODE: To derive a session key for authentication of data.
  • PACE_MODE: To derive a session key for the PACE protocol.
  • Declaration

    Swift

    case ENC_MODE = 0x01
  • Declaration

    Swift

    case MAC_MODE = 0x02
  • Declaration

    Swift

    case PACE_MODE = 0x03
  • Declaration

    Swift

    var counter: [UInt8] { get }