Re: Problem with ecdsa

2007-03-20 Thread Nils Larsch
jimmy wrote: ... you see, as Nils, pointed out your blob is not in asn.1 der format (not starting with 0x30..). since ecdsa_sig is BIGNUM *r, *s; you can try using the BN_bin2bn() function to directly convert your blob to BIGNUM. you'll need to do this twice, once for r & once for s. Since Nil

RE: Problem with ecdsa

2007-03-20 Thread Jürgen Heiss
Thanks I found it already! Now everything works fine -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jimmy Sent: Dienstag, 20. März 2007 13:38 To: openssl-users@openssl.org Subject: Re: Problem with ecdsa [pls correct me if i'm wrong] Jürgen

Re: Problem with ecdsa

2007-03-20 Thread jimmy
[pls correct me if i'm wrong] Jürgen Heiss wrote: Hi again, Yes, ecdsa_sig is defined like { int r; int s; } But the problem is that I don't know how to get my SignaturValue which is "724PlFGHTTL1cFlLFU6g6UetcPVBEAN6oNpogAUx3rgELFH86gA+NqvjVf316zek" into this struct. The function d

RE: Problem with ecdsa

2007-03-20 Thread Jürgen Heiss
s struct always return -1; ;o( Jürgen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jimmy Sent: Dienstag, 20. März 2007 11:32 To: openssl-users@openssl.org Subject: Re: Problem with ecdsa Jürgen Heiss wrote: > Hi Jim, > > First of all tha

Re: Problem with ecdsa

2007-03-20 Thread jimmy
Jürgen Heiss wrote: Hi Jim, First of all thanks for your fast answer. But still it don't understand 100%! If have an SignatureValue which is 724PlFGHTTL1cFlLFU6g6UetcPVBEAN6oNpogAUx3rgELFH86gA+NqvjVf316zek But how can I but this now into an ECDSA_SIG struct? Jürgen [not sure of the openss

RE: Problem with ecdsa

2007-03-20 Thread Jürgen Heiss
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jimmy Sent: Dienstag, 20. März 2007 09:57 To: openssl-users@openssl.org Subject: Re: Problem with ecdsa Jürgen Heiss wrote: > Hi Nils, > > Hmm, I thin k I can't follow you. > Can you maybe give me a short example? > > Th

Re: Problem with ecdsa

2007-03-20 Thread jimmy
Jürgen Heiss wrote: Hi Nils, Hmm, I thin k I can't follow you. Can you maybe give me a short example? Thanks and regards Jürgen what he means is that there is no asn.1 sequence, just the 2 integers concat'ed. normally you would've expected to have something like this: sequence { // der

RE: Problem with ecdsa

2007-03-20 Thread Jürgen Heiss
t: Re: Problem with ecdsa Nils Larsch wrote: > Moin Jürgen, > > Jürgen Heiss wrote: >> Hi everybody, >> >> I try to verify a xml file which was signed with ecdsa-sha1. >> I alredy read to SignatureValue from the xmlfile. which is. >> >> 724PlFGHTTL1cF

Re: Problem with ecdsa

2007-03-19 Thread Nils Larsch
Nils Larsch wrote: Moin Jürgen, Jürgen Heiss wrote: Hi everybody, I try to verify a xml file which was signed with ecdsa-sha1. I alredy read to SignatureValue from the xmlfile. which is. 724PlFGHTTL1cFlLFU6g6UetcPVBEAN6oNpogAUx3rgELFH86gA+NqvjVf316zek are you _really_ sure that this is a

RE: Problem with ecdsa

2007-03-19 Thread Jürgen Heiss
unsigned char * But still the function d2i_ECDSA_SIG failse ;o( Any ideas what went wrong? Thanks Jürgen From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jürgen Heiss Sent: Freitag, 16. März 2007 10:30 To: openssl-users@openssl.org Subject: Probl

RE: Problem with ecdsa

2007-03-19 Thread Jürgen Heiss
Does really no one have any idea? -Original Message- From: Jürgen Heiss Sent: Montag, 19. März 2007 08:41 To: 'openssl-users@openssl.org' Subject: RE: Problem with ecdsa Hi Nils, Maybe there was really something wrong with this xml file. But I have an other xml file whic

RE: Problem with ecdsa

2007-03-18 Thread Jürgen Heiss
f Nils Larsch Sent: Sonntag, 18. März 2007 11:14 To: openssl-users@openssl.org Subject: Re: Problem with ecdsa Moin Jürgen, Jürgen Heiss wrote: > Hi everybody, > > I try to verify a xml file which was signed with ecdsa-sha1. > I alredy read to SignatureValue f

Re: Problem with ecdsa

2007-03-18 Thread Nils Larsch
Moin Jürgen, Jürgen Heiss wrote: Hi everybody, I try to verify a xml file which was signed with ecdsa-sha1. I alredy read to SignatureValue from the xmlfile. which is. 724PlFGHTTL1cFlLFU6g6UetcPVBEAN6oNpogAUx3rgELFH86gA+NqvjVf316zek are you _really_ sure that this is a ecdsa-with-somethin

RE: Problem with ecdsa

2007-03-16 Thread Jürgen Heiss
Is there a function which converts to DER encoding? _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jürgen Heiss Sent: Freitag, 16. März 2007 10:30 To: openssl-users@openssl.org Subject: Problem with ecdsa Hi everybody, I try to verify a xml file which was signed

Problem with ecdsa

2007-03-16 Thread Jürgen Heiss
Hi everybody, I try to verify a xml file which was signed with ecdsa-sha1. I alredy read to SignatureValue from the xmlfile. which is. 724PlFGHTTL1cFlLFU6g6UetcPVBEAN6oNpogAUx3rgELFH86gA+NqvjVf316zek so this is the base64 encoded version. But if i call ecdsa_verify, this doesn't work, bec