Struct optee_utee::crypto_op::OperationInfoMultiple
source · pub struct OperationInfoMultiple { /* private fields */ }
Expand description
Represent the information about a crypto information which uses multiple keys.
Implementations§
source§impl OperationInfoMultiple
impl OperationInfoMultiple
sourcepub fn from_raw(raw: *mut TEE_OperationInfoMultiple, size: usize) -> Self
pub fn from_raw(raw: *mut TEE_OperationInfoMultiple, size: usize) -> Self
Return the OperationInfoMultiple
struct based on the raw struct TEE_OperationInfo
.
The raw structure contains following fields:
algorithm
: One of the algorithm of AlgorithmId.mode
: One of the mode of OperationMode.maxKeySize
: The maximum key sizes of different algorithms as defined in TransientObjectType.operationClass
: One of the constants from OperationConstant.digestLength
: For a Mac, AE, or Digest, describes the number of bytes in the digest or tag.handleState
: A bit vector describing the current state of the operation. Contains one or more of the HandleFlag.operationState
: Every operation has two states which are defined as OperationStates.numberOfKeys
: This is set to the number of keys required by this operation. May be 0 for an operation which requires no keys.keyInformation
: This array contains numberOfKeys entries, each of which defines the details for one key used by the operation, in the order they are defined. If the buffer is larger than required to supportnumberOfKeys
entries, the additional space is not initialized or modified. For each element: 9.1)keySize
: If a key is programmed in the operation, the actual size of this key, otherwise 0. 9.2)requiredKeyUsage
: A bit vector that describes the necessary bits in the object usage forset_key
orset_key_2
to succeed without panicking.
sourcepub fn raw(&self) -> *mut TEE_OperationInfoMultiple
pub fn raw(&self) -> *mut TEE_OperationInfoMultiple
Return the raw struct TEE_OperationInfoMultiple
.
Auto Trait Implementations§
impl Freeze for OperationInfoMultiple
impl RefUnwindSafe for OperationInfoMultiple
impl !Send for OperationInfoMultiple
impl !Sync for OperationInfoMultiple
impl Unpin for OperationInfoMultiple
impl UnwindSafe for OperationInfoMultiple
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