|
SemiDrive SSDK Appication Program Interface PTG3.0
|
#include "sdrv_crypto_mailbox_common.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_xts_enc (uint8_t mode, uint8_t *plain, uint32_t bytelen, cmd_key_type_e key_type, uint8_t *key, uint16_t key_id, uint8_t *iv, uint8_t *cipher, uint8_t *mac_buf) |
| sdrv_crypto_error_status_e | cmd_ske_xts_dec (uint8_t mode, uint8_t *replain, cmd_key_type_e key_type, uint8_t *key, uint16_t key_id, uint8_t *iv, uint8_t *cipher, uint32_t cipherbytelen, uint8_t *mac_buf) |
| sdrv_crypto_error_status_e cmd_ske_xts_dec | ( | uint8_t | mode, |
| uint8_t * | replain, | ||
| cmd_key_type_e | key_type, | ||
| uint8_t * | key, | ||
| uint16_t | key_id, | ||
| uint8_t * | iv, | ||
| uint8_t * | cipher, | ||
| uint32_t | cipherbytelen, | ||
| uint8_t * | mac_buf | ||
| ) |
get device info
This function get ehsm device info.
| [in] | mode | ske mode |
| [out] | replain | replain buff |
| [in] | key_type | enc key type |
| [in] | key | enc key buff |
| [in] | key_id | enc key id |
| [in] | iv | iv buff |
| [in] | cipher | out buff |
| [in] | cipherbytelen | cipher bytelen |
| [in] | mac_buf | mac buff |
| sdrv_crypto_error_status_e cmd_ske_xts_enc | ( | uint8_t | mode, |
| uint8_t * | plain, | ||
| uint32_t | bytelen, | ||
| cmd_key_type_e | key_type, | ||
| uint8_t * | key, | ||
| uint16_t | key_id, | ||
| uint8_t * | iv, | ||
| uint8_t * | cipher, | ||
| uint8_t * | mac_buf | ||
| ) |
ske xts enc
This function ske xts enc
| [in] | mode | ske mode |
| [in] | plain | plain buff |
| [in] | bytelen | plain bytelen |
| [in] | key_type | enc key type |
| [in] | key | enc key buff |
| [in] | key_id | enc key id |
| [in] | iv | iv buff |
| [out] | cipher | out buff |
| [in] | mac_buf | mac buff |