fix raising CipherError

Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>