0

I can't find any help to implement PROV_RSA_AES CSP in c++. is there any article or book to help me out with it?

mjv
  • 73,152
  • 14
  • 113
  • 156
Dave_19
  • 1
  • 1
  • Do you actually want to implement a CSP? Or do you just want to use one? – Rasmus Faber Oct 15 '09 at 15:20
  • i just want to use one, i figured how to get context but i'm still thinking about the size of buffer i need to use for CryptEncrypt() to get it working with aes256 ? i also want to use random salt. – Dave_19 Oct 17 '09 at 04:29

2 Answers2

0

Here is an article about it.
Here is another one.

Sani Huttunen
  • 23,620
  • 6
  • 72
  • 79
0

i just want to use one, i figured how to get context but i'm still thinking about the size of buffer i need to use for CryptEncrypt() to get it working with aes256 ? i also want to use random salt.

AES256 in CBC-mode with PKCS#7-padding (which is the default) will need a buffersize that is the input-data rounded up to the next multiple of 16 (but always at least one byte more). Ie. 35 -> 48, 52 -> 64, 80 -> 96.

There is no salt involved in AES256. Are you talking about key-derivation? Or do you mean the IV?

Rasmus Faber
  • 48,631
  • 24
  • 141
  • 189