Re: problem by d2i_ECDSA_SIG

2008-03-27 Thread Helios Nguyen
Hi Jim, Thank you. You are absolutely correct. What is a my stupid. I didn't look carefully ecdsa stuff. Nguyen. On Tue, Mar 25, 2008 at 4:29 PM, jimmy bahuleyan <[EMAIL PROTECTED]> wrote: > Helios Nguyen wrote: > > Hi everyone, > > > > i have problem with ECD

problem by d2i_ECDSA_SIG

2008-03-25 Thread Helios Nguyen
Hi everyone, i have problem with ECDSA_do_sign() and ECDSA_do_verify(). After sign with ECDSA_do_sign() i got signatur. I used d2i_ECDSA_SIG() to decode this signature and verify it. is that true? But there is a error: Segmentation fault (core dumped) when i do d2i_ECDSA_SIG() . I have no ideal

Re: Help me with RSA API

2008-03-25 Thread Helios Nguyen
Hi Trung, all about cryptography of openssl are in openssl/crypto/... directory (rsa: openssl/crypto/rsa) I think if you want to use openssl library you should find documents or books to read. This library is not simple. One book i would be recommended with you is "Network security with openssl".

probem by encoding with ecdsa

2008-03-25 Thread Helios Nguyen
Hi Dmitry and all, i found your post "ECC signature validation failure" in mail-archive. You solved your problem with ECDSA_verify(). Here is your code: So I try to do: ERR_load_EC_strings(); X509 *x = NULL; int type = 0; EVP_PKEY *key = NULL; int len = 0; EC_KEY *ec = NULL; int ret = 0; char *e

ECDSA - PEM or DER?

2008-03-25 Thread Helios Nguyen
Hi all, Have to use ECDSA_sign and ECDSA_verify() with EC_privatekey and certificate in DER format ? There are some has experience with ECDSA can tell this stuff? Many thanks for reply. Nguyen. /** ECDSA_sign * computes ECDSA signature of a given hash value using the supplied * private key (n

Error with ECDSA_verify()

2008-03-25 Thread Helios Nguyen
Hi all, does anyone have ideal about following error? error:0D0680A8:asn1 encoding routines:func(104):reason(168) This error appear when i use function ECDSA_verify() to decryp a digets-string after i use ECDSA_sign(). Many thanks for any reply. Nguyen.

convert binary o hexadecimal

2008-01-07 Thread Helios Nguyen
Hello, can someone tell me with which function to convert binary to haxadecimal after i use hash functions. thanks He.