Searched refs:cipher_hard (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/external/security/librkcrypto/test/ |
| H A D | test_otp_key_crypto.c | 152 uint8_t *plain = NULL, *cipher_soft = NULL, *cipher_hard = NULL; in test_otp_key_item_virt() local 169 cipher_hard = malloc(item->data_len); in test_otp_key_item_virt() 170 if (!cipher_hard) { in test_otp_key_item_virt() 199 memset(cipher_hard, 0x00, item->data_len); in test_otp_key_item_virt() 230 plain, cipher_hard, data_len); in test_otp_key_item_virt() 250 if (memcmp(cipher_soft, cipher_hard, data_len)) { in test_otp_key_item_virt() 270 if (cipher_hard) in test_otp_key_item_virt() 271 free(cipher_hard); in test_otp_key_item_virt() 290 rk_crypto_mem *cipher_hard = NULL; in test_otp_key_item_fd() local 307 cipher_hard = rk_crypto_mem_alloc(item->data_len); in test_otp_key_item_fd() [all …]
|
| H A D | test_cipher.c | 95 uint8_t *plain = NULL, *cipher_soft = NULL, *cipher_hard = NULL; in test_cipher_item_virt() local 112 if (posix_memalign((void *)&cipher_hard, page_size, data_len) || !cipher_hard) { in test_cipher_item_virt() 120 memset(cipher_hard, 0x00, data_len); in test_cipher_item_virt() 176 tmp_data_out = cipher_hard; in test_cipher_item_virt() 207 if (memcmp(cipher_hard, cipher_soft, data_len) != 0) { in test_cipher_item_virt() 231 if (cipher_hard) in test_cipher_item_virt() 232 free(cipher_hard); in test_cipher_item_virt() 250 rk_crypto_mem *plain = NULL, *cipher_soft = NULL, *cipher_hard = NULL; in test_cipher_item_fd() local 266 cipher_hard = rk_crypto_mem_alloc(data_len); in test_cipher_item_fd() 267 if (!cipher_hard) { in test_cipher_item_fd() [all …]
|