Re: Unable to set RSA_NO_PADDING?

2014-05-15 Thread Dr. Stephen Henson
On Thu, May 15, 2014, Jan Danielsson wrote: > Hello, > >Purely for a test case to see if a small wrapper library for > EVP_DigestSign*() can output the exact same signature twice, I tried > calling: > >if((rc = EVP_PKEY_CTX_set_rsa_padding(pctx, RSA_NO_PADDING))

Unable to set RSA_NO_PADDING?

2014-05-15 Thread Jan Danielsson
Hello, Purely for a test case to see if a small wrapper library for EVP_DigestSign*() can output the exact same signature twice, I tried calling: if((rc = EVP_PKEY_CTX_set_rsa_padding(pctx, RSA_NO_PADDING)) <= 0) { print("failed with %d\n", rc); } With plain

Re: RSA_private_encrypt does not work with RSA_NO_PADDING option

2010-07-19 Thread van anh pham
I see the point. Thanks alot On Tue, Jul 20, 2010 at 12:47 AM, Mounir IDRASSI wrote: > Hi, > > When calling RSA_private_encrypt with RSA_NO_PADDING, the input must have > the same size as the RSA key modulus. > In your case, you are supplying 20 bytes whereas it certainly ne

Re: RSA_private_encrypt does not work with RSA_NO_PADDING option

2010-07-19 Thread Mounir IDRASSI
Hi, When calling RSA_private_encrypt with RSA_NO_PADDING, the input must have the same size as the RSA key modulus. In your case, you are supplying 20 bytes whereas it certainly needs more (for example, for a 1024 bit key, input must be 128 bytes long). So, you have to add some sort of

Re: RSA_private_encrypt does not work with RSA_NO_PADDING option

2010-07-19 Thread Dr. Stephen Henson
On Mon, Jul 19, 2010, anhpham wrote: > > Hi all :x > I encountered an error when using function RSA_private_encrypt with > RSA_NO_PADDING option. > I had an unsigned char array a with length = 20, RSA* r, > unsigned char* sig = (unsigned char*) malloc(RSA_size(r)) and then I

RSA_private_encrypt does not work with RSA_NO_PADDING option

2010-07-19 Thread anhpham
Hi all :x I encountered an error when using function RSA_private_encrypt with RSA_NO_PADDING option. I had an unsigned char array a with length = 20, RSA* r, unsigned char* sig = (unsigned char*) malloc(RSA_size(r)) and then I invoked function int i = RSA_private_encrypt(20,a ,sign,r

Function RSA_private_encrypt does not work with RSA_NO_PADDING option

2010-07-19 Thread anhpham
20, a, signature, r, RSA_NO_PADDING ) and I received i = -1. It means that an error occurred. However when I invoked function int i = RSA_private_encrypt ( 20, a, signature, r, RSA_NO_PADDING ), it run smoothly. I was confused whether it's an error of library or not but I did not know how to solve thi

Re: Strange Problem using RSA PublicEncryption with RSA_NO_PADDING

2003-03-14 Thread Götz Babin-Ebell
Hello Christoph, Christoph Hansen wrote: I have a problem, I cannot really cover. I'm using public key encryption together with RSA_NO_PADDING. The Key-/Modulus-Size is 128Byte and the message to be encrypted are also 128Byte sized. There exist choosen plain text attacks against RSA... N

Strange Problem using RSA PublicEncryption with RSA_NO_PADDING

2003-03-14 Thread Christoph Hansen
Hello, I have a problem, I cannot really cover. I'm using public key encryption together with RSA_NO_PADDING. The Key-/Modulus-Size is 128Byte and the message to be encrypted are also 128Byte sized. Now my problem: Using the same (!) binary code (running in a debugging environment or no

Re: RSA_NO_PADDING

2002-04-02 Thread Gregory Stark
eg Stark [EMAIL PROTECTED] == - Original Message - From: "Ryan Jarvis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 02, 2002 10:35 AM Subject: RSA_NO_PADDING > IS it possible to use RSA_NO_PADDING when calling RSA_public_encr

RSA_NO_PADDING

2002-04-02 Thread Ryan Jarvis
IS it possible to use RSA_NO_PADDING when calling RSA_public_encrypt? I get a -1 returned from the RSA_public_encrypt() function? Thanks Ryan __ OpenSSL Project http://www.openssl.org User

Re: Problems encrypting with RSA and RSA_NO_PADDING

2001-07-11 Thread Greg Stark
IL PROTECTED]> Sent: Wednesday, July 11, 2001 1:08 PM Subject: Problems encrypting with RSA and RSA_NO_PADDING > I am having problem encrytping and then decrypting messages using RSA > withthe padding set to RSA_NO_PADDING. Most messages work, but some of > them don't. By don't I mea

Problems encrypting with RSA and RSA_NO_PADDING

2001-07-11 Thread Patrick Mackinlay
I am having problem encrytping and then decrypting messages using RSA withthe padding set to RSA_NO_PADDING. Most messages work, but some of them don't. By don't I mean the encryption/decryption process works fine except that the decrypted message is nothnig like the original! I have