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

Method EncryptAndAuthenticate

libcryptopp/cryptopp/cryptlib.cpp:218–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void AuthenticatedSymmetricCipher::EncryptAndAuthenticate(byte *ciphertext, byte *mac, size_t macSize, const byte *iv, int ivLength, const byte *header, size_t headerLength, const byte *message, size_t messageLength)
219{
220 Resynchronize(iv, ivLength);
221 SpecifyDataLengths(headerLength, messageLength);
222 Update(header, headerLength);
223 ProcessString(ciphertext, message, messageLength);
224 TruncatedFinal(mac, macSize);
225}
226
227bool AuthenticatedSymmetricCipher::DecryptAndVerify(byte *message, const byte *mac, size_t macLength, const byte *iv, int ivLength, const byte *header, size_t headerLength, const byte *ciphertext, size_t ciphertextLength)
228{

Callers

nothing calls this directly

Calls 4

UpdateFunction · 0.85
ProcessStringFunction · 0.85
TruncatedFinalFunction · 0.85
ResynchronizeFunction · 0.70

Tested by

no test coverage detected