diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-15 12:53:11 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-15 12:53:11 +0000 |
commit | 27a0b9dc856c9e38d98caa2c5ecae018af371604 (patch) | |
tree | 56b4f46cba26edc2375dff247b5f147328d0f0ea /crypto/evp/p5_crpt2.c | |
parent | 991c833687f6578f3688641b5fea340f169b77ef (diff) | |
download | openssl-new-27a0b9dc856c9e38d98caa2c5ecae018af371604.tar.gz |
(almost) recent changes from HEAD.
Diffstat (limited to 'crypto/evp/p5_crpt2.c')
-rw-r--r-- | crypto/evp/p5_crpt2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/p5_crpt2.c b/crypto/evp/p5_crpt2.c index 7485d6a278..098ce8afa0 100644 --- a/crypto/evp/p5_crpt2.c +++ b/crypto/evp/p5_crpt2.c @@ -190,6 +190,7 @@ int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, goto err; } keylen = EVP_CIPHER_CTX_key_length(ctx); + OPENSSL_assert(keylen <= sizeof key); /* Now decode key derivation function */ |