stalwartlabs / mail-auth

DKIM, ARC, SPF and DMARC library for Rust
https://docs.rs/mail-auth/
Apache License 2.0
82 stars 13 forks source link

Make VerifyingKeys responsible for input hashing #5

Closed djc closed 1 year ago

djc commented 1 year ago

This is working in the direction of #1 some more by avoiding Signature and Seal having to know about specific hash algorithm implementations.

Adds a little more dynamic dispatch for the header iterators, but I still think the cost is probably negligible in the context of they get used (once per header, with many hashing calls per header).

mdecimus commented 1 year ago

Merged, thanks!