Expand description
This module contains the definition for the key identifiers used by the rest of the crates. Any code that needs to interact with the [KeyStore] should use these types.
- SymmetricKeyId is used to identify symmetric keys.
- AsymmetricKeyId is used to identify asymmetric keys.
- KeyIds is a helper type that combines both symmetric and asymmetric key identifiers. This is usually used in the type bounds of [KeyStore], KeyStoreContext, Encryptable and Decryptable.
Structs§
Enums§
Functions§
- This is a helper function to create a test KeyStore with a single user key and an organization key using the provided organization uuid. 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.
- 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.