From 99c07f6b6052336c964f9c7f6738ae1c8d54c2a8 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 21 Dec 2024 07:56:07 +0100 Subject: [PATCH] Get S/MIME sign algorithm --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 2b7d75f2ae..b4157a246f 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -10149,7 +10149,7 @@ public class FragmentMessages extends FragmentBase String keyalgo = null; String keyalgooid = null; try { - keyalgooid = s.getEncryptionAlgOID(); + keyalgooid = s.getDigestAlgOID(); DefaultAlgorithmNameFinder af = new DefaultAlgorithmNameFinder(); keyalgo = af.getAlgorithmName(new ASN1ObjectIdentifier(keyalgooid)); } catch (Throwable ex) { @@ -10170,7 +10170,7 @@ public class FragmentMessages extends FragmentBase String algo = null; String algooid = null; try { - algooid = s.getEncryptionAlgOID(); + algooid = s.getDigestAlgOID(); DefaultAlgorithmNameFinder af = new DefaultAlgorithmNameFinder(); algo = af.getAlgorithmName(new ASN1ObjectIdentifier(algooid)); } catch (Throwable ex) {