# use-dkim
DKIM signature metadata primitives for `RustUse`.
## Experimental
`use-dkim` is experimental while `use-email` remains below `0.3.0`.
## Example
```rust
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.