parsec_interface/operations/
psa_export_public_key.rs

1// Copyright 2019 Contributors to the Parsec project.
2// SPDX-License-Identifier: Apache-2.0
3//! # PsaExportPublicKey operation
4//!
5//! Export a key in binary format. See the book for the format description.
6
7/// Native object for public key exporting operation.
8#[derive(Debug)]
9pub struct Operation {
10    /// `key_name` identifies the key for which the public
11    /// part will be exported. The specified key must be an asymmetric keypair.
12    pub key_name: String,
13}
14
15/// Native object for result of public key export operation.
16#[derive(Debug)]
17pub struct Result {
18    /// `data` holds the bytes defining the public key, formatted as specified
19    /// by the provider for which the request was made.
20    pub data: zeroize::Zeroizing<Vec<u8>>,
21}