Botan is a BSD-licensed crypto library for C++ applications. It provides access to most major cryptographic algorithms.
Questions tagged [botan]
127 questions
1
vote
1 answer
"Undefined reference" when accessing my shared library using JNI
I'm trying to build a version of Botan (library for cryptographic algorithms) using JNI to run a few native C++ programmes on Android.
I've managed to create a libbotan.so without any errors using the NDK tool chain (NDK R5b).
But when I'm compiling…

Stefan
- 65
- 2
- 6
1
vote
0 answers
Linking QSsh Botan-2 std::thread
I compiled successfully BOTAN-2 (botan.exe BOTAN-test.exe runnable).
When I build QSsh's Project under Qt Creator I've got a linking error on std::thead (Compiler MinGW32)
rsa.cpp:-1: erreur : undefined reference to…

mabro
- 61
- 7
1
vote
2 answers
Botan Loading Existing RSA Private Key
I am using Botan C++ library to sign and verify some license.ini file. I have set up Botan PK_Signer to work with RSA algorithm for encrypting the hash created with PKCS v1.5. This is my code:
uint8_t private_key[] = "private key I already have…

Petar Mijović
- 337
- 3
- 15
1
vote
1 answer
Serialize BigInteger in Java, deserialize with Botan?
Question: How can I convert a BigInteger in Java to match the Botan BigInt encoding?
I have communication between Java and a C++ application using Botan. Botan has a BigInt class, comparable to BigInteger. However, the encodings differ when…

user1432882
- 1,126
- 4
- 14
- 29
1
vote
2 answers
MinGW64 and "conflicting declaration of C function int select(...)"
I'm trying to build Botan on MinGW, which is really MinGW-w64 (x86_64-pc-msys). It is failing on MinGW as shown below. I think I have it reduced to an MCVE :
#include
#include
#include
#include
int…

jww
- 97,681
- 90
- 411
- 885
1
vote
1 answer
Botan library and 'compressed' public keys
Does Botan support serialisation / deserialisation of a 'compressed' representation of an EC public key? (only X coordinate of the point on EC + sign). Any example?

Vega4
- 969
- 1
- 11
- 25
1
vote
1 answer
Problem statically linking to Botan on Windows using MSVC
I am trying to statically link a Qt library I am building to Botan using MSVC on Windows and am receiving the following error.
..\..\3rdparty\temp\botan-msvc\build\include\botan/secmem.h(129) : error C2589: '(' : illegal token on right side of '::'
…

Jake Petroules
- 23,472
- 35
- 144
- 225
1
vote
1 answer
Using Botan library with Eclispse
I am trying to use botan library with eclipse. I have compiled botan using Ubuntu and I created small program as follow
#include
int main()
{
LibraryInitializer init;
return 0;
}
But I have got fatal error: botan/build.h: No…

A.Salem
- 31
- 4
1
vote
2 answers
Method to send an encryption key over an insecure connection?
I am using Botan utility to perform encryption. When I initialize my connection to a remote machine using SSH, I am able to trade keys over the secure SSH connection. However, sometimes I use inetd to establish the connection, and in this case,…

WilliamKF
- 41,123
- 68
- 193
- 295
1
vote
1 answer
Why does botan ask for a random number generator that it ignores for compatibility?
I am starting to use the botan cryptographic library and I ran into an odd function signature:
/**
* Load an encrypted key from a data source.
* @param source the data source providing the encoded key
* @param rng ignored for compatability
* @param…

Martin Drozdik
- 12,742
- 22
- 81
- 146
1
vote
1 answer
Botan: serialize ECDH private key
I created a new key pair using
Botan::EC_Group ecgroup("brainpool512r1");
Botan::ECDH_PrivateKey privKey(CBotanInitEx::RNG(), ecgroup);
(compared to RSA, that was fast!)
Trying to serialize it using PKCS#8, as per recommendations here:…

peterchen
- 40,917
- 20
- 104
- 186
1
vote
0 answers
parse error while using botan for enumerated type PRIVATE = 0xC0
I am using Botan-1.4.12 alongwith GNU gcc/g++ 2.95.3 for some legacy code. Will change to newer version of compiler as well newer version of botan later. But, with the legacy code and Botan-1.4.12, I am getting some strange parse error as explained…

Dr. Debasish Jana
- 6,980
- 4
- 30
- 69
1
vote
0 answers
Botan C++. How to decrypt ssh packet?
I'm trying to implement SSH protocol with your library. And I try use 3des algo in cbc mode.
I create encryption as follows:
_encrypt.reset(new Pipe(encryptFilter = new CBC_Encryption(cipher->clone(), new Null_Padding, c2s_key, c2s_iv)));`
I create…

user3107137
- 15
- 1
- 3
1
vote
1 answer
How to configure.py botan library to generate amalgamation files for both win32 and x64 build
I'm trying to use the botan library in my vs2013 project. I would like to add amagamated files to my project and be able to create my app in both win32 and x64 builds.
However, the amalgamated files (botan_all.cpp/botan_all.h/botan_all_internal.h)…

daewonyoon
- 326
- 3
- 7
- 23
1
vote
0 answers
error : is not supported when compiling with /clr or /clr:pure
My .NET managed wrapper for Botan version 1.11.17 generates this error
error C1189: #error : is not supported when compiling with /clr or /clr:pure.
This error was not present when using version 1.10.9 of Botan.
Any help is appreciated…

erotavlas
- 4,274
- 4
- 45
- 104