Lines Matching refs:secure_key_wrapper
498 let mut secure_key_wrapper = SecureKeyWrapper::from_der(wrapped_key_data)?; in import_wrapped_key() localVariable
500 if secure_key_wrapper.version != SECURE_KEY_WRAPPER_VERSION { in import_wrapped_key()
515 crypto_op.as_mut().update(secure_key_wrapper.encrypted_transport_key)?; in import_wrapped_key()
546 let iv_len = secure_key_wrapper.initialization_vector.len(); in import_wrapped_key()
555 let tag_len = secure_key_wrapper.tag.len(); in import_wrapped_key()
558 nonce: secure_key_wrapper.initialization_vector.try_into() in import_wrapped_key()
562 nonce: secure_key_wrapper.initialization_vector.try_into() in import_wrapped_key()
566 nonce: secure_key_wrapper.initialization_vector.try_into() in import_wrapped_key()
570 nonce: secure_key_wrapper.initialization_vector.try_into() in import_wrapped_key()
574 nonce: secure_key_wrapper.initialization_vector.try_into() in import_wrapped_key()
593 op.update_aad(&cert::asn1_der_encode(&secure_key_wrapper.key_description)?)?; in import_wrapped_key()
595 let mut imported_key_data = op.update(secure_key_wrapper.encrypted_key)?; in import_wrapped_key()
596 imported_key_data.try_extend_from_slice(&op.update(secure_key_wrapper.tag)?)?; in import_wrapped_key()
602 secure_key_wrapper.key_description.key_params.auths.to_mut(); in import_wrapped_key()
632 KeyFormat::try_from(secure_key_wrapper.key_description.key_format).map_err(|_e| { in import_wrapped_key()
636 secure_key_wrapper.key_description.key_format in import_wrapped_key()