pub struct EncryptionManagerFactory;Expand description
从一把主密钥构建 EncryptionManager。
一次性注册 aes-256-gcm、aes-256-cbc-hmac、sodium-xchacha20
(以及国密的 sm4-cbc、zuc-128);default_identifier 必须已注册。
Implementations§
Source§impl EncryptionManagerFactory
impl EncryptionManagerFactory
pub fn from_master_key( master_key: &[u8], default_identifier: &str, ) -> Result<EncryptionManager>
Auto Trait Implementations§
impl Freeze for EncryptionManagerFactory
impl RefUnwindSafe for EncryptionManagerFactory
impl Send for EncryptionManagerFactory
impl Sync for EncryptionManagerFactory
impl Unpin for EncryptionManagerFactory
impl UnsafeUnpin for EncryptionManagerFactory
impl UnwindSafe for EncryptionManagerFactory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more