Revert "Use S/MIME public key sign algorithm"

This reverts commit bc33ec1929.
pull/170/head
M66B 6 years ago
parent bc33ec1929
commit 6b6a4868cc

@ -1979,9 +1979,7 @@ public class FragmentCompose extends FragmentBase {
CMSSignedDataGenerator cmsGenerator = new CMSSignedDataGenerator(); CMSSignedDataGenerator cmsGenerator = new CMSSignedDataGenerator();
cmsGenerator.addCertificates(store); cmsGenerator.addCertificates(store);
String salgo = "SHA256with" + chain[0].getPublicKey().getAlgorithm(); ContentSigner contentSigner = new JcaContentSignerBuilder("SHA256withRSA")
Log.i("Sign algorithm=" + salgo);
ContentSigner contentSigner = new JcaContentSignerBuilder(salgo)
.build(privkey); .build(privkey);
DigestCalculatorProvider digestCalculator = new JcaDigestCalculatorProviderBuilder() DigestCalculatorProvider digestCalculator = new JcaDigestCalculatorProviderBuilder()
.build(); .build();

Loading…
Cancel
Save