]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: rsa-pkcs1pad - fix dst len
authorTadeusz Struk <tadeusz.struk@intel.com>
Wed, 6 Apr 2016 21:42:32 +0000 (14:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 May 2016 21:49:03 +0000 (14:49 -0700)
commit72e520a940cb24c4a616edb5dbd94b980fa88dd3
tree16f985440c6f5272b1a16acfef6a6001f6f171a9
parent3a698a36c9d9d2f807a5a5739b552253b2cee49f
crypto: rsa-pkcs1pad - fix dst len

commit 6f0904ada402a45b3a0a3b9b6507d91d3a9da67a upstream.

The output buffer length has to be at least as big as the key_size.
It is then updated to the actual output size by the implementation.

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/rsa-pkcs1pad.c