Botan is a BSD-licensed crypto library for C++ applications. It provides access to most major cryptographic algorithms.
Questions tagged [botan]
127 questions
2
votes
1 answer
Botan AES CBC PKCS7 encryption and decryption
I'm using Botan library now.
I would like to encrypt my files using AES/CBC mode using the PKCS7 padding mode.
The AES/CBC decryption provided by Botan will throw an exception when an error occurs and I'm not sure whether it is vulnerable to the…

Arolia
- 511
- 2
- 6
- 12
2
votes
1 answer
Invalid argument: AES-128/XTS cannot accept a key of length 16
I'm trying to use AES-128/XTS in Botan, but the following exception is thrown:
terminate called after throwing an instance of 'Botan::Invalid_Key_Length'
what(): Invalid argument AES-128/XTS cannot accept a key of length 16
My program is like…

Arolia
- 511
- 2
- 6
- 12
2
votes
1 answer
How to build Botan amalgamation files botan_all.cpp and .h on windows
As the title already suggested I try to make the botan_all files to integrate botan directly into my project. I installed python on my Windows and run the following command in the console:
C:\Temp\Botan-1.11.16>configure.py --cc=msvc…

Martin Schlott
- 4,369
- 3
- 25
- 49
2
votes
1 answer
Botan::SecureVector - Destructor called in Constructor?
When using the Botan::SecureVector in the following unit test:
void UnitTest()
{
std::vector vbData;
vbData.push_back(0x04);
vbData.push_back(0x04);
vbData.push_back(0x04);
Botan::SecureVector…

J. Polfer
- 12,251
- 10
- 54
- 83
2
votes
0 answers
How to add Botan library to VS 2013 project
As the result of installing Botan library I've got these files:
botan.dll
botan.exp
botan.lib
and headers with path Include/botan/*.h, one of them is botan.h which must be incuded in
I've added botan.lib and botan.h following this example…

Tracy Jr.
- 27
- 4
2
votes
1 answer
Error encrypting files with Botan and Qt
I'am trying to use "Botan" to encrypt and decrypt files (AES 256). Integrating the library in Qt was done successfully. I followed many examples I found on the Internet like this tutorial but I got the following
error:
class Botan::S2K' has no…

luffy
- 2,246
- 3
- 22
- 28
2
votes
1 answer
What are highest performance SQLite encryption codecs in Botan?
When using Botan encryption with botansqlite3, what are the optimal configuration settings for performance?
OR
How can I configure Botansqlite3 to use CAST5?
I am currently using AES and it is too slow. My use case is a game.
I am looking for weak…

Cory Trese
- 1,148
- 10
- 23
2
votes
3 answers
Unhandled exception in botan.dll
I am trying to run the most basic program with botan crypto library. I am using Botan 1.10 32bit. I got the binaries with their installer on Windows 7. IDE is Visual studio 2012.
I linked my project to botan.lib but the program reports a missing…

cen
- 2,873
- 3
- 31
- 56
2
votes
1 answer
How to check if entered password is correct in botan encryption
I'm have a code to encrypt and decrypt file, the code works good, but the problem is when i try to decrypt a file with a incorrect password, instead of given an error, the decryption is performed resulting in a different file than the original file.…
user1576869
2
votes
1 answer
Build Botan library for Android
How can I build the cryptographic library Botan for Android? I am using Mac OS 10.7 and Eclipse IDE.

Nick
- 21
- 1
2
votes
2 answers
Error while compiling botan sample example in Qt
I am trying to find out the error for two days but still haven't got this unknown reason figure out.
I have configured and compiled Botan library. Everything goes ok but when try to write this sample code to be run..
S2K* s2k =…

muktoshuvro
- 440
- 1
- 7
- 26
1
vote
1 answer
Output Botan Encryption results to a QDomDocument and vice-versa
I'm using the Botan library for encryption within Qt. I have it working to where I can encrypt and decrypt from one file to another, but I'm trying to alter it to encrypt from a file to a QDomDocument (encrypted file will just be an XML file), and…

dajaffe
- 855
- 13
- 34
1
vote
1 answer
Botan c++ hash function generate_bcrypt()
I am trying to get hash of password using Botan's function generate_bcrypt().
I read manual http://botan.randombit.net/passhash.html here. Afterwards I have read it yet once.
Source code:
#include
#include…

Tebe
- 3,176
- 8
- 40
- 60
1
vote
1 answer
Qt does not work with Botan_v1.10.1 Libraries
I've been trying to get Qt 4.7.3 to work with the newest Botan v1.10.1 libraries.
There is a Botan binary for Windows but it seems that the *.dll files are only for MS Visual Studio.
So I tried to compile Botan with mingw32 so that I can get Qt…

L123
- 139
- 4
- 14
1
vote
0 answers
Using Botan library in C++ with g++: How to compile and link against Botan for my project?
I am trying to use Botan library in my project. But I don't know how to do so.
Here is my project directory structure:
C:.
├───.vscode
├───botan
│ └───internal
└───lib
├───botan
│ ├───.github
│ │ ├───actions
│ │ │ …

Syed Salman
- 23
- 5