CTR mode tries to be both a stream and block cipher and fails at both

Review Request #2458 - Created Nov. 20, 2019 and submitted

Jason King

CTR mode doesn't work with segment sizes other than AES_BLOCK_LEN. As it is a stream cipher, it should work with any sized input, and as a stream cipher shouldn't accumulate any input data between calls -- it should always be able to act upon an arbitrary size input and immediately produce output.

Updated crypto tests to test different segment sizes, ran updated crypto tests (with and without this change) to verify it works.


  • 1
  • 10
  • 0
  • 11
Description From Last Updated
Previously we cared about pData being NULL, but now we don't care about it at all and are instead only ... Robert Mustacchi Robert Mustacchi
Robert Mustacchi
Robert Mustacchi
Robert Mustacchi
Dan McDonald
Jason King
Review request changed

Status: Closed (submitted)