#[non_exhaustive]pub struct UnwrapKeyParams {
pub algorithm: Option<KeyAlgorithm>,
pub expect_key: Option<String>,
pub label: String,
pub policy: Option<KeyPolicyParams>,
}Expand description
Params for unwrap_key action.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.algorithm: Option<KeyAlgorithm>What the ceremony is restoring, as a key algorithm name.
Nothing travels with a wrapped key saying what it is, so a recovered blob is read as whatever this names. Required to recover a symmetric key, whose bytes are indistinguishable from any other bytes of the same length. Optional for a keypair, which names itself once its DER parses, and checked against what came out when given.
expect_key: Option<String>The expected identity of the recovered key: "sha256:<hex>" over its
SPKI DER for a keypair, "cmac-aes:<hex>" for a symmetric key.
Usually the value the origin ceremony’s generate_key step
recorded. On mismatch the step fails rather than importing a key the
ceremony did not mean to restore.
label: StringLabel for the unwrapped key.
policy: Option<KeyPolicyParams>What the recovered key is permitted to do, and whether it may leave the backend again.
Nothing travels with a wrapped key that says what it may do, so the
receiving ceremony declares that. Without a policy: the key may sign,
verify and be wrapped again; a key restored to serve as a wrapping key
has to say usages: [wrap, unwrap].
Trait Implementations§
Source§impl Clone for UnwrapKeyParams
impl Clone for UnwrapKeyParams
Source§impl Debug for UnwrapKeyParams
impl Debug for UnwrapKeyParams
Source§impl Default for UnwrapKeyParams
impl Default for UnwrapKeyParams
Source§impl<'de> Deserialize<'de> for UnwrapKeyParams
impl<'de> Deserialize<'de> for UnwrapKeyParams
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>,
Source§impl JsonSchema for UnwrapKeyParams
impl JsonSchema for UnwrapKeyParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more