Encrypt not being done in AES GCM for different key and iv
robert sobrel <[email protected]> Sat, 1 Jun 2024 01:28:34 -0700 (PDT)
| Newsgroups | gmane.comp.encryption.cryptopp |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_36207_712558485.1717230514627 Content-Type: multipart/alternative; boundary="----=_Part_36208_320889376.1717230514627" ------=_Part_36208_320889376.1717230514627 Content-Type: text/plain; charset="UTF-8" Firstly I wanted to say that I'm loving using crypto++, it's easy to use, I really liked it Before I used openssl, but I really liked crypto but I have a problem in GCM mode, in openssl it works well, but in Crypto++ I had problems I'm encrypting a byte array When I try to use a different key and iv for each byte array, my crypto++ does not apply encrypt to some byte arrays, but if I add a single key and iv the code works perfectly Here is an example to better understand Code <https://imgur.com/S5rlbnR> What could be happening that is not accepting a different key and iv for each byte array? -- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/c3400e8e-b5ee-4532-9328-5a87790ce73en%40googlegroups.com. ------=_Part_36208_320889376.1717230514627 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Firstly I wanted to say that I'm loving using crypto++, it's easy to use, I= really liked it<br /><br />Before I used openssl, but I really liked crypt= o but I have a problem in GCM mode, in openssl it works well, but in Crypto= ++ I had problems<br /><br /><br />I'm encrypting a byte array<br /><br />W= hen I try to use a different key and iv for each byte array, my crypto++ do= es not apply encrypt to some byte arrays, but if I add a single key and iv = the code works perfectly<br /><br />Here is an example to better understand= <br /><br /><span style=3D"color: rgb(255, 255, 255); font-family: "Pr= oxima Nova Regular", "Helvetica Neue", Helvetica, Arial, san= s-serif; font-size: 16px; white-space: pre; background-color: rgb(46, 48, 5= 3);"> </span><a href=3D"https://imgur.com/S5rlbnR">Code</a>=C2=A0=C2=A0<span styl= e=3D"color: rgb(255, 255, 255); font-family: "Proxima Nova Regular&quo= t;, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16= px; white-space: pre; background-color: rgb(46, 48, 53);"> </span><br />What could be happening that is not accepting a different key = and iv for each byte array?<br /> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;Crypto++ Users" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">cryp= [email protected]</a>.<br /> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/cryptopp-users/c3400e8e-b5ee-4532-9328-5a87790ce73en%40googlegro= ups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d= /msgid/cryptopp-users/c3400e8e-b5ee-4532-9328-5a87790ce73en%40googlegroups.= com</a>.<br /> ------=_Part_36208_320889376.1717230514627-- ------=_Part_36207_712558485.1717230514627--