Error

public enum Error : Int, Swift.Error

Errors thrown by RNCryptorType.

  • Ciphertext was corrupt or password was incorrect. It is not possible to distinguish between these cases in the v3 data format.

    Declaration

    Swift

    case hmacMismatch = 1
  • Unrecognized data format. Usually this means the data is corrupt.

    Declaration

    Swift

    case unknownHeader = 2
  • final() was called before sufficient data was passed to update(withData:)

    Declaration

    Swift

    case messageTooShort
  • Memory allocation failure. This should never happen.

    Declaration

    Swift

    case memoryFailure
  • A password-based decryptor was used on a key-based ciphertext, or vice-versa.

    Declaration

    Swift

    case invalidCredentialType