add legacy functions setkey() and encrypt()