Available on (32-bit or 64-bit) and (crate features
test-utils) only.Expand description
A test provider that restricts the set of supported ciphersuites.
RestrictedProvider delegates all crypto operations to [RustCrypto]
but overrides OpenMlsCrypto::supports and
OpenMlsCrypto::supported_ciphersuites to an explicit allowlist. This
makes it possible to test the library’s unsupported-ciphersuite error
paths, which cannot be reached with the regular providers (they support
every ciphersuite the tests can pick).
Structs§
- Restricted
Crypto - A crypto provider that performs all operations via [
RustCrypto] but only claims support for an explicit allowlist of ciphersuites. - Restricted
Provider - An
OpenMlsProviderthat only claims support for an explicit allowlist of ciphersuites while remaining fully functional otherwise.