| 63 | } |
| 64 | |
| 65 | static 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 |