pub struct WrappedKeyV1 {
pub alg: String,
pub ephemeral_pub: String,
pub nonce: String,
pub ciphertext: String,
}Expand description
A vault key wrapped to one instance’s X25519 key.
Fields§
§alg: StringAlways SEALED_WRAP_ALG.
ephemeral_pub: StringEphemeral X25519 public key, 32 bytes base64.
nonce: String24 bytes, base64.
ciphertext: String32-byte key plus 16-byte tag, base64.
Implementations§
Source§impl WrappedKeyV1
impl WrappedKeyV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for WrappedKeyV1
impl Clone for WrappedKeyV1
Source§impl Debug for WrappedKeyV1
impl Debug for WrappedKeyV1
Source§impl<'de> Deserialize<'de> for WrappedKeyV1
impl<'de> Deserialize<'de> for WrappedKeyV1
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
impl Eq for WrappedKeyV1
Source§impl PartialEq for WrappedKeyV1
impl PartialEq for WrappedKeyV1
Source§impl Serialize for WrappedKeyV1
impl Serialize for WrappedKeyV1
impl StructuralPartialEq for WrappedKeyV1
Auto Trait Implementations§
impl Freeze for WrappedKeyV1
impl RefUnwindSafe for WrappedKeyV1
impl Send for WrappedKeyV1
impl Sync for WrappedKeyV1
impl Unpin for WrappedKeyV1
impl UnsafeUnpin for WrappedKeyV1
impl UnwindSafe for WrappedKeyV1
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