crypto++ Questions

5

Solved

I downloaded and extracted Crypto++ in C:\cryptopp. I used Visual Studio Express 2012 to build all the projects inside (as instructed in readme), and everything was built successfully. Then I made ...
Firewarden asked 5/2, 2013 at 19:0

2

Solved

I tried to install Crypto++ using apt-get: sudo apt-get install libcrypto++-dev libcrypto++-doc libcrypto++-utils. And then I tried to compile very simple program like: #include <iostream> #...
Metaphysics asked 4/10, 2013 at 18:11

3

Solved

I am using MinGW 5.3.0 and Crypto++ 5.6.5: C:\MinGW>g++ -std=c++11 -s -D_WIN32_WINNT=0x0501 LOG.cpp -U__STRICT_ANSI__ Decclass.cpp \ -IC:\\MinGW\\ -IC:\\MinGW\\boost -LC:\\MinGW -lssl -lcrypto ...
Rosemarierosemary asked 9/5, 2017 at 7:51

3

Solved

Here is the Java code: public static String sign(String data) throws Exception { KeyPair keyPair = loadKeyPair(System.getProperty("user.dir"), "ECDSA"); Signature signature = Signature.getInst...
Filtration asked 14/2, 2018 at 9:36

1

Solved

I am looking for the fastest SHA1 implementation since I have to compute it millions of times. I tried boost::uuids::detail::sha1 and OpenSSL SHA1 and I find OpenSSL 2.5 times faster than boost. I ...
Spectatress asked 20/8, 2020 at 9:32

1

Solved

How can I encrypt my string data with SHA-256 padding instead of the default SHA-1 padding in Crypto++? I have not been able to find any way to change what padding algorithm my encryption/decryptio...
Coleridge asked 28/12, 2019 at 2:40

1

Solved

I have a signature created this way: size_t siglenth = _signer.MaxSignatureLength(); QByteArray signature(siglenth, 0x00); signature.reserve(siglenth); siglenth = _signer.SignMessage(_prng, (cons...
Eggnog asked 25/9, 2019 at 12:4

2

I'm currently writing blowfish encryption/decryprion program in C++ (using crypto++). I really didn't find a satisfied answer at google. I'm trying to send a key of a SecByteBlock as a string and ...
Sharpshooter asked 1/10, 2014 at 16:11

4

Solved

Is it possible to store a RSA Private/Public Key in the source for example in a byte[] or string or any other container and use this key for encryption / decryption? A decode function from file wo...
Annecorinne asked 14/3, 2015 at 15:23

3

Solved

I need an example of how to use Crypto++ to generate a SHA256 hash from a std::string and output a std::string. I can't seem to figure it out. Everything I've tried gives me invalid output. Here's...
Detoxify asked 8/5, 2011 at 20:14

3

Solved

I create an ECDSA keypair (secp128r1) in my application with Wei Dai's Crypto++. Signing and verifying works as expected. I do not add the message itself to the signature to minimize the signature ...
Shippee asked 26/6, 2013 at 9:22

2

Solved

I wrote some wrapper functions to encrypt/decrypt files using crypto++. I tried looking in the wiki but could find my answer. I am wondering if I need to explicitly destroy my objects that are crea...
Waterford asked 2/3, 2017 at 1:10

1

Solved

I'm trying to write helper functions for a program I'm making and I need to return the keys as strings. Found a way to convert the RSA keys from PrivateKey/PublicKey to Base64 string. int main() {...
Riancho asked 4/2, 2017 at 19:16

1

Solved

I want to save Crypto++ keys to std::vector<uint8_t>. Unfortunately there is only CryptoPP::StringSink, that takes std::string reference but no CryptoPP::VectorSink that would take a referenc...
Histaminase asked 6/9, 2016 at 13:32

3

Solved

I am using crypto++ in c++ linux. Here is my simple code: #include <iostream> #include <fstream> #include <string.h> #include "crypto++/cryptlib.h" #include "crypto++/modes.h" #...
Kilar asked 21/7, 2012 at 9:28

1

Here i am trying to build libcryptopp.a through ndk-build but i getting error as shown below. Android.mk Application.mk setenv-android.sh its while creating libcryptopp.a and .so by using cryptop...
Schroeder asked 2/12, 2015 at 13:6

4

I downloaded http://www.cryptopp.com/#download 5.6.1 and have no clue that to do at this point. I am a total noob and need good instructions. thanks.
Carping asked 8/7, 2011 at 1:33

0

I am developing a simple chat application, which use crypto++, in ubuntu. The folder for crypto++'s header files is /usr/include/crypto++/. After I upload the source tagbar to CentOS, I found tha...
Ovule asked 27/9, 2015 at 7:57

2

Solved

I am trying to encrypt a text using Crypto++. It worked well last time when using AES CTR, but now when using CBC or GCM the max key length I can use is 32 bits?? The code that handles the encrypt...
Langland asked 3/2, 2015 at 19:40

2

Solved

I'm having a problem trying to convert SecByteBlock to string. Here's my case: I want to encrypt user access data using AES with static key and dynamic iv. My code is something like this: AesKeyI...
Summerly asked 10/8, 2015 at 21:31

1

Solved

My iOS app uses crypto++ as a static library for confidentiality. Since this library is open-sourced, and thus visible to any would-be wrong-doers as it is, common sense implies that there should b...
Suborder asked 18/5, 2015 at 7:48

3

Solved

I want to protect my data from being changed or read by unauthorized people. Searching around I found that Authenticated Encryption(AE) is a solution. I know I can do AE in Crypto++ using any of CC...
Utrecht asked 23/11, 2012 at 11:22

3

Solved

I study C++ independently and I have one problem, which I can't solve more than week. I hope you can help me. I need to get a SHA1 digest of a Unicode string (like Привет), but I don't know how to...
Stilbestrol asked 20/4, 2015 at 18:8

1

Solved

I am trying to specify the Crypto++ library in my CMakeLists file but I always get an error. Here is my CMakeLists file: cmake_minimum_required(VERSION 2.8) project( Recognition ) find_package( ...
Suhail asked 16/4, 2015 at 15:22

3

Solved

Is there a way to use the RSA keys I've generated with the Crypto++ API in OpenSSL? What I am looking for is a way to store the keys in a format that both Crypto++ and OpenSSL can easily open them....
Hemicycle asked 31/8, 2009 at 13:52

© 2022 - 2025 — McMap. All rights reserved.