enable optimized sha1 and aes