Title: Encryption

        I'm trying to encrypt some XML using WinCAPICryptoKeyRSA():

HCRYPTPROV      win32RSACSP = 0;
CryptAcquireContext(&win32RSACSP, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT);

kek = new WinCAPICryptoKeyRSA(win32RSACSP);

        and I got "XENCAlgorithmHandlerDefault::mapURIToKey - key inappropriate for URI" exception. Why? The rest of the code is from cipher.cpp. I couldn't find any example how to use WinCAPICryptoKeyRSA in encryption.

Thank you.

Reply via email to