DKIM: added logging

This commit is contained in:
M66B 2024-05-13 16:03:28 +02:00
parent 0a4c7ae54f
commit 4918e87ff7
1 changed files with 5 additions and 0 deletions

View File

@ -69,6 +69,7 @@ import org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream;
import org.bouncycastle.asn1.edec.EdECObjectIdentifiers;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;
import org.bouncycastle.jcajce.interfaces.EdDSAPublicKey;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.nodes.Node;
@ -2571,6 +2572,10 @@ public class MessageHelper {
} catch (Throwable ex) {
Log.e(ex);
}
else if (pubKey instanceof EdDSAPublicKey) {
Log.i("DKIM EdDSA pubkey");
} else
Log.i("DKIM key class=" + pubKey.getClass());
sig.initVerify(pubKey);
sig.update(data);