mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 21:55:13 +00:00
Use S/MIME public key sign algorithm
This commit is contained in:
parent
e4a5b7679c
commit
bc33ec1929
1 changed files with 3 additions and 1 deletions
|
@ -1979,7 +1979,9 @@ public class FragmentCompose extends FragmentBase {
|
|||
CMSSignedDataGenerator cmsGenerator = new CMSSignedDataGenerator();
|
||||
cmsGenerator.addCertificates(store);
|
||||
|
||||
ContentSigner contentSigner = new JcaContentSignerBuilder("SHA256withRSA")
|
||||
String salgo = "SHA256with" + chain[0].getPublicKey().getAlgorithm();
|
||||
Log.i("Sign algorithm=" + salgo);
|
||||
ContentSigner contentSigner = new JcaContentSignerBuilder(salgo)
|
||||
.build(privkey);
|
||||
DigestCalculatorProvider digestCalculator = new JcaDigestCalculatorProviderBuilder()
|
||||
.build();
|
||||
|
|
Loading…
Reference in a new issue