| /bsp/allwinner/libraries/sunxi-hal/hal/test/ce/ |
| A D | test_ce.c | 88 crypto_aes_req_ctx_t *aes_ctx = NULL; in aes_test() local 91 if (aes_ctx == NULL) { in aes_test() 98 if (aes_ctx->dst_buffer == NULL) { in aes_test() 110 aes_ctx->key = aes_key[i]; in aes_test() 113 aes_ctx->iv = NULL; in aes_test() 115 aes_ctx->iv = aes_iv; in aes_test() 125 aes_ctx->mode = m; in aes_test() 127 aes_ctx->dst_length = CE_ROUND_UP(aes_ctx->src_length, AES_BLOCK_SIZE); in aes_test() 177 memset(aes_ctx->dst_buffer, 0x0, aes_ctx->dst_length); in aes_test() 207 if (aes_ctx->dst_buffer != NULL) { in aes_test() [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/drivers/src/ |
| A D | hpm_sdp_drv.c | 156 sdp_aes_ctx_t *aes_ctx, in sdp_aes_set_key() argument 170 aes_ctx->crypto_algo = sdp_crypto_alg_aes; in sdp_aes_set_key() 179 aes_ctx->key_bits = key_bits; in sdp_aes_set_key() 206 aes_ctx->key_idx = key128_idx; in sdp_aes_set_key() 207 aes_ctx->key_bits = key_bits; in sdp_aes_set_key() 245 assert((base != NULL) && (aes_ctx != NULL)); in sdp_aes_crypt_ecb() 308 assert((base != NULL) && (aes_ctx != NULL)); in sdp_aes_crypt_cbc() 512 uint8_t *b = (uint8_t *) &aes_ctx->buf0; in aes_ccm_auth_crypt() 513 uint8_t *y = (uint8_t *) &aes_ctx->buf1; in aes_ccm_auth_crypt() 625 aes_ctx, in sdp_aes_ccm_generate_encrypt() [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/soc/HPM6800/HPM6880/ |
| A D | hpm_romapi.h | 237 …hpm_stat_t (*aes_set_key)(sdp_aes_ctx_t *aes_ctx, const uint8_t *key, sdp_aes_key_bits_t keybits, … 241 hpm_stat_t (*aes_crypt_cbc)(sdp_aes_ctx_t *aes_ctx, 249 …(*aes_crypt_ctr)(sdp_aes_ctx_t *aes_ctx, uint8_t *nonce_ctr, uint8_t *input, uint8_t *output, uint… 251 hpm_stat_t (*aes_ccm_gen_enc)(sdp_aes_ctx_t *aes_ctx, 262 hpm_stat_t (*aes_ccm_dec_verify)(sdp_aes_ctx_t *aes_ctx, 847 static inline hpm_stat_t rom_sdp_aes_set_key(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_set_key() argument 852 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_set_key(aes_ctx, key, key_bits, key_idx); in rom_sdp_aes_set_key() 864 static inline hpm_stat_t rom_sdp_aes_crypt_ecb(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_crypt_ecb() argument 870 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_crypt_ecb(aes_ctx, op, len, in, out); in rom_sdp_aes_crypt_ecb() 883 static inline hpm_stat_t rom_sdp_aes_crypt_cbc(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_crypt_cbc() argument [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/soc/HPM6E00/HPM6E80/ |
| A D | hpm_romapi.h | 266 …hpm_stat_t (*aes_set_key)(sdp_aes_ctx_t *aes_ctx, const uint8_t *key, sdp_aes_key_bits_t keybits, … 270 hpm_stat_t (*aes_crypt_cbc)(sdp_aes_ctx_t *aes_ctx, 278 …(*aes_crypt_ctr)(sdp_aes_ctx_t *aes_ctx, uint8_t *nonce_ctr, uint8_t *input, uint8_t *output, uint… 280 hpm_stat_t (*aes_ccm_gen_enc)(sdp_aes_ctx_t *aes_ctx, 291 hpm_stat_t (*aes_ccm_dec_verify)(sdp_aes_ctx_t *aes_ctx, 816 static inline hpm_stat_t rom_sdp_aes_set_key(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_set_key() argument 821 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_set_key(aes_ctx, key, key_bits, key_idx); in rom_sdp_aes_set_key() 833 static inline hpm_stat_t rom_sdp_aes_crypt_ecb(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_crypt_ecb() argument 839 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_crypt_ecb(aes_ctx, op, len, in, out); in rom_sdp_aes_crypt_ecb() 852 static inline hpm_stat_t rom_sdp_aes_crypt_cbc(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_crypt_cbc() argument [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/soc/HPM6200/HPM6280/ |
| A D | hpm_romapi.h | 237 …hpm_stat_t (*aes_set_key)(sdp_aes_ctx_t *aes_ctx, const uint8_t *key, sdp_aes_key_bits_t keybits, … 241 hpm_stat_t (*aes_crypt_cbc)(sdp_aes_ctx_t *aes_ctx, 249 …(*aes_crypt_ctr)(sdp_aes_ctx_t *aes_ctx, uint8_t *nonce_ctr, uint8_t *input, uint8_t *output, uint… 251 hpm_stat_t (*aes_ccm_gen_enc)(sdp_aes_ctx_t *aes_ctx, 262 hpm_stat_t (*aes_ccm_dec_verify)(sdp_aes_ctx_t *aes_ctx, 856 static inline hpm_stat_t rom_sdp_aes_set_key(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_set_key() argument 861 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_set_key(aes_ctx, key, key_bits, key_idx); in rom_sdp_aes_set_key() 873 static inline hpm_stat_t rom_sdp_aes_crypt_ecb(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_crypt_ecb() argument 879 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_crypt_ecb(aes_ctx, op, len, in, out); in rom_sdp_aes_crypt_ecb() 892 static inline hpm_stat_t rom_sdp_aes_crypt_cbc(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_crypt_cbc() argument [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/soc/HPM5300/HPM5361/ |
| A D | hpm_romapi.h | 251 …hpm_stat_t (*aes_set_key)(sdp_aes_ctx_t *aes_ctx, const uint8_t *key, sdp_aes_key_bits_t keybits, … 255 hpm_stat_t (*aes_crypt_cbc)(sdp_aes_ctx_t *aes_ctx, 263 …(*aes_crypt_ctr)(sdp_aes_ctx_t *aes_ctx, uint8_t *nonce_ctr, uint8_t *input, uint8_t *output, uint… 265 hpm_stat_t (*aes_ccm_gen_enc)(sdp_aes_ctx_t *aes_ctx, 276 hpm_stat_t (*aes_ccm_dec_verify)(sdp_aes_ctx_t *aes_ctx, 769 static inline hpm_stat_t rom_sdp_aes_set_key(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_set_key() argument 774 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_set_key(aes_ctx, key, key_bits, key_idx); in rom_sdp_aes_set_key() 786 static inline hpm_stat_t rom_sdp_aes_crypt_ecb(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_crypt_ecb() argument 792 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_crypt_ecb(aes_ctx, op, len, in, out); in rom_sdp_aes_crypt_ecb() 805 static inline hpm_stat_t rom_sdp_aes_crypt_cbc(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_crypt_cbc() argument [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/drivers/inc/ |
| A D | hpm_sdp_drv.h | 392 sdp_aes_ctx_t *aes_ctx, 427 sdp_aes_ctx_t *aes_ctx, 459 sdp_aes_ctx_t *aes_ctx, 493 sdp_aes_ctx_t *aes_ctx, 530 sdp_aes_ctx_t *aes_ctx, 578 sdp_aes_ctx_t *aes_ctx,
|
| /bsp/hpmicro/libraries/hpm_sdk/soc/HPM6700/HPM6750/ |
| A D | hpm_romapi.h | 233 …hpm_stat_t (*aes_set_key)(sdp_aes_ctx_t *aes_ctx, const uint8_t *key, sdp_aes_key_bits_t keybits, … 235 …hpm_stat_t (*aes_crypt_ecb)(sdp_aes_ctx_t *aes_ctx, sdp_aes_op_t op, uint32_t len, const uint8_t *… 237 …hpm_stat_t (*aes_crypt_cbc)(sdp_aes_ctx_t *aes_ctx, sdp_aes_op_t op, uint32_t length, uint8_t iv[1… 240 …hpm_stat_t (*aes_crypt_ctr)(sdp_aes_ctx_t *aes_ctx, uint8_t *nonce_ctr, uint8_t *input, uint8_t *o… 243 …hpm_stat_t (*aes_ccm_gen_enc)(sdp_aes_ctx_t *aes_ctx, uint32_t input_len, const uint8_t *nonce, ui… 247 … hpm_stat_t (*aes_ccm_dec_verify)(sdp_aes_ctx_t *aes_ctx, uint32_t input_len, const uint8_t *nonce, 804 static inline hpm_stat_t rom_sdp_aes_set_key(sdp_aes_ctx_t *aes_ctx, const uint8_t *key, in rom_sdp_aes_set_key() argument 807 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_set_key(aes_ctx, key, key_bits, key_idx); in rom_sdp_aes_set_key() 819 static inline hpm_stat_t rom_sdp_aes_crypt_ecb(sdp_aes_ctx_t *aes_ctx, sdp_aes_op_t op, in rom_sdp_aes_crypt_ecb() argument 822 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_crypt_ecb(aes_ctx, op, len, in, out); in rom_sdp_aes_crypt_ecb() [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/soc/HPM6300/HPM6360/ |
| A D | hpm_romapi.h | 254 …hpm_stat_t (*aes_set_key)(sdp_aes_ctx_t *aes_ctx, const uint8_t *key, sdp_aes_key_bits_t keybits, … 258 hpm_stat_t (*aes_crypt_cbc)(sdp_aes_ctx_t *aes_ctx, 266 …(*aes_crypt_ctr)(sdp_aes_ctx_t *aes_ctx, uint8_t *nonce_ctr, uint8_t *input, uint8_t *output, uint… 268 hpm_stat_t (*aes_ccm_gen_enc)(sdp_aes_ctx_t *aes_ctx, 279 hpm_stat_t (*aes_ccm_dec_verify)(sdp_aes_ctx_t *aes_ctx, 868 static inline hpm_stat_t rom_sdp_aes_set_key(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_set_key() argument 873 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_set_key(aes_ctx, key, key_bits, key_idx); in rom_sdp_aes_set_key() 885 static inline hpm_stat_t rom_sdp_aes_crypt_ecb(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_crypt_ecb() argument 891 return ROM_API_TABLE_ROOT->sdp_driver_if->aes_crypt_ecb(aes_ctx, op, len, in, out); in rom_sdp_aes_crypt_ecb() 904 static inline hpm_stat_t rom_sdp_aes_crypt_cbc(sdp_aes_ctx_t *aes_ctx, in rom_sdp_aes_crypt_cbc() argument [all …]
|