Questions tagged [botan]

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

127 questions
1
vote
1 answer

Unable to create SymmetricKey

First of all version of Botan I'm using is Botan-1.10.9 And I'm writing a managed wrapper in Visual C++ Following this example, I'm trying to create a SymmetricKey from the hash of a string so I can pass it into the fe1_encrypt method of the FPE…
erotavlas
  • 4,274
  • 4
  • 45
  • 104
1
vote
0 answers

C++, Botan , QT, use std without creating a file

I'm decrypting some file with Botan like this: std::ifstream in (InFilename.c_str(), std::ios::binary); in.ignore(32); std::ofstream out (outFilename.c_str(), std::ios::binary); Pipe pipe(get_cipher("AES-256/CBC",key,iv, DECRYPTION),new…
AntonD
  • 108
  • 12
1
vote
1 answer

Error compiling Botan example in Qt

I've tried to encrypt file using Botan library, and coded the following: #include #include #include #include #include #include #include using namespace Botan; using namespace…
elgolondrino
  • 665
  • 9
  • 33
1
vote
1 answer

MS CryptoAPI giving wrong RC4 Results?

I am working on a product that needs to be able to consume files created with an older product. Some of these files contain content encrypted with RC4 encryption using MS CryptoAPI. I have thus far been unable to successfully decrypt the content…
1
vote
1 answer

fatal error: botan/botan.h: No such file or directory

I've taken the great advice from this answer, checked the file list for libbotan1.10-dev and found /usr/lib/libbotan-1.10.a, so I used the linker flag -lbotan-1.10. I've successfully been able to code and compile websocket++, json-spirit,…
user1382306
1
vote
1 answer

Compatibility of a secure signature algorithm

After some research it would seem that RSA with PSS padding is suggested to be used as its security properties are known to be good. The problem is that it is hard to have compatibility of signing algorithms, especially with such requirements. What…
hg.
  • 324
  • 1
  • 13
1
vote
1 answer

Botan AES-256, 32 bit InitialVector

I currently have some code that works correctly with the LibTomCrypt libraries, but not with Botan (I am trying to convert it over to Botan). My (working) LibTomCrypt code: // read the initial vector unsigned char iv[0x20]; …
hetelek
  • 3,776
  • 5
  • 35
  • 56
0
votes
1 answer

Compiling Botan 1.10.1: undefined namespaces

Just switched from Botan 1.4 to Botan 1.10. Configure, make and install worked fine on my Mac (OSX10.6). But trying to use the lib #include #include #include int main(void) { puts("!!!Hello World!!!"); …
Marc Schlösser
  • 751
  • 2
  • 8
  • 17
0
votes
1 answer

How to make Botan RSA signature verification match that of PyCrypto

I'm developing a key generator that generates RSA signatures that are to be downloaded to the clients computer. In the clients computer i would like to use a RSA signature and a public key to validate the string. What i would like to know, if you…
0
votes
0 answers

USB Token certificate details Botan and pkcs11 c++

I am trying to read the USB token certificate details like the day stated, the day end and subject, and other details from the certificate on the USB token I am using Botan 2.19 library and PKCS11 I have success in login and also set the bin and i…
mr.alaa
  • 76
  • 3
  • 11
0
votes
0 answers

USB Token certificate details using Botan and pkcs11 c++

I am trying to read the USB token certificate details like the day after, the day before and subject, and other details from the certificate on the USB token I am using Botan 2.19 library and PKCS11 I have success in login and also set the bin but I…
mr.alaa
  • 76
  • 3
  • 11
0
votes
1 answer

Using botan argon2 command line tools

I'm trying to use argon2 for password hashing from within a C++ application. The Botan library seems well regarded for this. I have installed the library on my system via yum. I'm trying to use the command line utilities provided to test the…
jasg
  • 182
  • 2
  • 10
0
votes
1 answer

How to use Botan Amalgamation files and VS2008

Clean install of Windows XP SP3 Install Python 2.7.2 Extract Botan 1.10.1 to the desktop Run configure.py --cc=msvc --disable-shared --gen-amalgamation Copy botan_all.h and botan_all.cpp to my dev workstation Make a new project Win32 console…
pcunite
  • 1,197
  • 15
  • 23
0
votes
0 answers

Libs to do PKCS#7 sign c++

I am wondering is there others C++/C libraries which can perform PKCS#7 attached signature except OpenSSL. For example botan or libtomcrypt? I am triyng to perform PKCS#7 signing document.
0
votes
1 answer

Botan failed to decrypt data using RSA key pair

I'm making a program that has a client and server, and to send data from the client to the server it uses encryption. The data is encrypted with a key and the key gets encrypted with the server's public RSA key, but the server fails to decrypt the…
Lenny
  • 27
  • 8
1 2 3
8 9