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

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

Information
Jason King
illumos-gate
11966
Reviewers
general

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.

Loading...