In inline encryption/decryption supported?

3 views
Skip to first unread message

Matt Jacobs

unread,
Dec 20, 2007, 12:30:06 AM12/20/07
to Crypto++ Users
That is, can I encrypt (or decrypt) into the same buffer, as below?

// assume Buffer is an array of bytes containing previously encrypted
data

CTR_Mode<AES>::Decryption ctrDecryption(btKey, SHA256::DIGESTSIZE,
btIV);
ctrDecryption.ProcessData(Buffer, Buffer, Len);

And if so, is that true for all modes? ECB? CBC?




Wei Dai

unread,
Dec 20, 2007, 5:11:19 AM12/20/07
to Matt Jacobs, Crypto++ Users
Yes, the documentation says

either inString == outString, or they don't overlap

--------------------------------------------------
From: "Matt Jacobs" <mat...@gmail.com>
Sent: Wednesday, December 19, 2007 9:30 PM
To: "Crypto++ Users" <cryptop...@googlegroups.com>
Subject: In inline encryption/decryption supported?

Reply all
Reply to author
Forward
0 new messages