#message-authentication #dkim #parser #email #authentication

no-std msg-auth-status

Parser & Verifier for Message Authentication Status - DKIM-Signature and Authentication-Results

2 unstable releases

0.2.0 Jul 2, 2024
0.1.0 Jun 10, 2024

#230 in Science

Download history 14/week @ 2024-09-13 12/week @ 2024-09-20 4/week @ 2024-09-27

90 downloads per month

Apache-2.0/MIT

155KB
3.5K SLoC

msg-auth-status

Discord chat Crates.io Docs License License MSRV

Parser & Verifier for Message-Authenticated-Status and the associated DKIM-Signatures.

Add without Verifier

cargo add msg-auth-status

Add with Verifier

cargo add msg-auth-status --features verifier

RFCs

RFC Tick Description
8601 ✅ Parsing Message Header Field for Indicating Message Authentication Status
6376 ✅ Parsing Domainkeys Identified Mail (DKIM) Signatures

Benches

On 10700K test_data/from_gmail_to_arewe_at.eml as of 2024 June 10

Public API Timings
alloc_yes::MesssageAuthStatus::from_mail_parser [685.76 ns 692.93 ns 705.28 ns]
alloc_yes::DkimSignatures::from_mail_parser [423.19 ns 424.95 ns 427.80 ns]
From<mail_parser::HeaderValue> for DkimSignature [301.46 ns 302.05 ns 302.69 ns]
From<mail_parser::HeaderValue> for AuthenticationResults [565.54 ns 567.40 ns 569.52 ns]
ReturnPathVerifier::from_alloc_yes() over Parsed [85.396 ns 85.579 ns 85.787 ns]

See Also

License

Licensed under either of:

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2.7–3.5MB
~59K SLoC