summaryrefslogtreecommitdiff
path: root/tools/crypto_bench.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/crypto_bench.c')
-rw-r--r--tools/crypto_bench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/crypto_bench.c b/tools/crypto_bench.c
index 1a699ce684..96820ae428 100644
--- a/tools/crypto_bench.c
+++ b/tools/crypto_bench.c
@@ -173,7 +173,7 @@ static void run_gcrypt_aes128(uint8_t *output,
const uint8_t *input, unsigned size)
{
static gcry_cipher_hd_t aes;
- if (aes == NULL)
+ if (!aes)
gcry_cipher_open(&aes, GCRY_CIPHER_AES128, GCRY_CIPHER_MODE_ECB, 0);
gcry_cipher_setkey(aes, hardcoded_key, 16);
gcry_cipher_encrypt(aes, output, size, input, size);