Encryption algorithm and key size in TLS

David Pierre <[email protected]> Mon, 21 Jan 2013 02:28:57 -0800 (PST)
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
I got a tiny TLS client/server running on localhost. This little test works
fine, and i try some changes. I look for modifying key size used in TLS.
Does the key size depend on used cert ?

I tried with "test/keys/server.p15" and "test/keys/server1.p15", and i
obtained same informations on encryption : 3DES, CBC and 24 as key size.

My questions are in TLS context : 
- How can i know the RSA key size used on certificate (if that's possible) ? 
- Are there other certificates available with different key size ?
- Once certificate is validated, how can i change the 3DES key size used ? 

I tried on server part:

status = getPrivateKey( &privateKey, "test/keys/server.p15",
USER_PRIVKEY_LABEL, TEST_PRIVKEY_PASSWORD );
status = cryptSetAttribute( cryptSession, CRYPT_SESSINFO_PRIVATEKEY,
privateKey );

/*test start*/
status = cryptSetAttribute( privateKey, CRYPT_CTXINFO_KEYSIZE, 1024 / 8 );
status = cryptGenerateKey( privateKey );
/*test end*/

But i got a -21 error code on cryptSetAttribute for info keysize.

What am I doing wrong ?
-- 
View this message in context: http://old.nabble.com/Encryption-algorithm-and-key-size-in-TLS-tp34925548p34925548.html
Sent from the Cryptlib mailing list archive at Nabble.com.


_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.