rsa_sign versus RSA_private_encrypt

2010-10-28 Thread Bob Dijck
Hello, I am trying to implement a signing function in C++ using RSA. Here's how I wanted to do this: - First I calculate the SHA1 hash (not using openssl but another implementation). - But then what? Should I use RSA_private_encrypt or rsa_sign? When I use RSA_private_encrypt the result is

Re: rsa_sign versus RSA_private_encrypt

2010-10-28 Thread Dr. Stephen Henson
On Thu, Oct 28, 2010, Bob Dijck wrote: Hello, I am trying to implement a signing function in C++ using RSA. Here's how I wanted to do this: - First I calculate the SHA1 hash (not using openssl but another implementation). - But then what? Should I use RSA_private_encrypt or rsa_sign?

RE: rsa_sign versus RSA_private_encrypt

2010-10-28 Thread Bob Dijck
Thank you, Steve, for the swift reply. Can I use i2d_X509_SIG to perform to encapsulation step (supposing I have to use RSA_private_encrypt)? Best regards, Bob D. -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dr.

RSA-PSS

2010-10-28 Thread Bram Cymet
Hi, I would like to add rsa-pss support to my application and I have a few questions: RSA-PSS support exists in the current stable code base correct? Is there anyway to use it from the command line? As far as I can tell to use RSA-PSS I compute a hash as I normally would and then call

B64_read_PKCS7 : Anyone modified the base64 reader to be more forgiving?

2010-10-28 Thread Harakiri
I'm getting alot of wrongly encoding mails lately from different sources, they have base64 lines which exceeds the standard. I.e. in between one line is 4 characters longer, then the next lines are all shifted by these 4 characters. i.e.

Re: rsa_sign versus RSA_private_encrypt

2010-10-28 Thread Dr. Stephen Henson
On Thu, Oct 28, 2010, Bob Dijck wrote: Thank you, Steve, for the swift reply. Can I use i2d_X509_SIG to perform to encapsulation step (supposing I have to use RSA_private_encrypt)? Well you can if you want but RSA_sign() does all that for you. There is an easier way: the encapsulation

Re: RSA-PSS

2010-10-28 Thread Dr. Stephen Henson
On Thu, Oct 28, 2010, Bram Cymet wrote: Hi, I would like to add rsa-pss support to my application and I have a few questions: RSA-PSS support exists in the current stable code base correct? OpenSSL 0.9.8 has padding support and a rather crude EVP support: primarily so PSS could be

Re: rsa_sign versus RSA_private_encrypt

2010-10-28 Thread Kenneth Goldman
owner-openssl-us...@openssl.org wrote on 10/28/2010 03:07:18 AM: From: Bob Dijck di...@turnhout.tokheim.com I am trying to implement a signing function in C++ using RSA. Here’s how I wanted to do this: - First I calculate the SHA1 hash (not using openssl but another implementation).

RE: B64_read_PKCS7 : Anyone modified the base64 reader to be more forgiving?

2010-10-28 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Harakiri Sent: Thursday, 28 October, 2010 07:52 I'm getting alot of wrongly encoding mails lately from different sources, they have base64 lines which exceeds the standard. I.e. in between one line is 4 characters longer, then the next

RE: rsa_sign versus RSA_private_encrypt

2010-10-28 Thread Bob Dijck
Steve, Your advice is very much appreciated. Thanks again for resolving this issue for me so quickly. Kind regards, Bob D. -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dr. Stephen Henson Sent: donderdag 28 oktober 2010