Searched refs:raw_key_material (Results 1 – 2 of 2) sorted by relevance
184 let mut raw_key_material = op.update(&encrypted_keyblob.ciphertext)?; in convert_key() localVariable185 raw_key_material.try_extend_from_slice(&op.update(&encrypted_keyblob.tag)?)?; in convert_key()186 raw_key_material.try_extend_from_slice(&op.finish()?)?; in convert_key()187 if raw_key_material.len() != encrypted_keyblob.ciphertext.len() { in convert_key()191 raw_key_material.len(), in convert_key()204 crypto::KeyMaterial::Aes(OpaqueOr::Opaque(OpaqueKeyMaterial(raw_key_material))) in convert_key()207 crypto::KeyMaterial::Aes(crypto::aes::Key::new(raw_key_material)?.into()) in convert_key()211 crypto::KeyMaterial::TripleDes(crypto::des::Key::new(raw_key_material)?.into()) in convert_key()214 crypto::KeyMaterial::Hmac(crypto::hmac::Key::new(raw_key_material).into()) in convert_key()220 Algorithm::Rsa => crypto::KeyMaterial::Rsa(crypto::rsa::Key(raw_key_material).into()), in convert_key()[all …]
238 let raw_key_material = self.derive_raw_key_material(context, derived_key_size)?; in derive_key() localVariable239 Self::new_opaque_key_from_raw_bytes(policy, raw_key_material) in derive_key()