Home
last modified time | relevance | path

Searched refs:cipher_soft (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/external/security/librkcrypto/test/
H A Dtest_otp_key_crypto.c152 uint8_t *plain = NULL, *cipher_soft = NULL, *cipher_hard = NULL; in test_otp_key_item_virt() local
162 cipher_soft = malloc(item->data_len); in test_otp_key_item_virt()
163 if (!cipher_soft) { in test_otp_key_item_virt()
198 memset(cipher_soft, 0x00, item->data_len); in test_otp_key_item_virt()
243 cipher_cfg.iv, plain, data_len, cipher_soft); in test_otp_key_item_virt()
250 if (memcmp(cipher_soft, cipher_hard, data_len)) { in test_otp_key_item_virt()
267 if (cipher_soft) in test_otp_key_item_virt()
268 free(cipher_soft); in test_otp_key_item_virt()
288 uint8_t *cipher_soft = NULL; in test_otp_key_item_fd() local
293 cipher_soft = malloc(item->data_len); in test_otp_key_item_fd()
[all …]
H A Dtest_cipher.c95 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()
[all …]