botan
botan copied to clipboard
Cryptography Toolkit
I have been having trouble locating a definitive guide or code examples to both create a RSA keypair and Encrypt/ decrypt using said keys. My first method was using the...
At the moment, I only want: tls, system_rng, bcrypt. I am achieving this using --minimized and --enable-modules=tls,system_rng,bcrypt I do something like this (1) ./configure.py --minimized --enable-modules=tls,system_rng,bcrypt --amalgamation --os=macos --cpu=x86_64 --cc=clang...
The comparison of distinguished names (DN) seems to be defined in [section 7.1 of RFC 5280](https://datatracker.ietf.org/doc/html/rfc5280#section-7.1). Although the algorithm requires that the relative distinguished names (RDN) are in the same...
Can you please help us understand how we can decode the multiple hierarchies for example, if we have the following SEQUENCE : SEQUENCE : SET : SEQUENCE : OBJECT IDENTIFIER...
Using the same parameters as with the raw PKCS11 library I get a PKCS11 error 19 (Attribute Invalid) when trying to generate an AES key with the LowLevel API of...
Where is the support to C_GenerateKey of PKCS11 to generate an AES key object in the High Level API?
I have the following code in C to generate an AES Key object for a PKCS11 token: CK_RV generateAESKey(CK_SESSION_HANDLE hSession, const char* tokenLabel, CK_MECHANISM_TYPE ckMechType, const char* keyLabel, CK_ULONG keyLen,...
#ifdef __APPLE__ #if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wshorten-64-to-32" #pragma clang diagnostic ignored "-Wcomma" #pragma clang diagnostic ignored "-Wdeprecated-volatile" #endif #elif defined(__ANDROID__) #if defined(__GNUC__) #pragma GCC...
We are currently testing compatibility of our SmartCard-HSM with the PKCS#11 classes in Botan. I was wondering how we should provide the test results, so they can be integrated in...
Hi, I'm currently trying hard to construct a DER encoded PKCS#7 version 1.5 SignedData structure (RFC2315) using `Botan::DER_Encoder` and could need some help with the encoding. This is what I...
It is too easy for inlines or such to end up in this file and nothing in our CI will detect this so it easily ends up being shipped in...