From 4df6a06b677b3657c553d1f07b1c01d941370cbf Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 13 Aug 2023 09:37:23 +0200 Subject: [PATCH] Fixed native DKIM ed25519-sha256 --- app/src/main/java/eu/faircode/email/MessageHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 12b58fa518..c5b7382d15 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -2474,6 +2474,7 @@ public class MessageHelper { key = Base64.decode("11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo", Base64.URL_SAFE); signature = Base64.decode("hgyY0il_MGCjP0JzlnLWG1PPOt7-09PGcvMg3AIbQR6dWbhijcNR4ki4iylGjg5BhVsPt9g7sVvpAr_MuM0KAg", Base64.URL_SAFE); } + data = MessageDigest.getInstance("SHA-256").digest(head.toString().getBytes()); key = new SubjectPublicKeyInfo(new AlgorithmIdentifier(EdECObjectIdentifiers.id_Ed25519), key).getEncoded(); }