Skip to content

Commit

Permalink
use EVP_MAX_IV_LENGTH
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Dec 9, 2015
1 parent 67f87d1 commit d4bc762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/krb5/aes-test.c
Expand Up @@ -812,9 +812,9 @@ iov_test(krb5_context context, krb5_enctype enctype)
krb5_crypto_iov iov[6];
size_t len, i;
unsigned char *base, *p;
unsigned char ivec[16], *ivecp;
unsigned char ivec[EVP_MAX_IV_LENGTH], *ivecp;

#define RESET_IVEC(ivecp) do { if (ivecp) memset(ivecp, 0, 16); } while (0)
#define RESET_IVEC(ivecp) do { if (ivecp) memset(ivecp, 0, EVP_MAX_IV_LENGTH); } while (0)

ivecp = _krb5_enctype_is_aead(context, enctype) ? ivec : NULL;

Expand Down

0 comments on commit d4bc762

Please sign in to comment.