added context based aes cbc encrypt