WebcomEncryptionAlgorithm

public enum WebcomEncryptionAlgorithm : CaseIterable, Codable, Equatable

A value corresponding to an encryption algorithm used to cipher messages.

Cases

  • Indicates that the message is not encrypted but it remains Base64 encoded.

    Declaration

    Swift

    case base64
  • Indicates that the message is encrypted using the AES algorithm with a 128-bit key in CBC mode and a HMAC authentication code with the SHA-256 hash function, and then Base64 encoded.

    Declaration

    Swift

    case A128CBCHS256
  • Indicates that the message is encrypted using the AES algorithm with a 192-bit key in CBC mode and a HMAC authentication code with the SHA-384 hash function, and then Base64 encoded.

    Declaration

    Swift

    case A192CBCHS384
  • Indicates that the message is encrypted using the AES algorithm with a 256-bit key in CBC mode and a HMAC authentication code with the SHA-512 hash function, and then Base64 encoded.

    Declaration

    Swift

    case A256CBCHS512
  • Indicates that the message is only stringified, neither encrypted nor Base64 encoded.

    This value is for debugging purposes only, as the back-end never sends messages of this type.

    Declaration

    Swift

    case stringified

Constants

Initializers

  • Declaration

    Swift

    public init(from decoder: Decoder) throws

Encodable Protocol

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws