Home
last modified time | relevance | path

Searched refs:aad (Results 1 – 5 of 5) sorted by relevance

/rk3399_rockchip-uboot/cmd/
H A Dcrypto.c47 const u8 *aad; member
144 .aad = (aad_val), \
385 u8 aad[128], tag[16]; in test_cipher_perf() local
406 memset(aad, 0xcb, sizeof(aad)); in test_cipher_perf()
415 aad, sizeof(aad), cipher, tag); in test_cipher_perf()
551 test_data->aad, test_data->aad_len, in test_cipher_result()
/rk3399_rockchip-uboot/include/
H A Dcrypto.h133 const u8 *in, u32 len, const u8 *aad, u32 aad_len,
321 const u8 *in, u32 len, const u8 *aad, u32 aad_len,
/rk3399_rockchip-uboot/drivers/crypto/rockchip/
H A Dcrypto_v2.c982 const u8 *aad, u32 aad_len, in hw_cipher_crypt() argument
1086 aad, aad_len); in hw_cipher_crypt()
1089 if (IS_ALIGNED((ulong)aad, DATA_ADDR_ALIGN_SIZE)) { in hw_cipher_crypt()
1090 aad_tmp = (void *)aad; in hw_cipher_crypt()
1097 memcpy(aad_tmp, aad, aad_tmp_len); in hw_cipher_crypt()
1158 if (aad && aad != aad_tmp) in hw_cipher_crypt()
1370 const u8 *in, u32 len, const u8 *aad, u32 aad_len, in rk_crypto_ae() argument
1396 return hw_cipher_crypt(in, out, len, aad, aad_len, in rk_crypto_ae()
1401 const u8 *in, u32 len, const u8 *aad, u32 aad_len, in rockchip_crypto_ae() argument
1410 aad, aad_len, out, tag); in rockchip_crypto_ae()
H A Dcrypto_ce.c548 static int rkce_build_ccm_aad(const u8 *aad, u32 aad_len, u32 data_len, in rkce_build_ccm_aad() argument
591 memcpy(aad_tmp + AES_BLOCK_SIZE + pad_size, aad, aad_len); in rkce_build_ccm_aad()
753 const u8 *aad, u32 aad_len, u8 *tag) in rk_crypto_cipher() argument
805 ret = rkce_build_ccm_aad(aad, aad_len, len, in rk_crypto_cipher()
844 ret = rk_set_symm_td_sg(hw_ctx->td_aad, aad, aad_len, NULL, 0); in rk_crypto_cipher()
856 crypto_flush_cacheline((ulong)aad, aad_len); in rk_crypto_cipher()
907 const u8 *in, u32 len, const u8 *aad, u32 aad_len, in rockchip_crypto_ae() argument
910 return rk_crypto_cipher(dev, ctx, in, out, len, true, aad, aad_len, tag); in rockchip_crypto_ae()
/rk3399_rockchip-uboot/drivers/crypto/
H A Dcrypto-uclass.c336 const u8 *in, u32 len, const u8 *aad, u32 aad_len, in crypto_ae() argument
347 return ops->cipher_ae(dev, ctx, in, len, aad, aad_len, out, tag); in crypto_ae()