Re: DSA signatures in OpenSSL 3.0

2022-03-14 Thread Richard Dymond
On Mon, 14 Mar 2022 at 11:03, Tomas Mraz wrote: > On Mon, 2022-03-14 at 08:58 -0300, Richard Dymond wrote: > > By the way, the reason I need to get the 'r' and 's' values from the > > DSA signature is that I am encoding them one after the other as 160- > > bit unsigned integers, in network byte o

Re: DSA signatures in OpenSSL 3.0

2022-03-14 Thread Tomas Mraz
On Mon, 2022-03-14 at 08:58 -0300, Richard Dymond wrote: > On Mon, 14 Mar 2022 at 04:52, Tomas Mraz wrote: > > The DSA_SIG_* functions are not deprecated including the i2d and > > d2i > > functions. So you can use d2i_DSA_SIG to decode the DER produced by > > the > > EVP_DigestSign() and then obta

Re: DSA signatures in OpenSSL 3.0

2022-03-14 Thread Richard Dymond
On Mon, 14 Mar 2022 at 04:52, Tomas Mraz wrote: > The DSA_SIG_* functions are not deprecated including the i2d and d2i > functions. So you can use d2i_DSA_SIG to decode the DER produced by the > EVP_DigestSign() and then obtain the r and s values from the DSA_SIG. > Thank you, that works! For so

Re: DSA signatures in OpenSSL 3.0

2022-03-14 Thread Tomas Mraz
On Fri, 2022-03-11 at 15:21 -0400, Richard Dymond wrote: > Hi > > I recently migrated an application from OpenSSL 1.1.1 to OpenSSL 3.0, > and I'm wondering how best to handle DSA signatures - specifically, > the 'r' and 's' values - in OpenSSL 3.0. > > In OpenSSL 1.1.1, it was pretty easy: > > D

Re: DSA signatures

2003-09-22 Thread Frank
Steve,     That did it!! Thanks a bunch Frank Dr. Stephen Henson wrote: On Mon, Sep 22, 2003, Frank wrote: Nils, Humm I tried this and got a error during signing 1436:error:0606B06E:digital envelope routines:EVP_SignFinal:wrong public key typ e:p_sign.c:101: The p

Re: DSA signatures

2003-09-22 Thread Dr. Stephen Henson
On Mon, Sep 22, 2003, Frank wrote: > Nils, >Humm I tried this and got a error during signing > > 1436:error:0606B06E:digital envelope routines:EVP_SignFinal:wrong public > key typ > e:p_sign.c:101: > > The private key I used was one read in when I generated a DSA > certficate. the header

Re: DSA signatures

2003-09-22 Thread Frank
Nils,     Humm I tried this and got a  error during signing 1436:error:0606B06E:digital envelope routines:EVP_SignFinal:wrong public key typ e:p_sign.c:101: The private key I used was one read in when I generated a DSA certficate.  the headers say DSA Any thoughts?   Same routine I used for

Re: DSA signatures

2003-09-20 Thread Nils Larsch
On Friday 19 September 2003 21:17, Frank wrote: > Nils Larsch wrote: > > On Friday 19 September 2003 15:28, Frank wrote: > > > What I've seen so far with openssl is that there seems to be 10,000 > > > ways to do the same thing so I want to make sure I understand how to do > > > a DSA signature. My

Re: DSA signatures

2003-09-19 Thread Frank
Nils Larsch wrote: > On Friday 19 September 2003 15:28, Frank wrote: > > What I've seen so far with openssl is that there seems to be 10,000 ways > > to do the same thing so I want to make sure I understand how to do a DSA > > signature. My questions are as follows: > > > > 1. Do you need a sep

Re: DSA signatures

2003-09-19 Thread Nils Larsch
On Friday 19 September 2003 15:28, Frank wrote: > What I've seen so far with openssl is that there seems to be 10,000 ways > to do the same thing so I want to make sure I understand how to do a DSA > signature. My questions are as follows: > > 1. Do you need a separte cert for signing RSA DSA? I c

Re: DSA signatures and custom (X.509) certificate extensions

2003-03-20 Thread Dr. Stephen Henson
On Mon, Mar 17, 2003, Henrik Grindal Bakken wrote: > "Dr. Stephen Henson" <[EMAIL PROTECTED]> writes: > > > On Thu, Mar 13, 2003, Henrik Grindal Bakken wrote: > > > >> Firstly, I want to make a signature on a file using a DSA key-pair. > >> I can do this for an RSA pair with 'openssl rsautl', but

Re: DSA signatures and custom (X.509) certificate extensions

2003-03-20 Thread Henrik Grindal Bakken
"Dr. Stephen Henson" <[EMAIL PROTECTED]> writes: > On Thu, Mar 13, 2003, Henrik Grindal Bakken wrote: > >> Firstly, I want to make a signature on a file using a DSA key-pair. >> I can do this for an RSA pair with 'openssl rsautl', but is there >> something similar for DSA, or do I have to write it