Searched refs:cipher (Results 1 – 4 of 4) sorted by relevance
/trusty/user/base/app/swaes-benchmark/ |
D | swaes-bench.c | 52 const EVP_CIPHER* cipher; member 152 _state->cipher = EVP_aes_128_cbc(); in BENCH_SETUP() 154 _state->cipher = EVP_aes_256_cbc(); in BENCH_SETUP() 159 _state->cipher = EVP_aes_128_gcm(); in BENCH_SETUP() 161 _state->cipher = EVP_aes_256_gcm(); in BENCH_SETUP() 169 ASSERT_NE(NULL, _state->cipher, "invalid cipher mode or size\n"); in BENCH_SETUP() 172 ASSERT_EQ(EVP_CIPHER_key_length(_state->cipher), param->key_size); in BENCH_SETUP() 173 ASSERT_EQ(EVP_CIPHER_iv_length(_state->cipher), param->iv_size); in BENCH_SETUP() 192 rc = EVP_EncryptInit_ex(&_state->evp_ctx, _state->cipher, NULL, param->key, in encrypt() 242 rc = EVP_DecryptInit_ex(&_state->evp_ctx, _state->cipher, NULL, param->key, in decrypt()
|
/trusty/user/app/sample/hwaes/ |
D | main.c | 65 const EVP_CIPHER* cipher; in hwaes_aes_op() local 136 cipher = EVP_aes_128_cbc(); in hwaes_aes_op() 139 cipher = EVP_aes_256_cbc(); in hwaes_aes_op() 159 cipher = EVP_aes_128_gcm(); in hwaes_aes_op() 162 cipher = EVP_aes_256_gcm(); in hwaes_aes_op() 196 evp_ret = EVP_CipherInit_ex(cipher_ctx, cipher, NULL, NULL, NULL, in hwaes_aes_op() 213 evp_ret = EVP_CipherInit_ex(cipher_ctx, cipher, NULL, key.data_ptr, in hwaes_aes_op()
|
/trusty/user/app/storage/ |
D | crypt.c | 100 const EVP_CIPHER* cipher; in crypt() local 112 cipher = EVP_aes_128_ctr(); in crypt() 113 key_len = EVP_CIPHER_key_length(cipher); in crypt() 124 evp_ret = EVP_CipherInit_ex(cipher_ctx, cipher, NULL, key->byte, iv->byte, in crypt()
|
/trusty/user/app/sample/hwcrypto/ |
D | hwkey_srv.c | 226 const EVP_CIPHER* cipher; in hwkey_get_derived_key() local 229 cipher = EVP_aes_128_cbc(); in hwkey_get_derived_key() 232 cipher = EVP_aes_256_cbc(); in hwkey_get_derived_key() 250 evp_ret = EVP_DecryptInit_ex(cipher_ctx, cipher, NULL, NULL, NULL); in hwkey_get_derived_key() 270 evp_ret = EVP_DecryptInit_ex(cipher_ctx, cipher, NULL, key_buffer, in hwkey_get_derived_key()
|