RNCryptorError

@objc public enum RNCryptorError: Int, ErrorType

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 updateWithData()

    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