Lines Matching refs:data_size
288 u32 data_size = PERF_BUFF_SIZE; in test_hash_perf() local
299 data = (u8 *)memalign(CONFIG_SYS_CACHELINE_SIZE, data_size); in test_hash_perf()
302 __func__, __LINE__, data_size); in test_hash_perf()
306 memset(data, 0xab, data_size); in test_hash_perf()
320 for (i = 0; i < total_size / data_size; i++) { in test_hash_perf()
321 ret = crypto_sha_update(dev, (u32 *)data, data_size); in test_hash_perf()
348 u32 data_size = PERF_BUFF_SIZE; in test_cipher_perf() local
355 plain = (u8 *)memalign(CONFIG_SYS_CACHELINE_SIZE, data_size); in test_cipher_perf()
358 __func__, __LINE__, data_size); in test_cipher_perf()
362 cipher = (u8 *)memalign(CONFIG_SYS_CACHELINE_SIZE, data_size); in test_cipher_perf()
365 __func__, __LINE__, data_size); in test_cipher_perf()
370 memset(plain, 0xab, data_size); in test_cipher_perf()
375 for (i = 0; i < total_size / data_size; i++) { in test_cipher_perf()
377 ret = crypto_mac(dev, ctx, plain, data_size, cipher); in test_cipher_perf()
379 ret = crypto_ae(dev, ctx, plain, data_size, in test_cipher_perf()
383 data_size, enc); in test_cipher_perf()
562 u32 data_size = 4096 / 8; in test_rsa_result() local
568 hard_out = (u8 *)memalign(CONFIG_SYS_CACHELINE_SIZE, data_size); in test_rsa_result()
571 __func__, __LINE__, data_size); in test_rsa_result()
575 e_tmp = (u8 *)memalign(CONFIG_SYS_CACHELINE_SIZE, data_size); in test_rsa_result()
578 __func__, __LINE__, data_size); in test_rsa_result()
620 memset(e_tmp, 0x00, data_size); in test_rsa_result()