MCPcopy Create free account
hub / github.com/ElementsProject/elements / TestEncrypt

Method TestEncrypt

src/wallet/test/wallet_crypto_tests.cpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static void TestEncrypt(const CCrypter& crypt, const std::vector<unsigned char>& vchPlaintextIn, \
66 const std::vector<unsigned char>& vchCiphertextCorrect = std::vector<unsigned char>())
67{
68 TestEncryptSingle(crypt, CKeyingMaterial(vchPlaintextIn.begin(), vchPlaintextIn.end()), vchCiphertextCorrect);
69 for(std::vector<unsigned char>::const_iterator i(vchPlaintextIn.begin()); i != vchPlaintextIn.end(); ++i)
70 TestEncryptSingle(crypt, CKeyingMaterial(i, vchPlaintextIn.end()));
71}
72
73};
74

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected