1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-21 15:22:56 +00:00

Get S/MIME sign algorithm

This commit is contained in:
M66B 2024-12-21 07:56:07 +01:00
parent 9d9e51a270
commit 99c07f6b60

View file

@ -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) {