|
-
May 20th, 2013, 09:44 AM
#7
Re: Conversion Problem
Reply to Bonnie:
If I change my original code to an empty byte string (32 VbNull) instead of the actual random bytes, it does not error out. I suspect that is why your original code worked. Experimenting a little, if I try to change the MAC Key Hash protocol to CALG_SHA1 instead of CALG_MD5 using KP_SCHANNEL_ALG as the parameter, it now errors out. It almost seems that any change from the default settings causes an error. I seem to remember somewhere that before using SCHANNEL you are supposed to enumerate the protocols. It never said why, but I will give that a try and let you know.
J.A. Coutts
Edit:
After acquiring the context for RSA SCHANNEL, enumerating algorythms shows:
---------------------------------------------------------
ALGID dwBits algType namelen Name
------------------------------
26126 128 Data_Encrypt 8 AES 128
26128 256 Data_Encrypt 8 AES 256
26114 128 Data_Encrypt 4 RC2
26625 128 Data_Encrypt 4 RC4
26113 56 Data_Encrypt 4 DES
26121 112 Data_Encrypt 13 3DES TWO KEY
26115 168 Data_Encrypt 5 3DES
32772 160 Hash 6 SHA-1
32771 128 Hash 4 MD5
32776 288 Hash 12 SSL3 SHAMD5
32773 0 Hash 4 MAC
41984 1024 Exchange 9 RSA_KEYX
32777 0 Hash 5 HMAC
19461 40 Msg_Encrypt 12 SSL2 MASTER
19457 384 Msg_Encrypt 12 SSL3 MASTER
19462 384 Msg_Encrypt 12 TLS1 MASTER
19458 0 Msg_Encrypt 16 SCH MASTER HASH
19459 0 Msg_Encrypt 12 SCH MAC KEY
19463 0 Msg_Encrypt 12 SCH ENC KEY
------------------------------------------------------------------
Unfortunately, the error still remains.
Last edited by couttsj; May 20th, 2013 at 09:02 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|