diff options
Diffstat (limited to 'demos/evp/aesgcm.c')
-rw-r--r-- | demos/evp/aesgcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/evp/aesgcm.c b/demos/evp/aesgcm.c index df59f469fd..46d9a5639b 100644 --- a/demos/evp/aesgcm.c +++ b/demos/evp/aesgcm.c @@ -102,7 +102,7 @@ void aes_gcm_decrypt(void) printf("Plaintext:\n"); BIO_dump_fp(stdout, outbuf, outlen); /* Set expected tag value. */ - EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, sizeof(gcm_tag), + EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, sizeof(gcm_tag), (void *)gcm_tag); /* Finalise: note get no output for GCM */ rv = EVP_DecryptFinal_ex(ctx, outbuf, &outlen); |