bitwarden_core::key_management

Function create_test_crypto_with_user_key

Source
pub fn create_test_crypto_with_user_key(
    key: SymmetricCryptoKey,
) -> KeyStore<KeyIds>
Expand description

This is a helper function to create a test KeyStore with a single user key. While this function is not marked as #[cfg(test)], it should only be used for testing purposes. It’s only public so that other crates can make use of it in their own tests.