Lines Matching refs:cipher_soft
95 uint8_t *plain = NULL, *cipher_soft = NULL, *cipher_hard = NULL; in test_cipher_item_virt() local
107 if (posix_memalign((void *)&cipher_soft, page_size, data_len) || !cipher_soft) { in test_cipher_item_virt()
119 memset(cipher_soft, 0x00, data_len); in test_cipher_item_virt()
200 plain, data_len, cipher_soft); in test_cipher_item_virt()
207 if (memcmp(cipher_hard, cipher_soft, data_len) != 0) { in test_cipher_item_virt()
228 if (cipher_soft) in test_cipher_item_virt()
229 free(cipher_soft); in test_cipher_item_virt()
250 rk_crypto_mem *plain = NULL, *cipher_soft = NULL, *cipher_hard = NULL; in test_cipher_item_fd() local
260 cipher_soft = rk_crypto_mem_alloc(data_len); in test_cipher_item_fd()
261 if (!cipher_soft) { in test_cipher_item_fd()
337 plain->vaddr, data_len, cipher_soft->vaddr); in test_cipher_item_fd()
344 if (memcmp(cipher_hard->vaddr, cipher_soft->vaddr, data_len) != 0) { in test_cipher_item_fd()
363 rk_crypto_mem_free(cipher_soft); in test_cipher_item_fd()