Re: Doubt regarding EMSA-PKCS1-v1_5

2005-05-26 Thread Suram Chandra Sekhar
Hi, Thank you very much for the response. In one protocol, the signature algorithm is defined to be always SHA1. The encoding to be used is EMSA-PKCS1-v1_5 encoding as defined in PKCS#1 v2.0 document. In my implementation, Iam using RSA_private_encrypt instead of RSA_sign() for signing purpos

Re: Doubt regarding EMSA-PKCS1-v1_5

2005-05-25 Thread Dr. Stephen Henson
On Wed, May 25, 2005, Suram Chandra Sekhar wrote: > Hi all, > Thank you very much for the reply. I was going through the man page of > RSA_sign(). It is indicating as follows... > If type is NID_md5_sha1, an SSL signature (MD5 and SHA1 message digests > with PKCS #1 padding and no algorithm id

Re: Doubt regarding EMSA-PKCS1-v1_5

2005-05-25 Thread Suram Chandra Sekhar
is not used in RSA_sign(). If my understanding is correct, can anyone please point out how to make RSA_sign() do this job. Regards Suram At 02:16 AM 5/25/2005, Nils Larsch wrote: Suram Chandra Sekhar wrote: Hi all, I have a doubt regarding EMSA-PKCS1-v1_5 usage in OpenSSL. My requirement is

RE: Doubt regarding EMSA-PKCS1-v1_5

2005-05-24 Thread Steven Reddie
encrypted with the private key. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nils Larsch Sent: Wednesday, 25 May 2005 7:22 AM To: openssl-users@openssl.org Subject: Re: Doubt regarding EMSA-PKCS1-v1_5 Ken Goldman wrote: ... >>RSA_private_encryp

Re: Doubt regarding EMSA-PKCS1-v1_5

2005-05-24 Thread Nils Larsch
Ken Goldman wrote: ... RSA_private_encrypt adds only the 0x00 || 0x01 || PS || 0x00 padding (if padding == RSA_PKCS1_PADDING). If you want to let openssl do the whole encoding/padding use RSA_sign or if you want to create the T value manually you need to use i2d_X509_SIG, see RSA_sign. Correct

Re: Doubt regarding EMSA-PKCS1-v1_5

2005-05-24 Thread Ken Goldman
> Date: Tue, 24 May 2005 22:46:57 +0200 > From: Nils Larsch <[EMAIL PROTECTED]> > > Suram Chandra Sekhar wrote: > > Hi all, > > I have a doubt regarding EMSA-PKCS1-v1_5 usage in OpenSSL. > > > > My requirement is that I want to sign some data

Re: Doubt regarding EMSA-PKCS1-v1_5

2005-05-24 Thread Nils Larsch
Suram Chandra Sekhar wrote: Hi all, I have a doubt regarding EMSA-PKCS1-v1_5 usage in OpenSSL. My requirement is that I want to sign some data using a specific Hash Algorithm (SHA1). For this Iam trying to do the following steps instead of calling rsa_sign() function directly. 1

Doubt regarding EMSA-PKCS1-v1_5

2005-05-24 Thread Suram Chandra Sekhar
Hi all, I have a doubt regarding EMSA-PKCS1-v1_5 usage in OpenSSL. My requirement is that I want to sign some data using a specific Hash Algorithm (SHA1). For this Iam trying to do the following steps instead of calling rsa_sign() function directly. 1. Calculate SHA1 Hash on the data to be