to MS people !!!
From: Oleg (anonymous_at_discussions.microsoft.com)
Date: 11/24/03
- Previous message: Nick: "pbData in CPEncrypt"
- Next in thread: Mark_Pryor: "Re: to MS people !!!"
- Reply: Mark_Pryor: "Re: to MS people !!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 24 Nov 2003 06:14:24 -0800
Hello MS people !!!
I'm trying to realize how CryptDeriveKey() works !!!
I'm creating 24 bytes length symmetric key for 3DES
algorithm. These are the steps I do (WITH
PROV_RSA_SCHANNEL):
1. CryptCreateHash(.... CALG_MD5.....);
2. CryptHashData( 24 bytes array {1,2,3,4,5...24})
3. CryptDeriveKey(... CALG_3DES....)
4. encrypt the data....
and here I want to see the real key data:
5. CryptExportKey( .... PLAINTEXTKEYBLOB ....)
the return data DOESN'T look like something
understandable !!!
THE QUESTION:
How the key is derived ???? How it's created ??? This data
doesn't look like something at least similar to MD5 hash
of intial key data.
I'm fighting with C++ client and C# server that DON'T
understand each other !!! In C# I use the same key that is
passed to CryptHashData() at the client side.
Thanks in advance !!!
- Previous message: Nick: "pbData in CPEncrypt"
- Next in thread: Mark_Pryor: "Re: to MS people !!!"
- Reply: Mark_Pryor: "Re: to MS people !!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]