[cryptopp-users] Ubuntu 22.04LTS - compilation error using crypto++

2023-10-10 Thread Galinette
Hi, I'm trying to compile an old project using crypto++ under Ubuntu 22.04LTS with libcrypto++ version 8.6. Compiler is clang 14 I get an "use of undeclared identifier bswap_32, did you mean __bswap_32 ? When browsing the source, I find in misc.h: #if defined(CRYPTOPP_BYTESWAP_AVAILABLE)

[cryptopp-users] Crash in debug mode

2020-10-28 Thread Galinette
Hi, I'm a long time user of crypto++ under MinGW. I'm trying to port our project under MSVC. It now runs fine in Release build, but Debug build crashes. The call stack is attached. The program is linked with crypto++ debug build, /MDd runtime. Thanks for your help! 1

Base64 broken?

2016-05-19 Thread Galinette
Dear all, I have a public key which i can Load and Save to binary without any issue. It is 292 byte large in binary format. I saved my public key to base64 like this: verifKey.Save(CryptoPP::Base64Encoder(new CryptoPP::FileSink("verifkey", false), false).Ref()); Then decoded it like this:

Pulling data from an AuthenticatedDecryptionFilter

2016-05-18 Thread Galinette
Hi, I am fairly new to Crypto++. I use AuthenticatedDecryptionFilter successfully by directing its output to a StringSink buffer, and Put()ing encrypted data to it. I would like to use it the reverse way, by attaching an input Source (such as a FileSource) providing encrypted data, and by