Lines Matching refs:data_len
34 uint32_t data_len = sizeof(input); in demo_cipher() local
45 in = rk_crypto_mem_alloc(data_len); in demo_cipher()
47 printf("malloc %uByte error!\n", data_len); in demo_cipher()
52 out = rk_crypto_mem_alloc(data_len); in demo_cipher()
54 printf("malloc %uByte error!\n", data_len); in demo_cipher()
66 memcpy(in->vaddr, input, data_len); in demo_cipher()
74 res = rk_cipher_crypt(handle, in->dma_fd, out->dma_fd, data_len); in demo_cipher()
83 if (memcmp(out->vaddr, expected_enc, data_len)) { in demo_cipher()
100 res = rk_cipher_crypt(handle, out->dma_fd, out->dma_fd, data_len); in demo_cipher()
109 if (memcmp(out->vaddr, input, data_len)) { in demo_cipher()
132 uint32_t data_len = sizeof(input); in demo_cipher_virt() local
156 res = rk_cipher_crypt_virt(handle, input, output, data_len); in demo_cipher_virt()
165 if (memcmp(output, expected_enc, data_len)) { in demo_cipher_virt()
182 res = rk_cipher_crypt_virt(handle, output, output, data_len); in demo_cipher_virt()
191 if (memcmp(output, input, data_len)) { in demo_cipher_virt()