added implementation of eas decryption