Re: Problem to compile static void *KDF1_SHA1

2006-12-22 Thread shakal
yeah, I've tried before and It hasn't worked. And now, I did it again using g++ command instead gcc and it worked. Thank you! Shakal [EMAIL PROTECTED] wrote: Hi all, I've created a method to generate ECDH Key, based on ecdhtest.c, available at /openssl/test directory. But I'm facing some

Problem to compile static void *KDF1_SHA1

2006-12-21 Thread shakal
Hi all, I've created a method to generate ECDH Key, based on ecdhtest.c, available at /openssl/test directory. But I'm facing some trouble to compile it. I've inserted the following code in the begining of the file, acording ecdhtest.c, static const int KDF1_SHA1_len = 20; static void

how to use the shared key through ECDH_compute_key method

2006-12-15 Thread shakal
Hi all, I'm a new user trying to use the EC_DH benefits on key sharing. But I'm having some problems to understand how it works... First, in(ecdhtest.c), aout=ECDH_compute_key(abuf,alen,EC_KEY_get0_public_key(b),a,KDF1_SHA1); it generates the following key in both sides Alice and Bob key Alice =

ECDSA: using the same EC_KEY to sign and verify...

2006-12-15 Thread shakal
Hi all, here I come again. I'm testing the ECDSAtest.c approach to make my own test and I saw one thing that I don't really know if it's right. I'm sorry about taking your time, but I'm really trying to learn EC! 01 int main() { 02 const char message[] = abc; 03 unsigned char digest[20]; 04

Re: how to use the shared key through ECDH_compute_key method

2006-12-15 Thread shakal
Nils, thanks. That's what I though, but I've looked rc5 up in the /crypto/rc5/rc5*.{h,c} files, and I don't know how to suply this key, 'cause it generates its key by its own, i.e, through RC5_32_set_key method. Is there another way to use this shared key(or one part of it) from EC_DH, in the rc5