Hello,

I'm working on some code that uses the PKCS7 routines to sign some data. The 
code so far is (lots of return values cut out for brevity)...

int flags = 0x00 | PKCS7_NOSMIMECAP | PKCS7_BINARY;
p7 = PKCS7_sign( cert, pkey, NULL, datain, flags );
PKCS7_final( p7, datain, flags );
dataout = BIO_new_file( ..., "wb" );
i2d_PKCS7_bio_stream( dataout, p7, datain, flags );

This works fine for PKCS1 padding. But I'd need to use PSS padding. Having 
spent a great deal of time trying to work out how to do this from the source 
code, can someone help me with some suggestions on what I need to do?

I've found these functions - EVP_PKEY_CTX_set_rsa_padding() and 
EVP-PKEY_CTX_set_rsa_saltlen(), however I'm struggling to determine how to use 
that function with the PKCS7 functions.

Thanks for any help
Regards
Rob Smith



 
                                          

Reply via email to