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:

  1. algorithm: One of the algorithm of AlgorithmId.
  2. mode: One of the mode of OperationMode.
  3. maxKeySize: The maximum key sizes of different algorithms as defined in TransientObjectType.
  4. operationClass: One of the constants from OperationConstant.
  5. 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 of keySize can be obtained from OperationInfoMultiple).
  6. 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 for set_key functions to succeed without panicking. 6.3) For an operation that uses multiple keys, 0. (The actual value of requiredKeyUsage can be obtained from OperationInfoMultiple.
  7. digestLength: For a Mac, AE, or Digest, describes the number of bytes in the digest or tag.
  8. handleState: A bit vector describing the current state of the operation. Contains one or more of the HandleFlag.

Return the keySize field of the raw structure TEE_OperationInfo.

Return the maxDataSize field of the raw structure TEE_OperationInfo.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.