MCPcopy Create free account
hub / github.com/c3d/tao3D / RSADecryptString

Function RSADecryptString

libcryptopp/cryptopp/test.cpp:417–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417string RSADecryptString(const char *privFilename, const char *ciphertext)
418{
419 FileSource privFile(privFilename, true, new HexDecoder);
420 RSAES_OAEP_SHA_Decryptor priv(privFile);
421
422 string result;
423 StringSource(ciphertext, true, new HexDecoder(new PK_DecryptorFilter(GlobalRNG(), priv, new StringSink(result))));
424 return result;
425}
426
427void RSASignFile(const char *privFilename, const char *messageFilename, const char *signatureFilename)
428{

Callers 1

CRYPTOPP_API mainFunction · 0.85

Calls 1

StringSourceFunction · 0.85

Tested by

no test coverage detected