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

make-cbc*-encryptor ENCRYPTOR PADFN BLOCKSIZEprocedure

Given a block encryption function that accepts and returns blobs of BLOCKSIZE bytes and a padding function, returns a CBC processor using the supplied encryptor that will encrypt arbitrary blobs, making them larger with padding in the process, and including an encrypted copy of the IV in the ciphertext.

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