Patent ID: 11943367
Assignee: MARVELL ASIA PTE LTD
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC H

Claim 18:
19. An apparatus for performing cryptographic primitives, comprising:
means for providing an instruction to perform a cryptographic primitive,
wherein the instruction comprises one or more operands,
wherein at least one of the operands indicates one or more data structures that include values for the cryptographic primitive, including a value indicating a cipher type,
wherein the one or more operands further comprises a context operand and an input data operand,
the context operand includes per-session configurations for the cryptographic primitive and includes an initialization vector (IV) field not changeable in a session, and
the input data operand includes values specific to the instruction, the input data operand includes data to be encrypted or authenticated;

means for reading an IV by:
in response to determining that a field of the context operand indicates that the IV is provided as context data, read the IV from the IV field; and
in response to determining that the field of the context operand indicates that the IV is provided as input data, read the IV from the input data operand; and

means for performing the cryptographic primitive using the IV in response to receiving the instruction and storing an output of the cryptographic primitive in an output data structure,
wherein an order of performing an encryption operation and an authentication operation as part of performing the cryptographic primitive is dependent on the cipher type.