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

Relax assertion error during encrypt/decrypt by using NSError

    XMLWordPrintable

Details

    • Feature Request
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 1.4.0
    • 1.5.0
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: