[−][src]Struct parsec_interface::operations::psa_verify_hash::Operation
Native object for asymmetric verification of signatures.
Fields
key_name: Stringkey_name specifies the key to be used for verification.
alg: AsymmetricSignatureAn asymmetric signature algorithm that separates the hash and sign operations, that is compatible with the type of key.
hash: Vec<u8>The hash contains a short message or hash value as described for the
asymmetric signing operation.
signature: Vec<u8>Buffer containing the signature to verify.
Implementations
impl Operation[src]
pub fn validate(&self, key_attributes: Attributes) -> Result<()>[src]
Validate the contents of the operation against the attributes of the key it targets
This method checks that:
- the key policy allows verifying signatures on hashes
- the key policy allows the verification algorithm requested in the operation
- the key type is compatible with the requested algorithm
- the length of the given digest is consistent with the specified verification algorithm
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,