Questions tagged [botan]

Botan is a BSD-licensed crypto library for C++ applications. It provides access to most major cryptographic algorithms.

127 questions
0
votes
1 answer

Generating hash with Argon2 on Botan results in garbage data and 0xC0000005: Access violation reading location 0x0000000100000000

I'm trying to hash passwords using the C++ cryptography library Botan. I've tried testing out the library using the code below: #include #include #include #include int main() { …
emredesu
  • 179
  • 1
  • 5
  • 11
0
votes
0 answers

Memory used internally by Botan not deallocated

I have currently a memory issue using the Botan library (version 2.15) for cryptography functions within a C++ project. My development environment is Solus Linux 4.1 (kernel-current), but I could observe this issue on Debian Buster too. I observed…
Leitwolf
  • 1
  • 2
0
votes
1 answer

Unable initializing McEliece function in Botan with RNG

I want to use the McEliece function from Botan cryptolibrary within my code with a RNG. The description at the Botan GitHub page is insufficient, with a reference to an old external usage example, which does not work at all. Hence i am new to this…
Leopolis
  • 35
  • 6
0
votes
2 answers

#include no such file or directory in Yocto compilation

HI i have include botan_2.14.0.bb from http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-crypto/botan/botan_2.14.0.bb?h=master and i have bitbake it into my yocto build. below is the rpm outcome: -rw-r--r-- 2 kjlau kjlau 155436…
KJ L
  • 115
  • 2
  • 14
0
votes
1 answer

include botan 2 in compilation

i try include some botan header in compilation process #include #include #include #include #include int main(int argc, char** argv) { return 0; } I found that…
KJ L
  • 115
  • 2
  • 14
0
votes
1 answer

PKCS11 - Generate key for SHA256_HMAC

I use Botan2 library to access SoftHSM2. I managed to generatesome AES/DES keys, yet I would like to generate a secret for SHA256 HMAC. My code (after creating session, logging in and detecting my token): namespace p11 =…
Ondřej Navrátil
  • 453
  • 1
  • 4
  • 11
0
votes
1 answer

Botan build error 'AutoSeeded_RNG' does not name a type

Trying to build the Botan executable, I am getting the following error: ../src/cli/timing_tests.cpp: In static member function 'static Botan::RandomNumberGenerator&…
Perry2584
  • 1
  • 4
0
votes
1 answer

undefined reference to `std::thread::_State::~_State()' while creating RSA_PrivateKey

Compiler complaining undefined reference to std::thread::_State::~_State() when I am trying to create RSA_PrivateKey object in Botan C++. #include #include #include #include using…
CloudWave
  • 913
  • 9
  • 16
0
votes
0 answers

Botan DTLS Server Error: Can't agree on ciphersuite with client

I have written a small DTLS Server Example. In the following Link there is my Code: /**** DTLSPolicy.hpp ****/ #pragma once #include #include #include //ENUM Class for Future Versions //DTLS_ANY is for a…
SepGuest
  • 127
  • 1
  • 11
0
votes
3 answers

How to debug Cygwin failure?

I am porting from Centos to Cygwin and find that my application is exiting with no error message and exit status zero mid execution during the constructor for Botan::InitializationVector. If I try to attach with gdb proactively in main() where it is…
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
0
votes
1 answer

BigInt conversion (gmp Bigint to botan bigint)

I am using gmp to perform complex operation. I want to use Botan to perform cryptography functions. Problem is Both of them have their own Bigint function. So its creating problem on supplying bigint value used in gmp function to Botan function. Can…
ashmish2
  • 2,885
  • 8
  • 40
  • 54
0
votes
1 answer

Botan pipe failbit exception

When I followed the instructions in Botan document Pipe/Filter Message Processing, I was faced with an unexpected failbit error. My code is very simple: ifstream in("2.txt", ios::binary); ofstream out("2.enc", ios::binary); AutoSeeded_RNG…
Arolia
  • 511
  • 2
  • 6
  • 12
0
votes
1 answer

Building NetSieben's SSH Lib for C++

I have trying to build this library for quite a while and I am somewhat confused. I found it recommended on Stack Overflow (http://www.netsieben.com/products/ssh/index.phtml) but it only comes in Source packages. It also requires the Botan library…
Josh Renwald
  • 1,479
  • 3
  • 17
  • 17
0
votes
1 answer

Using XTS algorithm within Botan library for encryption/decryption

The Botan library (botan.randombit.net/) has a number of algorithms for encryption/decryption. I am interested in using the XTS algorithm for encryption/decryption that is available within Botan. However, there is no example provided for XTS usage…
Saif
  • 1
  • 1
0
votes
1 answer

Linking static library to a class library project

I have a static library with .lib extension. Now, I want to link this library to a class library project in Microsoft Visual Studio 10 and use the functions in my class library project. I add the path of .lib file to my class library project by…
Enes Altuncu
  • 449
  • 2
  • 7
  • 14
1 2 3
8 9