use-dkim 0.1.0

DKIM signature metadata primitives for RustUse
Documentation
  • Coverage
  • 100%
    39 out of 39 items documented1 out of 31 items with examples
  • Size
  • Source code size: 13.11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-email
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-dkim

DKIM signature metadata primitives for RustUse.

Experimental

use-dkim is experimental while use-email remains below 0.3.0.

Example

use use_dkim::{DkimAlgorithm, DkimBodyHash, DkimSelector, DkimSignature, DkimSignedHeaders};

let signature = DkimSignature::new(DkimSelector::new("mail")?, "example.com")?
    .with_algorithm(DkimAlgorithm::RsaSha256)
    .with_signed_headers(DkimSignedHeaders::from_names(["from", "subject"])? )
    .with_body_hash(DkimBodyHash::new("abc123")?);

assert!(signature.to_string().contains("a=rsa-sha256"));
# Ok::<(), use_dkim::DkimError>(())

Scope

  • DKIM selectors, domains, header tags, algorithms, canonicalization labels, signed headers, body hash, and signature metadata.

Non-goals

  • Cryptographic signing.
  • Cryptographic verification.
  • DNS key lookup.

License

Licensed under either Apache-2.0 or MIT.