Using 128 bit AES (CALG_AES_128) to generate session keys - problem
From: Dale R (daler1_at_rediffmail.com)
Date: 05/26/04
- Next message: Remus: "Re: Using 128 bit AES (CALG_AES_128) to generate session keys - problem"
- Previous message: Amit Rahul [MS]: "Re: how to use Cryto API"
- Next in thread: Remus: "Re: Using 128 bit AES (CALG_AES_128) to generate session keys - problem"
- Reply: Remus: "Re: Using 128 bit AES (CALG_AES_128) to generate session keys - problem"
- Reply: tlviewer: "Re: Using 128 bit AES (CALG_AES_128) to generate session keys - problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 25 May 2004 19:57:33 -0700
Hi,
Im using Visual Studio 6, Ive installed the latest version (or close
enough) of the Microsoft Platform SDK. Im running this on Windows XP.
My problem arose when trying to use CryptGenKey to generate a 128 bit
session key using the AES algorithm. What happens is that the context
acquiring, container, all the standard calls go through fine. But only
in the case of CALG_AES_128, the CryptGenKey() call fail with
NTE_BAD_ALGID. With CALG_RC4 it goes through just fine (and works!).
So my question is, what could I be doing wrong? What might I need to
do to get this to work? Is it perhaps a problem with the way I
installed PSDK?
My call to CryptGenKey is as follows
CryptGenKey(hProv, ENCRYPT_ALGORITHM, CRYPT_EXPORTABLE, &hSessionKey)
where ENCRYPT_ALGORITHM is #defined to be CALG_AES_128.
Any assistance is greatly appreciated! Ive gone through MSDN very
heavily and it was very useful to do the basic coding, but handling
these odd cases is something I just couldnt do from what I got there.
Thanks!
- Next message: Remus: "Re: Using 128 bit AES (CALG_AES_128) to generate session keys - problem"
- Previous message: Amit Rahul [MS]: "Re: how to use Cryto API"
- Next in thread: Remus: "Re: Using 128 bit AES (CALG_AES_128) to generate session keys - problem"
- Reply: Remus: "Re: Using 128 bit AES (CALG_AES_128) to generate session keys - problem"
- Reply: tlviewer: "Re: Using 128 bit AES (CALG_AES_128) to generate session keys - problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|