Re: Converting Diffie-Hellman Session keys to CALG_AES_128



On Mon, 18 Sep 2006 11:51:15 -0700, Medical-Fix wrote:

Hey Joe thansk for the help.
I tryed your change but I get the following
error code: 0x80090008

//what I used
ALG_ID Algid = CALG_AES_128;

CryptSetKeyParam(hSessionKey, KP_ALGID, (PBYTE)&Algid,
(128<<16)|CRYPT_EXPORTABLE);
//

let me know what you think...

In order to use AES you need to be on WinXP or higher and then
you need to use the dedicated AES provider. I didn't stop to consider that
the PROV_DSS_DH provider still only supports RC4, 3DES, etc, but not AES,
no matter what OS it runs on.

I'd be surprised if you can use CALG_AES_128 in DH.

regards,
tlviewer


.