Re: No-throw api for AES128?

Catherine Issabel <[email protected]> Thu, 2 Nov 2023 11:27:19 -0700 (PDT)
Newsgroups gmane.comp.encryption.cryptopp
Message-ID <[email protected]>
------=_Part_7444_457142653.1698949639385
Content-Type: multipart/alternative; 
	boundary="----=_Part_7445_146803786.1698949639385"

------=_Part_7445_146803786.1698949639385
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable


$500 million dollars available only for good and trusted receiver or=20
mandate=20
Kindly contact the sender for more information:+1 (336) 345-9681
On Friday, June 30, 2023 at 9:33:47=E2=80=AFAM UTC+1 Daniel Fricot wrote:

> How can we configure padding when using=20
> StreamTransformation::ProcessString()?
> Daniel
>
> Op woensdag 29 maart 2023 om 15:38:45 UTC+2 schreef Jeffrey Walton:
>
>> On Monday, January 9, 2023 at 5:53:38=E2=80=AFAM UTC-5 Daniel Fricot wro=
te:
>>
>> Is there a no-throw api for AES128? Currently, I am using=20
>> CryptoPP::StreamTransformationFilter for AES128 which may throw=20
>> CryptoPP::InvalidCiphertext. This is not an error of course, it is expec=
ted=20
>> behavior but our coding guidelines prefer no-throw api's. All throws (ev=
en=20
>> catched throws) are logged in our application and we want to keep this t=
o a=20
>> minimum.
>> Thanks,
>>
>>
>> You can use a cipher's StreamTransformation::ProcessString() directly=20
>> rather than the StreamTransformationFilter.
>>
>> The benchmarks use the same pattern. Also see
>>
>> * https://www.cryptopp.com/wiki/Benchmarks#Sample_Program
>> * https://www.cryptopp.com/wiki/Advanced_Encryption_Standard
>>
>> Jeff
>>
>

--=20
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 e=
mail to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/=
cryptopp-users/f6f77bdb-7c45-4f42-bb6c-a723eee039b7n%40googlegroups.com.

------=_Part_7445_146803786.1698949639385
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<br />$500 million dollars available only for good and trusted receiver or =
mandate <br />Kindly contact the sender for more information:+1 (336) 345-9=
681<br /><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">=
On Friday, June 30, 2023 at 9:33:47=E2=80=AFAM UTC+1 Daniel Fricot wrote:<b=
r/></div><blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; bo=
rder-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">How can we con=
figure padding when using StreamTransformation::ProcessString()?<div>Daniel=
<br><br></div><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_a=
ttr">Op woensdag 29 maart 2023 om 15:38:45 UTC+2 schreef Jeffrey Walton:<br=
></div></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-l=
eft:1ex"><div><div dir=3D"auto">On Monday, January 9, 2023 at 5:53:38=E2=80=
=AFAM UTC-5 Daniel Fricot wrote:<br></div><blockquote style=3D"margin:0px 0=
px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Is th=
ere a no-throw api for AES128? Currently, I am using CryptoPP::StreamTransf=
ormationFilter for AES128 which may throw CryptoPP::InvalidCiphertext. This=
 is not an error of course, it is expected behavior but our coding guidelin=
es prefer no-throw api&#39;s. All throws (even catched throws) are logged i=
n our application and we want to keep this to a minimum.<div>Thanks,</div><=
/blockquote><div><br></div></div><div><div>You can use a cipher&#39;s Strea=
mTransformation::ProcessString() directly rather than the StreamTransformat=
ionFilter.</div><div><br></div><div>The benchmarks use the same pattern. Al=
so see</div><div><br></div><div>* <a href=3D"https://www.cryptopp.com/wiki/=
Benchmarks#Sample_Program" rel=3D"nofollow" target=3D"_blank" data-saferedi=
recturl=3D"https://www.google.com/url?hl=3Den&amp;q=3Dhttps://www.cryptopp.=
com/wiki/Benchmarks%23Sample_Program&amp;source=3Dgmail&amp;ust=3D169903602=
1653000&amp;usg=3DAOvVaw3lhqHeRj0YQZMl_1_APEHc">https://www.cryptopp.com/wi=
ki/Benchmarks#Sample_Program</a></div><div>* <a href=3D"https://www.cryptop=
p.com/wiki/Advanced_Encryption_Standard" rel=3D"nofollow" target=3D"_blank"=
 data-saferedirecturl=3D"https://www.google.com/url?hl=3Den&amp;q=3Dhttps:/=
/www.cryptopp.com/wiki/Advanced_Encryption_Standard&amp;source=3Dgmail&amp;=
ust=3D1699036021653000&amp;usg=3DAOvVaw2WQr645SU3nDKm3XJQ10k2">https://www.=
cryptopp.com/wiki/Advanced_Encryption_Standard</a><br></div><div><br></div>=
<div>Jeff<br></div></div></blockquote></div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Crypto++ Users&quot; 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/f6f77bdb-7c45-4f42-bb6c-a723eee039b7n%40googlegro=
ups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d=
/msgid/cryptopp-users/f6f77bdb-7c45-4f42-bb6c-a723eee039b7n%40googlegroups.=
com</a>.<br />

------=_Part_7445_146803786.1698949639385--

------=_Part_7444_457142653.1698949639385--