SemiDrive SSDK Appication Program Interface PTG3.0
Functions
sdrv_crypto_mailbox_ske_xts.h File Reference
#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)
 

Detailed Description

Function Documentation

◆ cmd_ske_xts_dec()

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.

Parameters
[in]modeske mode
[out]replainreplain buff
[in]key_typeenc key type
[in]keyenc key buff
[in]key_idenc key id
[in]iviv buff
[in]cipherout buff
[in]cipherbytelencipher bytelen
[in]mac_bufmac buff
Returns
CMD_RETURN_SUCCESS or error code.

◆ cmd_ske_xts_enc()

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

Parameters
[in]modeske mode
[in]plainplain buff
[in]bytelenplain bytelen
[in]key_typeenc key type
[in]keyenc key buff
[in]key_idenc key id
[in]iviv buff
[out]cipherout buff
[in]mac_bufmac buff
Returns
CMD_RETURN_SUCCESS or error code.