]> git.baikalelectronics.ru Git - kernel.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Apr 2016 14:13:55 +0000 (22:13 +0800)
commit7c6117fd92e60b86a880429ab65808672b7a0bd3
tree81481775bdc12aa649e9a0b805437618d9620756
parent11b1d7b77e29b42d53a2cf3796ff1526fda114ab
crypto: rsa-pkcs1pad - fix dst len

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rsa-pkcs1pad.c