On Monday, January 9, 2023 at 5:53:38 AM UTC-5 Daniel Fricot wrote:
Is there a no-throw api for AES128? Currently, I am using CryptoPP::StreamTransformationFilter for AES128 which may throw CryptoPP::InvalidCiphertext. This is not an error of course, it is expected behavior but our coding guidelines prefer no-throw api's. All throws (even catched throws) are logged in our application and we want to keep this to a minimum. Thanks, You can use a cipher's StreamTransformation::ProcessString() directly 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 -- 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 cryptopp-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/7e234b67-631f-4113-bfad-1b2052616df7n%40googlegroups.com.