@@ -129,7 +129,7 @@ impl<Ids: KeyIds> KeyStore<Ids> {
129
129
/// context-local store will be cleared when the context is dropped.
130
130
///
131
131
/// If you are only looking to encrypt or decrypt items, you should implement
132
- /// [Encryptable ]/[Decryptable] and use the [KeyStore::encrypt], [KeyStore::decrypt],
132
+ /// [CompositeEncryptable ]/[Decryptable] and use the [KeyStore::encrypt], [KeyStore::decrypt],
133
133
/// [KeyStore::encrypt_list] and [KeyStore::decrypt_list] methods instead.
134
134
///
135
135
/// The current implementation of context only clears the keys automatically when the context is
@@ -143,10 +143,10 @@ impl<Ids: KeyIds> KeyStore<Ids> {
143
143
/// future to also not be [Send].
144
144
///
145
145
/// Some other possible use cases for this API and alternative recommendations are:
146
- /// - Decrypting or encrypting multiple [Decryptable] or [Encryptable ] items while sharing any
146
+ /// - Decrypting or encrypting multiple [Decryptable] or [CompositeEncryptable ] items while sharing any
147
147
/// local keys. This is not recommended as it can lead to fragile and flaky
148
148
/// decryption/encryption operations. We recommend any local keys to be used only in the
149
- /// context of a single [Encryptable ] or [Decryptable] implementation. In the future we might
149
+ /// context of a single [CompositeEncryptable ] or [Decryptable] implementation. In the future we might
150
150
/// enforce this.
151
151
/// - Obtaining the key material directly. We strongly recommend against doing this as it can
152
152
/// lead to key material being leaked, but we need to support it for backwards compatibility.
@@ -310,7 +310,7 @@ pub(crate) mod tests {
310
310
use crate :: {
311
311
store:: { KeyStore , KeyStoreContext } ,
312
312
traits:: tests:: { TestIds , TestSymmKey } ,
313
- EncString , PrimitiveEncryptableWithContentType , SymmetricCryptoKey ,
313
+ EncString , SymmetricCryptoKey , PrimitiveEncryptableWithContentType ,
314
314
} ;
315
315
316
316
pub struct DataView ( pub String , pub TestSymmKey ) ;
0 commit comments