Skip to main content

Module restricted_provider

Module restricted_provider 

Source
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§

RestrictedCrypto
A crypto provider that performs all operations via [RustCrypto] but only claims support for an explicit allowlist of ciphersuites.
RestrictedProvider
An OpenMlsProvider that only claims support for an explicit allowlist of ciphersuites while remaining fully functional otherwise.