Enum bonsaidb_local::vault::KeyPair
source · pub enum KeyPair {
P256 {
private: <DhP256HkdfSha256 as KemTrait>::PrivateKey,
public: <DhP256HkdfSha256 as KemTrait>::PublicKey,
},
}
Expand description
A private encryption key.
Variants§
P256
Fields
§
private: <DhP256HkdfSha256 as KemTrait>::PrivateKey
The private key.
§
public: <DhP256HkdfSha256 as KemTrait>::PublicKey
The public key.
A P256 keypair.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyPair
impl<'de> Deserialize<'de> for KeyPair
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for KeyPair
impl Send for KeyPair
impl Sync for KeyPair
impl Unpin for KeyPair
impl UnwindSafe for KeyPair
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