Skip to content

Repository files navigation

rustls-cng-crypto

A rustls Crypto Provider for Windows that uses CNG for cryptographic operations.

This repository is a Datadog-maintained fork of tofay/rustls-cng-crypto.

See the documentation for supported cipher suites and algorithms, along with instructions for running in FIPS mode.

Build Status License: MIT

Testing

This project tests the crypto provider operations using test vectors from Project Wycheproof where applicable.

Full test coverage requires Windows because the provider calls Windows CNG APIs:

cargo test

This crate only builds for Windows targets. From non-Windows hosts, run check and documentation workflows with an explicit Windows target:

cargo check --target x86_64-pc-windows-msvc
RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --target x86_64-pc-windows-msvc

Run formatting checks before submitting changes:

cargo fmt -- --check

Third-party licenses

Third-party Rust dependencies are tracked in LICENSE-3rdparty.csv. The file is generated from Cargo.lock with Datadog's Rust license inventory tool.

After changing dependencies, run:

make sync-licenses
make check-licenses

Contributing

See CONTRIBUTING.md for development and pull request guidance.

Security

See SECURITY.md for vulnerability reporting instructions.

License

This repository is licensed under the MIT License. Unless explicitly stated otherwise, files in this repository are licensed under the MIT License.

About

A Windows CNG crypto provider for rustls

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages