Skip to main content

Interface

Struct Interface 

Source
#[repr(C)]
pub struct Interface { pub structure_size: u32, pub abi_version: u32, pub information: Option<ReadInformation>, pub probe: Option<Probe>, pub verification_algorithms: Option<CheckVerificationAlgorithms>, pub verify: Option<Verify>, pub digest: Option<Digest>, pub release: Option<Release>, }
Expand description

Function pointers use the C calling convention on every supported target. Every request receives its structure size; mismatched sizes are refused before dereferencing fields. Valid output slots are empty/zero on non-OK return; invalid output size/alignment is rejected without accessing that storage. Probe prepares the exact operation without signing or issuing any PKCS#11 call.

Fields§

§structure_size: u32

Size in bytes of this exact Interface representation.

§abi_version: u32

Version governing the layout and service contracts.

§information: Option<ReadInformation>

Optional version-information service; Fe11 requires it when selecting an engine.

§probe: Option<Probe>

Optional exact-key verification preparation service.

§verification_algorithms: Option<CheckVerificationAlgorithms>

Optional keyless implementation-availability service.

§verify: Option<Verify>

Optional message/signature verification service; requires the preparation service.

§digest: Option<Digest>

Optional whole-message hashing service; returned allocations require release.

§release: Option<Release>

Optional originating-allocator release service for OwnedBytes results.

Trait Implementations§

Source§

impl Clone for Interface

Source§

fn clone(&self) -> Interface

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Interface

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.