added initialized boolean

crypto must have an algorithm and a mode, initialized boolean indicates
if it does or if init needs to be called