Re: [openssl-users] RSA sign using SHA256 with mgf1 padding

2016-09-02 Thread Dr. Stephen Henson
On Mon, Aug 29, 2016, Moshe Wiener (mowiener) wrote: > Hello, > I'm running an application which runs an authentication session with a > server. The server provides some random data, and my application needs to > sign it with its private key, and send back the signature. The server which > know

Re: [openssl-users] RSA sign using SHA256 with mgf1 padding

2016-09-01 Thread Blumenthal, Uri - 0553 - MITLL
And if you want to run it on OpenSSL-1.1, see the attached. ☺ --  Regards, Uri Blumenthal On 9/1/16, 6:18 , "openssl-users on behalf of mowiener" wrote: Many thanks Mounir, this is what I was looking for. \ openssl_pss_signature.c Description: Binary data smime.p7s Description: S/MIME cr

Re: [openssl-users] RSA sign using SHA256 with mgf1 padding

2016-09-01 Thread mowiener
Many thanks Mounir, this is what I swa looking for. -- View this message in context: http://openssl.6102.n7.nabble.com/RSA-sign-using-SHA256-with-mgf1-padding-tp68101p68152.html Sent from the OpenSSL - User mailing list archive at Nabble.com. -- openssl-users mailing list To unsubscribe

Re: [openssl-users] RSA sign using SHA256 with mgf1 padding

2016-08-31 Thread Mounir IDRASSI
Hi, I have written a sample few years ago that performs PSS signature using SHA256 like what you need. You can get it from https://www.idrix.fr/Root/Samples/openssl_pss_signature.c It uses the maximum salt length. You should check that the server expects this as well. Cheers, -- Mounir IDRASSI L

[openssl-users] RSA sign using SHA256 with mgf1 padding

2016-08-29 Thread Moshe Wiener (mowiener)
Hello, I'm running an application which runs an authentication session with a server. The server provides some random data, and my application needs to sign it with its private key, and send back the signature. The server which knows the public key verifies the signature, and it good then the cl

Re: [openssl-users] RSA sign message

2016-07-20 Thread Gabriel Ivașcu
On Wed, Jul 20, 2016 at 12:19 AM, Dr. Stephen Henson wrote: > > If you want to hash and sign the hash you should use EVP functions such as > EVP_DigestSign*() functions instead. If you already have the hash you can > use RSA_sign (though EVP_PKEY_sign() is preferred) the type parameter in > the N

Re: [openssl-users] RSA sign message

2016-07-19 Thread Dr. Stephen Henson
On Tue, Jul 19, 2016, Gabriel Iva??cu wrote: > Hi, > > I need to RSA sign a message using SHA256 as hash and PKCS1 v1.5 as padding. > > I am however confused about the *type* parameter of RSA_sign function [0] > > What is the value that I should use for *type* in my partic

[openssl-users] RSA sign message

2016-07-19 Thread Gabriel Ivașcu
Hi, I need to RSA sign a message using SHA256 as hash and PKCS1 v1.5 as padding. I am however confused about the *type* parameter of RSA_sign function [0] What is the value that I should use for *type* in my particular case? Thanks, Gabriel [0] https://www.openssl.org/docs/manmaster/crypto

RSA sign

2014-11-16 Thread Amir Reda
dear all i have a client server client application the server should created an encrypted shared key and some data and make digest of both of them (data and encrypted shared key) as an input to SHA1 then the server should sign the output of the hash with function SignDigest() which include function

Re: RSA sign/verify padding modes

2006-07-03 Thread Marek Marcola
Hello, > Also i'm planning to add support for other padding modes like > RSA_PKCS1_OAEP_PADDING by manually adding the padding and using > RSA_NO_PADDING when calling the function. Are there any security > implications of doing this? No, this is the way of doing this, but security implications shou

RSA sign/verify padding modes

2006-07-03 Thread K.S.Sreeram
Hi All I'm trying to use RSA_private_encrypt/RSA_public_decrypt for low level access to sign/verify operations. The documentation for these functions state that RSA_PKCS1_PADDING and RSA_NO_PADDING are the only supported padding modes, whereas when i look at the source code (0.9.8b:crypto\rsa\rsa