Uploaded image for project: 'Red Hat build of Apache Camel for Spring Boot'
  1. Red Hat build of Apache Camel for Spring Boot
  2. CSB-5958

For camel-crypto component, it is not possible to use "inline" with "AES/GCM/NoPadding"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • CSB-4.8
    • CSB-4.8
    • Camel
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Very Likely
    • 0

               CryptoDataFormat cryptoFormat = new CryptoDataFormat("AES/GCM/NoPadding", secretKey);
               // cryptoFormat.setInitializationVector(iv); // it should set the iv based on the info from paramSpec.. 
               cryptoFormat.setShouldInlineInitializationVector(true);
               cryptoFormat.setAlgorithmParameterSpec(paramSpec);
      

      Will not work, but with "AES/GCM/NoPadding", it expects to configure a GCMParamSpec.

              Unassigned Unassigned
              rhn-support-whui Roger Hui
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: