pub struct AgentWrappedKey {
pub version: u32,
pub fingerprint: String,
pub challenge: String,
pub nonce: String,
pub encrypted_repo_key: String,
}Expand description
An SSH-agent-wrapped repo key.
The key is encrypted using a symmetric key derived from an SSH agent signature over a random challenge. Only someone with access to the corresponding private key via the SSH agent can reproduce the signature and recover the repo key.
Fields§
§version: u32Format version for forward compatibility.
fingerprint: StringSSH key fingerprint (e.g. SHA256:...) identifying the recipient.
challenge: StringBase64-encoded 32-byte random challenge signed by the agent.
nonce: StringBase64-encoded 12-byte nonce for ChaCha20Poly1305.
encrypted_repo_key: StringBase64-encoded ChaCha20Poly1305 ciphertext of the repo key.
Trait Implementations§
Source§impl Clone for AgentWrappedKey
impl Clone for AgentWrappedKey
Source§fn clone(&self) -> AgentWrappedKey
fn clone(&self) -> AgentWrappedKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentWrappedKey
impl Debug for AgentWrappedKey
Source§impl<'de> Deserialize<'de> for AgentWrappedKey
impl<'de> Deserialize<'de> for AgentWrappedKey
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
Source§impl PartialEq for AgentWrappedKey
impl PartialEq for AgentWrappedKey
Source§impl Serialize for AgentWrappedKey
impl Serialize for AgentWrappedKey
impl Eq for AgentWrappedKey
impl StructuralPartialEq for AgentWrappedKey
Auto Trait Implementations§
impl Freeze for AgentWrappedKey
impl RefUnwindSafe for AgentWrappedKey
impl Send for AgentWrappedKey
impl Sync for AgentWrappedKey
impl Unpin for AgentWrappedKey
impl UnsafeUnpin for AgentWrappedKey
impl UnwindSafe for AgentWrappedKey
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