gwoodhouse
New Member
Bit of a long shot but here we go anyways....
I'm using the crypto functions within ADVAPI32.dll on Progress v9.1D and am having some problems.
I've sucessfuly generated a key on my third party USB token hardward using the CryptGenKey function.
I then get a handle to the CSP, GetUsersKey from the Token, Export the Key into a Key Blob and Import the Key sucessfuly.
The trouble begins when I try to run CryptEncrypt... I keep getting the following error. "Invalid Algorithm Specified" -2146893816.
Now I know the Algorithm is set when generating the Key and thus far I have attempted creating keys with the following algorithms.
CALG_RSA_KEYX
CALG_RSA_SIGN
CALG_DSS_SIGN
AT_KEYEXCHANGE
AT_SIGNATURE
But each time the CryptEncrypt function returns with the same error...
Any ideas?????
I'm using the crypto functions within ADVAPI32.dll on Progress v9.1D and am having some problems.
I've sucessfuly generated a key on my third party USB token hardward using the CryptGenKey function.
I then get a handle to the CSP, GetUsersKey from the Token, Export the Key into a Key Blob and Import the Key sucessfuly.
The trouble begins when I try to run CryptEncrypt... I keep getting the following error. "Invalid Algorithm Specified" -2146893816.
Now I know the Algorithm is set when generating the Key and thus far I have attempted creating keys with the following algorithms.
CALG_RSA_KEYX
CALG_RSA_SIGN
CALG_DSS_SIGN
AT_KEYEXCHANGE
AT_SIGNATURE
But each time the CryptEncrypt function returns with the same error...
Any ideas?????