Struct optee_utee::crypto_op::OperationInfo [−][src]
pub struct OperationInfo { /* fields omitted */ }
Expand description
Represent the information about a crypto information.
Implementations
Return the OperationInfo
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.keySize
: 5.1) For an operation that makes no use of keys, 0. 5.2) For an operation that uses a single key, the actual size of this key. 5.3) For an operation that uses multiple keys, 0. (The actual value ofkeySize
can be obtained from OperationInfoMultiple).requiredKeyUsage
: 6.1) For an operation that makes no use of keys, 0. 6.2) For an operation that uses a single key, a bit vector that describes the necessary bits in the object usage forset_key
functions to succeed without panicking. 6.3) For an operation that uses multiple keys, 0. (The actual value ofrequiredKeyUsage
can be obtained from OperationInfoMultiple.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.
Return the maxDataSize
field of the raw structure TEE_OperationInfo
.
Auto Trait Implementations
impl RefUnwindSafe for OperationInfo
impl Send for OperationInfo
impl Sync for OperationInfo
impl Unpin for OperationInfo
impl UnwindSafe for OperationInfo
Blanket Implementations
pub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
pub fn from(t: T) -> T
pub fn from(t: T) -> T
Performs the conversion.
pub fn into(self) -> U
pub fn into(self) -> U
Performs the conversion.