added decrypt assertions fixed #29