Add decryption support to ios version.