locked
RSA encryption using Microsoft library RRS feed

  • Question

  • Hello,

    I'm writing a code of program which contain RSA encryption system. I'm using that: http://msdn.microsoft.com/en-us/library/windows/desktop/aa382358%28v=vs.85%29.aspx

    I had to change _gettch(); into: getchar(); and enter: bool fEOF; before int _tmain and after that everything is fine, program is working

    But: if i replace:

    #define ENCRYPT_ALGORITHM CALG_RC4 

    and:

    #define ENCRYPT_ALGORITHM CALG_RSA_KEYX

    program isn't working. The main problem is: Error computing BLOB lenght!

    What have i to change in code to have possibility use CALG_RSA_KEYX? (I was changing KEYLENGTH, but that's give me nothing)

    Monday, August 12, 2013 5:09 PM

Answers