Provides a Secure Messaging interface for HostComm AV1.
More...
|
| phStatus_t | phhalHw_SamAV2_Hc_AV1_AuthenticateHost (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t bAuthType, uint16_t wRdKeyRefNum, uint16_t wRdKeyRefVer, uint8_t bSamKeyRefNum, uint8_t bSamKeyRefVer, uint8_t *pDivInput, uint8_t bLenDivInput) |
| |
| phStatus_t | phhalHw_SamAV2_Hc_AV1_Int_Encrypt (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t *pBuffer, uint16_t wLengthIn, uint16_t wBufferSize, uint16_t *pLengthOut) |
| | Perform Encryption using SamAV1 Host Protocol. More...
|
| |
| phStatus_t | phhalHw_SamAV2_Hc_AV1_Int_Decrypt (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t *pBuffer, uint16_t wLengthIn, uint16_t *pLengthOut) |
| |
| phStatus_t | phhalHw_SamAV2_Hc_AV1_Int_CalculateMac (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t *pBuffer, uint16_t wLength) |
| | Append MAC to a data stream using SamAV1 Host Protocol. More...
|
| |
| phStatus_t | phhalHw_SamAV2_Hc_AV1_Int_VerifyRemoveMac (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t *pBuffer, uint16_t wLengthIn, uint16_t *pLengthOut) |
| | Remove Mac and verify it using SamAV1 Host Protocol. More...
|
| |
Provides a Secure Messaging interface for HostComm AV1.
◆ phhalHw_SamAV2_Hc_AV1_AuthenticateHost()
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bAuthType | [In] The type of Authentication to perform. |
| [in] | wRdKeyRefNum | [In] The key reference number for readerLib KeyStorage. |
| [in] | wRdKeyRefVer | [In] The key reference version for readerLib KeyStorage. |
| [in] | bSamKeyRefNum | [In] The key reference number for SAM KeyStorage. |
| [in] | bSamKeyRefVer | [In] The key reference version for SAM KeyStorage. |
| [in] | pDivInput | [In] Diversification input data. |
| [in] | bLenDivInput | [In] Diversification input data length. |
◆ phhalHw_SamAV2_Hc_AV1_Int_Encrypt()
Perform Encryption using SamAV1 Host Protocol.
- 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] | pBuffer | [In] Data to encrypt. |
| [in] | wLengthIn | [In] Length of data to encrypt. |
| [in] | wBufferSize | [In] Size of the buffer. |
| [out] | pLengthOut | [Out] Number of encrypted data bytes. |
◆ phhalHw_SamAV2_Hc_AV1_Int_Decrypt()
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | pBuffer | [In] Data to decrypt. |
| [in] | wLengthIn | [In] Length of data to decrypt. |
| [out] | pLengthOut | [Out] Number of decrypted data bytes. |
◆ phhalHw_SamAV2_Hc_AV1_Int_CalculateMac()
Append MAC to a data stream using SamAV1 Host Protocol.
- 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] | pBuffer | [In] Data for mac calculation. |
| [in] | wLength | [In] Length of data. |
◆ phhalHw_SamAV2_Hc_AV1_Int_VerifyRemoveMac()
Remove Mac and verify it using SamAV1 Host Protocol.
- 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] | pBuffer | [In] Data to unmac. |
| [in] | wLengthIn | [In] Length of data to unmac. |
| [out] | pLengthOut | [Out] Number of unmaced data bytes. |