SAM commands used for cryptographic data processing. This includes encryption, decryption, MAC generation and MAC verification.
More...
|
| phStatus_t | phhalHw_SamAV2_Cmd_SAM_VerifyMAC (phhalHw_SamAV2_DataParams_t *pDataParams, uint16_t wOption, uint8_t bNum, uint8_t *pTxBuffer, uint8_t bTxLength) |
| | Check the validity of the MAC over given data. More...
|
| |
| phStatus_t | phhalHw_SamAV2_Cmd_SAM_GenerateMAC (phhalHw_SamAV2_DataParams_t *pDataParams, uint16_t wOption, uint8_t bNum, uint8_t *pTxBuffer, uint8_t bTxLength, uint8_t **ppRxBuffer, uint16_t *pRxLength) |
| | Generate a MAC over given data. More...
|
| |
| phStatus_t | phhalHw_SamAV2_Cmd_SAM_DecipherData (phhalHw_SamAV2_DataParams_t *pDataParams, uint16_t wOption, uint8_t *pTxBuffer, uint8_t bTxLength, uint8_t *pLenEncInputData, uint8_t **ppRxBuffer, uint16_t *pRxLength) |
| | Decipher a data stream. More...
|
| |
| phStatus_t | phhalHw_SamAV2_Cmd_SAM_EncipherData (phhalHw_SamAV2_DataParams_t *pDataParams, uint16_t wOption, uint8_t *pTxBuffer, uint8_t bTxLength, uint8_t bOffset, uint8_t **ppRxBuffer, uint16_t *pRxLength) |
| | Encipher a data stream. More...
|
| |
| phStatus_t | phhalHw_SamAV2_Cmd_SAM_DecipherOfflineData (phhalHw_SamAV2_DataParams_t *pDataParams, uint16_t wOption, uint8_t *pTxBuffer, uint8_t bTxLength, uint8_t **ppRxBuffer, uint16_t *pRxLength) |
| | Decipher a data stream using an OfflineCrypto key. More...
|
| |
| phStatus_t | phhalHw_SamAV2_Cmd_SAM_EncipherOfflineData (phhalHw_SamAV2_DataParams_t *pDataParams, uint16_t wOption, uint8_t *pTxBuffer, uint8_t bTxLength, uint8_t **ppRxBuffer, uint16_t *pRxLength) |
| | Encipher a data stream using an OfflineCrypto key. More...
|
| |
SAM commands used for cryptographic data processing. This includes encryption, decryption, MAC generation and MAC verification.
◆ phhalHw_SamAV2_Cmd_SAM_VerifyMAC()
Check the validity of the MAC over given data.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Buffering options.
|
| [in] | bNum | [In] Number of MAC bytes to check in the plain data buffer. |
| [in] | pTxBuffer | [In] Plain data including the MAC to be checked. |
| [in] | bTxLength | [In] Length of input data. |
◆ phhalHw_SamAV2_Cmd_SAM_GenerateMAC()
Generate a MAC over given data.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Option parameter:
|
| [in] | bNum | [In] Number of MAC bytes to generate. |
| [in] | pTxBuffer | [In] Plain data to be MACed. |
| [in] | bTxLength | [In] Length of input data. |
| [out] | ppRxBuffer | [Out] Pointer to plain MACed data. |
| [out] | pRxLength | [Out] Length of plain MACed data. |
◆ phhalHw_SamAV2_Cmd_SAM_DecipherData()
Decipher a data stream.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Option parameter:
|
| [in] | pTxBuffer | [In] Data to be deciphered. |
| [in] | bTxLength | [In] Length of input data. |
| [in] | pLenEncInputData | [In] Overall length of encrypted input data. This 3 byte value is only used if indicated by wOption. |
| [out] | ppRxBuffer | [Out] Pointer to the deciphered data. |
| [out] | pRxLength | [Out] Length of deciphered data. |
◆ phhalHw_SamAV2_Cmd_SAM_EncipherData()
Encipher a data stream.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Option parameter:
|
| [in] | pTxBuffer | [In] Data to be enciphered. |
| [in] | bTxLength | [In] Length of input data. |
| [in] | bOffset | [In] Offset into the input data indicating the first data byte to be enciphered. |
| [out] | ppRxBuffer | [Out] Pointer to enciphered data. |
| [out] | pRxLength | [Out] Length of enciphered data. |
◆ phhalHw_SamAV2_Cmd_SAM_DecipherOfflineData()
Decipher a data stream using an OfflineCrypto key.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Option parameter:
|
| [in] | pTxBuffer | [In] Data to be deciphered. |
| [in] | bTxLength | [In] Length of input data. |
| [out] | ppRxBuffer | [Out] Pointer to deciphered data. |
| [out] | pRxLength | [Out] Length of deciphered data. |
◆ phhalHw_SamAV2_Cmd_SAM_EncipherOfflineData()
Encipher a data stream using an OfflineCrypto key.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Option parameter:
|
| [in] | pTxBuffer | [In] Data to be enciphered. |
| [in] | bTxLength | [In] Length of input data |
| [out] | ppRxBuffer | [Out] Pointer to enciphered data |
| [out] | pRxLength | [Out] Length of enciphered data. |