added AES and SHA1 routines