Struct SignCbParam
#[non_exhaustive]pub struct SignCbParam<'a> {
pub object_path: &'a str,
pub description: Option<&'a str>,
pub public_key: &'a str,
pub key_hint: Option<&'a str>,
pub hash_algo: HashAlgorithm,
pub challenge: &'a [u8],
}Expand description
The parameters that are provided to the FapiCallbacks::sign_cb callback.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.object_path: &'a strIdentifies the policy (path) being executed for which a signature is requested.
description: Option<&'a str>Description as provided in the policy definition (optional).
public_key: &'a strThe public key that will be used by the TPM to verify the signature, in PEM encoding.
key_hint: Option<&'a str>Human readable information, regarding the public key to be used (optional).
hash_algo: HashAlgorithmThe hash algorithm to be used during signing.
challenge: &'a [u8]The data that is to be hashed and signed by the application.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SignCbParam<'a>
impl<'a> RefUnwindSafe for SignCbParam<'a>
impl<'a> Send for SignCbParam<'a>
impl<'a> Sync for SignCbParam<'a>
impl<'a> Unpin for SignCbParam<'a>
impl<'a> UnwindSafe for SignCbParam<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more