Aleksey, I want to encrypt an RSA key using a generated session key but it always fails because the readBin and writeBin function pointers are NULL for RSA keys (xmlsecRsaKeyId) but required by the xmlSecKeyWriteBin in order to fill in the EncryptedKey element. Is there a way to encrypt RSA keys? Thanks, MS