AlgorithmsErrorReason

public enum AlgorithmsErrorReason

The possible underlying reasons an .algorithmsFailed error occurs.

  • invalidDERKey: The DER data does not contain a valid RSA key. Code 3016_1001.
  • invalidX509Header: The x509 header is found in the key, but the data is invalid. Code 3016_1002.
  • createKeyFailed: An error occurred while creating a security key. Code 3016_1003.
  • invalidPEMKey: The PEM key is invalid. Code 3016_1004.
  • encryptingError: An error occurred while encrypting plain data. Code 3016_1005.
  • decryptingError: An error occurred while decrypting encrypted data. Code 3016_1006.
  • signingError: An error occurred while signing plain data. Code 3016_1007.
  • verifyingError: An error occurred while verifying data. Code 3016_1008.
  • invalidSignature: The algorithm does not accept the input data as a signature. The data is corrupted. Code 3016_1009.
  • The DER data does not contain a valid RSA key. Code 3016_1001.

    Declaration

    Swift

    case invalidDERKey(data: Data, reason: String)
  • The x509 header is found in the key, but the data is invalid. Code 3016_1002.

    Declaration

    Swift

    case invalidX509Header(data: Data, index: Int, reason: String)
  • An error occurred while creating a security key. Code 3016_1003.

    Declaration

    Swift

    case createKeyFailed(data: Data, reason: String)
  • The PEM key is invalid. Code 3016_1004.

    Declaration

    Swift

    case invalidPEMKey(string: String, reason: String)
  • An error occurred while encrypting plain data. Code 3016_1005.

    Declaration

    Swift

    case encryptingError(Error?)
  • An error occurred while decrypting encrypted data. Code 3016_1006.

    Declaration

    Swift

    case decryptingError(Error?)
  • An error occurred while signing plain data. Code 3016_1007.

    Declaration

    Swift

    case signingError(Error?)
  • An error occurred while verifying data. Code 3016_1008.

    Declaration

    Swift

    case verifyingError(Error?, statusCode: Int?)
  • The algorithm does not accept the input data as a signature. The data is corrupted. Code 3016_1009.

    Declaration

    Swift

    case invalidSignature(data: Data)