Skip to content

Commit

Permalink
check for IV at AEAD API layer
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Dec 17, 2015
1 parent b3cd31b commit 87c5a62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/krb5/crypto-aead.c
Expand Up @@ -58,6 +58,10 @@ _krb5_evp_cipher_aead(krb5_context context,
EVP_CIPHER_CTX *c;
int i, outlen;

/* AEAD etypes require initialization vectors */
if (ivec == NULL)
return KRB5_PROG_ETYPE_NOSUPP;

headersz = et->confoundersize;
trailersz = et->blocksize;

Expand Down

0 comments on commit 87c5a62

Please sign in to comment.