Encrypt AES GCM is not accepting a key and iv for each encrypt
robert sobrel <[email protected]> Sat, 1 Jun 2024 01:24:10 -0700 (PDT)
| Newsgroups | gmane.comp.encryption.cryptopp |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_60365_1591306787.1717230250472 Content-Type: multipart/alternative; boundary="----=_Part_60366_535696537.1717230250472" ------=_Part_60366_535696537.1717230250472 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 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/bf95b18a-dbe5-4bd1-ac2e-63f4f8b31806n%40googlegroups.com. ------=_Part_60366_535696537.1717230250472 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div style=3D"font-family: Roboto, Arial, sans-serif; letter-spacing: 0.25p= x; line-height: 20px; overflow: hidden; text-overflow: ellipsis; text-wrap:= nowrap; background-color: rgb(241, 243, 244);"><span style=3D"font-family:= Roboto, RobotoDraft, Helvetica, Arial, sans-serif;">Firstly I wanted to sa= y that I'm loving using crypto++, it's easy to use, I really liked it</span= ><br /></div><div role=3D"region" aria-labelledby=3D"c1859" style=3D"margin= : 12px 0px; overflow: auto; padding-right: 20px; background-color: rgb(241,= 243, 244);"><br />Before I used openssl, but I really liked crypto but I h= ave 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 />When I try= to use a different key and iv for each byte array, my crypto++ does not ap= ply 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= />https://imgur.com/S5rlbnR<br /><br />What could be happening that is not= accepting a different key and iv for each byte array?</div> <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/bf95b18a-dbe5-4bd1-ac2e-63f4f8b31806n%40googlegro= ups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d= /msgid/cryptopp-users/bf95b18a-dbe5-4bd1-ac2e-63f4f8b31806n%40googlegroups.= com</a>.<br /> ------=_Part_60366_535696537.1717230250472-- ------=_Part_60365_1591306787.1717230250472--