chickadee » crypto-tools » make-ctr*-encryptor

make-ctr*-encryptor ENCRYPTOR BLOCKSIZEprocedure

Given a block encryption function that accepts and returns blobs of BLOCKSIZE bytes, returns a CTR processor using the supplied encryptor that will encrypt arbitrary blobs, and will include an copy of the IV counter in the ciphertext.

The result of encryption will be one block larger than normal CBC encryption, due to the embedded IV.