Botan is a BSD-licensed crypto library for C++ applications. It provides access to most major cryptographic algorithms.
Questions tagged [botan]
127 questions
0
votes
1 answer
Botan::DSA_PrivateKey to DSA_PublicKey how to?
I've succeeded with creating a new DSA_PrivateKey and Botan::PKCS8::PEM_encode to save to a .pem file. Now I need to save the PublicKey to a separate .pem also. Anybody know how to copy the DSA_PrivateKey to a DSA_PublicKey? I tried many different…

asic
- 53
- 10
0
votes
1 answer
Botan::AutoSeeded_RNG / m128i _mm_shuffle_epi8 : target specific option mismatch
This is my first time trying Botan, so the strategy is to try get one thing work first, one at a time.
The first thing I'm doing is simply:
#include
class Myclass {
...
Botan::AutoSeeded_RNG rng;
}
All the .h files in…

asic
- 53
- 10
0
votes
0 answers
How to build Botan for iOS arm64
Im trying to build Botan-1.10.12 for iOS (arch arm64) with Xcode 7.3.1.
I tried to follow the guidelines on Botan's website: https://github.com/randombit/botan/blob/master/doc/manual/building.rst#for-ios-using-xcode
With some changes, I managed to…

LavaCharizard
- 21
- 6
0
votes
2 answers
Identifier "unlock" is undefined
In this example code
http://botan.randombit.net/manual/fpe.html
there is a method that I am trying to use in a Visual C++ managed wrapper, but I keep getting compile error on the 'unlock' What is this? (could it be mutex::unlock) And how can i…

erotavlas
- 4,274
- 4
- 45
- 104
0
votes
1 answer
Botan 1.10.9 SecureVector to std::vector bad_alloc
I have this strange error in botan 1.10.9.
When I want to store the private key bytes vector and the publics key byte vector i get an std::bad_alloc error. Could it be that is not possible to initialize a std::vector from the SecureVector from…

Sebastian
- 1,243
- 1
- 18
- 34
0
votes
1 answer
Boost Test and QtTest memory access violation with Botan
I've been struggling with this and so far couldn't make it work. A simple main using botan works fine, but when i put the same code in a unittest it fails.
// keygeneration_test.cpp
#define BOOST_TEST_DYN_LINK
#include …

Sebastian
- 1,243
- 1
- 18
- 34
0
votes
2 answers
Openssl RSA Key generation
I have a client which talks to a server and communication is encrypted using RSA and AES combination. The RSA key pair which I had generated was without passphrase. So, to make it secure I recently added the passphrase. Every thing works fine server…

adnan kamili
- 8,967
- 7
- 65
- 125
0
votes
0 answers
botan Segmentation fault
How to avoid memory leacks in this example? I am new in Botan...
I am using :
-Cygwin
-Cmake
-botan 1.8 version
#include
using namespace std;
#include
#include
int main(int argc, char ** argv) {
try {
…

Szymon Madera
- 87
- 1
- 6
0
votes
2 answers
How to compile botan library on linux in 64-bit mode
I wanted to compile botan library version Botan-1.10.1 on linux for 64-bit mode.
Please tell me steps for compiling the botan on linux in 64-bit mode.

Abhishek Panse
- 11
- 2
0
votes
1 answer
mingw failing to create libbotan.a
I am trying to build botan from official sources using:
D:\Qt\5.2.1\mingw48_32>python configure.py --cc=gcc --os=mingw --cpu=i386 --without-boost
all goes good, but when i use mingw32-make it ends at:
process_begin: CreateProcess(NULL, rm -f…

Van Assassin
- 59
- 8
0
votes
1 answer
Getting a Botan library test program to compile under Windows 7 (MinGW, Code::Blocks)
I have been trying in vain to get this test program to compile
#include
int main()
{
Botan::LibraryInitializer init;
}
I have downloaded library source from the website. I ran configure.py, which ran fine.
I…

MadOgre
- 501
- 6
- 15
0
votes
2 answers
Incompatible AES implementation between Botan and phpseclib
I'm using Botan library for AES encryption/decryption in C++. I cannot use the output of Botan in phpseclib with accurate results. I would appreciate if someone points me a working code for interoperability between Botan and phpseclib or any other…

Marcus Frenkel
- 691
- 10
- 19
0
votes
1 answer
How to perform asymmetric encryption with Botan
I'm using Botan to generate a hash, perform encryption with AES256, and now I want to perform asymmetric encryption with that. Reading this page: http://botan.randombit.net/pubkey.html.
I created a code to generate the public and private keys for…
user1576869
0
votes
1 answer
How to get encryption/decryption progress when encrypt big files with botan in Qt
I have the code below to encrypt and decrypt file with botan in Qt.
When encrypt big files it spend a lot of time, and i want to get the number of processed bytes when encrypting/decrypting big files. Is it possible?
void…
user1576869
0
votes
1 answer
Convert Botan SHA256 output to base64 to match .NET SHA256Managed().ComputeHash()
I'm porting a portion of a .NET application to Qt on Linux. I am trying to replicate the results of a .NET function to create the SHA-256 hash of a password + salt. The .NET code is
return new SHA256Managed().ComputeHash(buffer);
I have code that…

DarwinIcesurfer
- 1,073
- 4
- 25
- 42