R: Hash message

2010-05-02 Thread denot...@libero.it
Sorry . I forgotten that i need to use SHA1 function unsigned char *SHA1(const unsigned char *d, unsigned long n, unsigned char *md); thanks >Messaggio originale >Da: denot...@libero.it >Data: 02/05/2010 10.08 >A: >Ogg: Hash message > >Hi all

Hash message

2010-05-02 Thread denot...@libero.it
Hi all wha's the best way to do a < H(M || T) ?? H is a one-way function (preferably SHA1) M is a message (string or binary data) T ,a are a BIGNUM || concat __ OpenSSL Project http://www.ope

R: Re: how to generate relatively prime numbers

2010-04-30 Thread denot...@libero.it
Thanks. >Messaggio originale >Da: victor.ducho...@morganstanley.com >Data: 30/04/2010 19.11 >A: >Ogg: Re: how to generate relatively prime numbers > >On Fri, Apr 30, 2010 at 06:32:30PM +0200, Michael T?xen wrote: > >> On Apr 30, 2010, at 9:29 AM, denot..

how to generate relatively prime numbers

2010-04-30 Thread denot...@libero.it
Hi all. I need to generate a BIGNUM C that is relatively prime with a BIGNUM N( GCD (N,C)=1 ) is there a pre-built function in openssl library ?? Thanks. __ OpenSSL Project http://www.openssl.or

I: export custom key in a PEM format

2009-11-01 Thread denot...@libero.it
I'm working with ID-based signature (SHAMIR 84) and I create a c struct as below: struct sign { BIGNUM *s; BIGNUM *d; } How do I export this private key into a file in a PEM format?? Thanks in advance __ OpenSSL Project

export custom key in a PEM format

2009-10-30 Thread denot...@libero.it
Hi all I'm working with ID-based signature (SHAMIR 84) and I create a struct as below: struct sign { BIGNUM *s; BIGNUM *d; } How do I export this key into a file in a PEM format?? Thanks in advance __ OpenSSL Project