Replaced encrypt call by decrypt call in decryption mode