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?
Asked
Active
Viewed 1,721 times
0
-
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 Answers
0

Sani Huttunen
- 23,620
- 6
- 72
- 79
-
-
-
You should be able to figure out the rest with those two articles. – Sani Huttunen Oct 14 '09 at 15:59
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