commit | d6e43798b3d9cb8c59e1fccfaeec7cb396dc0699 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Fri Jul 27 15:36:11 2018 -0700 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Aug 03 18:06:06 2018 +0800 |
tree | 555f72d96ffaceafe726c15b10f529eed89bf54b | |
parent | 35f7d5225ffcbf1b759f641aec1735e3a89b1914 [diff] |
crypto: dh - make crypto_dh_encode_key() make robust Make it return -EINVAL if crypto_dh_key_len() is incorrect rather than overflowing the buffer. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>