Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-582

AES GCM Decryption Failure in FIPS Mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 19.0
    • Fix Version/s: None
    • Component/s: crypto
    • Labels:
      None

      Description

      When OpenSSL FIPS mode is enabled, AES GCM Decryption fails.

      In the function `aes_gcm_decrypt` from crypto/c_src/crypto.c, the GCM tag is currently being set immediately prior to finalizing/verifying decryption. This tag should be set before any Ciphertext / AAD processing, or decryption will fail in FIPS mode.

      This affects Erlang 19.0+

        Attachments

          Activity

            People

            Assignee:
            hans Hans Nilsson
            Reporter:
            cfrogurt Aaron Trythall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: