fix derp for AES and SHA1 routines