pub struct KeyManager { /* private fields */ }Expand description
Key manager for secure key storage and management
Implementations§
Source§impl KeyManager
impl KeyManager
pub fn new() -> Self
pub fn initialize(&mut self) -> Result<(), CryptographicError>
pub fn generate_key_pair( &mut self, key_id: String, _key_type: KeyType, algorithm: KeyAlgorithm, security_level: SecurityLevel, ) -> Result<(Key, Key), CryptographicError>
pub fn store_key(&mut self, key: Key) -> Result<(), CryptographicError>
pub fn get_key(&self, key_id: &str) -> Result<Key, CryptographicError>
pub fn rotate_key(&mut self, old_key: &Key) -> Result<Key, CryptographicError>
pub fn list_keys(&self) -> Vec<String>
pub fn get_key_metadata(&self, key_id: &str) -> Option<KeyMetadata>
Auto Trait Implementations§
impl Freeze for KeyManager
impl RefUnwindSafe for KeyManager
impl Send for KeyManager
impl Sync for KeyManager
impl Unpin for KeyManager
impl UnsafeUnpin for KeyManager
impl UnwindSafe for KeyManager
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more