Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-5369

Relax assertion error during encrypt/decrypt by using NSError

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.5.0
    • 1.4.0
    • None

      on 'encrypt:', 'decrypt:' methods for both CryptoBox and SecretBox, we used NSAssert to check whether the crypto process was a success/failure. Although NSAssert makes senses during development time, for scenarios where variability of the crypto params (e.g invalid keys) can be used, it is easier for the client to catch those errors using NSError, instead of forcing an assertion error.

            Unassigned Unassigned
            cvasilak_jira Christos Vasilakis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: