Defines all functions of mcuxClSession.
More...
Defines all functions of mcuxClSession.
◆ mcuxClSession_init()
Initialize a Crypto Library session.
- Parameters
-
pSession | Session to be initialized. |
pCpuWaBuffer | Pointer to buffer to be used as workarea for CPU operations. This pointer shall be CPU-word aligned. |
cpuWaLength | Size (in bytes) of the workarea for CPU operations. The size shall be a multiple of CPU wordsize. |
pPkcWaBuffer | Pointer to buffer to be used as workarea for PKC operations. This pointer shall be PKC-word aligned. |
pkcWaLength | Size (in bytes) of the workarea for PKC operations. The size shall be a multiple of CPU wordsize. |
- Returns
- status
- Return values
-
◆ mcuxClSession_setRtf()
Set the RTF option in a Crypto Library session.
- Parameters
-
pSession | Session to be initialized. |
pRtf | buffer to store the rtf result. |
RtfOptions | Options to define RTF processing. |
- Returns
- status
◆ mcuxClSession_cleanup()
Clean up a Crypto Library session.
This function will (securely) cleanup the session, which will still be usable afterwards.
- Parameters
-
pSession | Session to be cleaned. |
- Returns
- status
- Return values
-
◆ mcuxClSession_destroy()
Destroy a Crypto Library session.
This function will (securely) cleanup the session, including uninitialization etc. The session will no longer be usable afterwards.
- Parameters
-
pSession | Session to be destroyed. |
- Returns
- status
- Return values
-
◆ mcuxClSession_setRandom()
Function to switch to another random configuration.
- Parameters
-
session | Session to set the new random configuration. |
randomMode | Random data generation mode/algorithm. It should be the same mode used to initialize randomCtx. |
randomCtx | Random context. |
- Returns
- status
- Examples
- mcuxClRandomModes_Different_Sessions_example.c.