Skip to main content

deserialize_secret_in_context

Function deserialize_secret_in_context 

Source
pub fn deserialize_secret_in_context(
    ctx: SecretContext<'_>,
    stored: &str,
) -> SshCliResult<String>
Expand description

Deserializes a secret expected to belong to ctx.

Fails when a v2 blob was sealed for a different host or a different field: the AEAD tag no longer verifies, which is the whole point of A7.

ยงErrors

Missing primary key, malformed blob, or AEAD verification failure.