On Wed, Jun 11, 2014 at 11:13:55AM +0530, Yash Dosi wrote:

> I am creating an android app which can perform basic email security
> operations like encryption, decryption, signing and verification. So far I
> am able to perform all 4 operations successfully. But one thing I still
> haven't figured out is how to specify Signing Algorithm at runtime.
> 
> I mean I want to have a drop downlist from which the user can select the
> signing algorithm algorithm.
> 
> I know how to do this in case of encryption. But for signing we are not
> specifying any algorithm in the PKCS7_Sign function call. So how do I
> mention which signing algorithm I should use while signing the mail.

With S/MIME or CMS you specify a signing key and certificate.  The
algorithm is implied by the choice of key material.

For example, RSA keys can't generate DSA signatures.

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to