MCPcopy Create free account
hub / github.com/LUX-Core/lux / BenchMarkCrypto

Function BenchMarkCrypto

src/cryptopp/bench2.cpp:241–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239
240template <class SCHEME>
241void BenchMarkCrypto(const char *filename, const char *name, double timeTotal)
242{
243 FileSource f(filename, true, new HexDecoder());
244 typename SCHEME::Decryptor priv(f);
245 typename SCHEME::Encryptor pub(priv);
246 BenchMarkEncryption(name, pub, timeTotal);
247 BenchMarkDecryption(name, priv, pub, timeTotal);
248}
249
250template <class SCHEME>
251void BenchMarkSignature(const char *filename, const char *name, double timeTotal)

Callers

nothing calls this directly

Calls 2

BenchMarkEncryptionFunction · 0.85
BenchMarkDecryptionFunction · 0.85

Tested by

no test coverage detected