Code: Select all
crypto.rsaCipher.init(keyStore.cardPrivateKey, Cipher.MODE_DECRYPT);
which is initialized as:
Code: Select all
rsaCipher = Cipher.getInstance(Cipher.ALG_RSA_NOPAD, false);
Now my question is I am not sure which parameter to select between Cipher.MODE_ENCRYPT and Cipher.MODE_DECRYPT to generate digital signature. Any one knows? Pls help! Any comment is appreciated.