<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to use DecryptContent with AES-128 CTR and an IV in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-DecryptContent-with-AES-128-CTR-and-an-IV/m-p/396646#M249478</link>
    <description>&lt;P&gt;For anyone reading here; I never got the &lt;SPAN&gt;DecryptContent processor&amp;nbsp;&lt;/SPAN&gt;to work. Made a Groovy script processor instead, that handled the decrypting&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 07:50:50 GMT</pubDate>
    <dc:creator>Molleb</dc:creator>
    <dc:date>2024-10-31T07:50:50Z</dc:date>
    <item>
      <title>How to use DecryptContent with AES-128 CTR and an IV</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-DecryptContent-with-AES-128-CTR-and-an-IV/m-p/393270#M248410</link>
      <description>&lt;P&gt;I have the AES decryption working in a Nodejs script using crypto locally on my computer, with the following parts:&lt;/P&gt;&lt;P&gt;Text to decrypt: c6 c7 4b 49 0d cf 5c 20 87 0a e0 cd c4 a7 bf 94 d8&lt;BR /&gt;Key: 3E 9B 26 FE 46 4F 6D 2D 2F 69 5D 87 8A 07 93 74&lt;BR /&gt;Initialization Vector (IV): 2d 2c 83 42 00 74 1b 16 20 c0 7d 13 20 00 00 00&lt;/P&gt;&lt;P&gt;Correct result: 14 25 79 ed a8 ff a7 00 00 e5 03 00 00 be 03 00 00&lt;/P&gt;&lt;P&gt;So I know both key and IV are correct. I am using AES128, CTR and NoPadding&lt;/P&gt;&lt;P&gt;Now, I need to do it in Apache Nifi, and I am trying to use the DecryptContent processor. I am confused about how to make it happen and have tried quite a few things, the latest being:&lt;/P&gt;&lt;P&gt;Cipher Algorithm Mode is set to CTR&lt;BR /&gt;Cipher Algorithm Padding is set to NoPadding&lt;BR /&gt;Key Specification Format: RAW&lt;/P&gt;&lt;P&gt;I have set the content of the incoming flowfile content to&lt;/P&gt;&lt;P&gt;c6c74b490dcf5c20870ae0cdc4a7bf94d84E69466949562d2c834200741b1620c07d1320000000&lt;BR /&gt;(With 4E6946694956 as the NiFiIV delimiter)&lt;/P&gt;&lt;P&gt;This results in an error from the DecryptContent processor: "Wrong IV length: must be 16 bytes long"&lt;BR /&gt;This suggests to me that it is reading the payload as a normal text string, and not as HEX values. Is there a way to set the content to HEX specifically?&lt;/P&gt;&lt;P&gt;The documentation is a little sketchy about how to provide the content to be decrypted (or I have just missed something), so I am hoping you can help me.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 08:33:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-use-DecryptContent-with-AES-128-CTR-and-an-IV/m-p/393270#M248410</guid>
      <dc:creator>Molleb</dc:creator>
      <dc:date>2024-09-10T08:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DecryptContent with AES-128 CTR and an IV</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-DecryptContent-with-AES-128-CTR-and-an-IV/m-p/393274#M248413</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/116262"&gt;@Molleb&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301"&gt;@mburgess&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 10:00:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-use-DecryptContent-with-AES-128-CTR-and-an-IV/m-p/393274#M248413</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-09-10T10:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DecryptContent with AES-128 CTR and an IV</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-DecryptContent-with-AES-128-CTR-and-an-IV/m-p/396646#M249478</link>
      <description>&lt;P&gt;For anyone reading here; I never got the &lt;SPAN&gt;DecryptContent processor&amp;nbsp;&lt;/SPAN&gt;to work. Made a Groovy script processor instead, that handled the decrypting&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 07:50:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-use-DecryptContent-with-AES-128-CTR-and-an-IV/m-p/396646#M249478</guid>
      <dc:creator>Molleb</dc:creator>
      <dc:date>2024-10-31T07:50:50Z</dc:date>
    </item>
  </channel>
</rss>

