diff options
author | Matt Caswell <matt@openssl.org> | 2015-01-27 14:00:50 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-01-28 10:38:38 +0000 |
commit | d57d135c33938dfdac441c98b2c40183a8cb66b0 (patch) | |
tree | c67c5400cf24eaa05c8526147e89e8a7201b6b2f /crypto/evp/evp_test.c | |
parent | 646e8c1d6b30a2ed080ce5b968b49d234b42644f (diff) |
Replace EVP_CTRL_OCB_SET_TAGLEN with EVP_CTRL_SET_TAG for consistency with
CCM
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/evp/evp_test.c')
-rw-r--r-- | crypto/evp/evp_test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/evp/evp_test.c b/crypto/evp/evp_test.c index dde9e16903..5784874baa 100644 --- a/crypto/evp/evp_test.c +++ b/crypto/evp/evp_test.c @@ -185,8 +185,7 @@ static void test1(const EVP_CIPHER *c, const unsigned char *key, int kn, test1_exit(11); } if ((mode == EVP_CIPH_OCB_MODE) && - !EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_OCB_SET_TAGLEN, tn, NULL)) - { + !EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_SET_TAG, tn, NULL)) { fprintf(stderr, "Tag length set failed\n"); ERR_print_errors_fp(stderr); test1_exit(15); @@ -301,8 +300,7 @@ static void test1(const EVP_CIPHER *c, const unsigned char *key, int kn, test1_exit(11); } if ((mode == EVP_CIPH_OCB_MODE) && - !EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_OCB_SET_TAGLEN, tn, NULL)) - { + !EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_SET_TAG, tn, NULL)) { fprintf(stderr, "Tag length set failed\n"); ERR_print_errors_fp(stderr); test1_exit(15); |