|
SemiDrive SSDK Appication Program Interface PTG3.0
|
#include "sdrv_crypto_mailbox_common.h"#include "sdrv_crypto_mailbox_hmac.h"#include "sdrv_crypto_mailbox_ske_basic.h"#include "sdrv_crypto_mailbox_trng.h"Go to the source code of this file.
Functions | |
| sdrv_crypto_error_status_e | cmd_ske_gen_mac (uint8_t mode, uint8_t *msg, uint32_t msg_bytes, cmd_key_type_e key_type, uint8_t *key, uint16_t key_id, uint8_t *mac, uint8_t mac_bytes, uint8_t *mac_buf) |
| sdrv_crypto_error_status_e | cmd_ske_verify_mac (uint8_t mode, uint8_t *msg, uint32_t msg_bytes, cmd_key_type_e key_type, uint8_t *key, uint16_t key_id, uint8_t *mac, uint8_t mac_bytes, uint8_t *mac_buf) |
| sdrv_crypto_error_status_e cmd_ske_gen_mac | ( | uint8_t | mode, |
| uint8_t * | msg, | ||
| uint32_t | msg_bytes, | ||
| cmd_key_type_e | key_type, | ||
| uint8_t * | key, | ||
| uint16_t | key_id, | ||
| uint8_t * | mac, | ||
| uint8_t | mac_bytes, | ||
| uint8_t * | mac_buf | ||
| ) |
ske gen mac
This function gen mac.
| [in] | mode | ske mode |
| [in] | msg | msg buff |
| [in] | msg_bytes | msg bytelen |
| [in] | key_type | enc key type |
| [in] | key | enc key buff |
| [in] | key_id | enc key id |
| [out] | mac | mac buff |
| [in] | mac_bytes | mac bytelen |
| [in] | mac_buf | mac buff |
| sdrv_crypto_error_status_e cmd_ske_verify_mac | ( | uint8_t | mode, |
| uint8_t * | msg, | ||
| uint32_t | msg_bytes, | ||
| cmd_key_type_e | key_type, | ||
| uint8_t * | key, | ||
| uint16_t | key_id, | ||
| uint8_t * | mac, | ||
| uint8_t | mac_bytes, | ||
| uint8_t * | mac_buf | ||
| ) |
ske verify mac
This function verify mac
| [in] | mode | ske mode |
| [in] | msg | msg buff |
| [in] | msg_bytes | msg bytelen |
| [in] | key_type | enc key type |
| [in] | key | enc key buff |
| [in] | key_id | enc key id |
| [in] | mac | mac buff |
| [in] | mac_bytes | mac bytelen |
| [in] | mac_buf | mac buff |