RE: Problem with ecdsa

2007-03-20 Thread Jürgen Heiss
: 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. 724PlFGHTTL1cFlLFU6g6UetcPVBEAN6oNpogAUx3rgELFH86gA+NqvjVf316zek are you _really_

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
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? Thanks and regards Jürgen what he

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

RE: Problem with ecdsa

2007-03-20 Thread Jürgen Heiss
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 thanks for your fast answer

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

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 Heiss

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

RE: Problem with ecdsa

2007-03-19 Thread Jürgen Heiss
PROTECTED] On Behalf Of 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 from the xmlfile

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 which was also

RE: Problem with ecdsa

2007-03-19 Thread Jürgen Heiss
I tried an other xmlfile. dsig:SignatureValueXa4w7I1obBULyZoZRuq5UHIwQVle8NmugYafWWaOU+GoWgp2e745PA7DTT0xztaH/dsig:SignatureValue When I decode this SignatureValue with the following function char *unbase64(unsigned char *input, int length) { BIO *b64, *bmem; char *buffer = (char

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

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

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