Doubt about the PKCS5_PBKDF2_HMAC_SHA1() function

2008-03-10 Thread Agustin Cozzetti
Hello everybody, I have a doubt about the PKCS5_PBKDF2_HMAC_SHA1() function. I have to realize a master key derivation on the client and server, using a password to obtain the session encrypt key. I use the PKCS5_PBKDF2_HMAC_SHA1() function to reach this purpose. If i use the same input, should

Doubt about AES_ctr128_encrypt() function

2008-03-05 Thread Agustin Cozzetti
Hello everybody,I have a doubt about how to use the AES_ctr128_encrypt() function. If i want to use this function to decrypt, how should be iniziled the *num argument? Has the result the same size as the input (length,third argument)? Thanks for your help! ___

How to use the HMAC() function

2008-02-26 Thread Agustin Cozzetti
Hello everybody, I have a doubt about how to use the HMAC() function. I developed this code in C language: (abridged) ... unsigned char *auth = NULL; unsigned char *session_auth_key; unsigned char *auth_tag; . . auth = HMAC(EVP_sha1(), session_auth_key, auth_key_length, length,

RE: Doubt about the use and initialization of DH struct

2007-12-16 Thread Agustin Cozzetti
H parameters into a defined size about the final secret, gained using DH_compute_key() function. Thank you for your help, Hector Agustin Cozzetti Subject: RE: Doubt about the use and initialization of DH structDate: Sat, 15 Dec 2007 13:13:09 -0700From: [EMAIL PROTECTED]: openssl-users@openssl

RE: Doubt about the use and initialization of DH struct

2007-12-15 Thread Agustin Cozzetti
Thank you for your reply!!! I have another question about this topic. I need to generate a shared secret which size 16 byte, using a DH_compute_key() function. How can i manage that size Should I use a 16 byte dh->p Thank you for your help, Hector Agustin Cozzetti Subject:

Doubt about the use and initialization of DH struct

2007-12-14 Thread Agustin Cozzetti
// TEST,but string is NULL...why??? i=DH_generate_ket(dh_struct); // return 0,operation failed. } I can not understand where I mistake in the code! Thank you for your help, Hector Agustin Cozzetti _ Scarica GRATIS la