]> 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)
commita7af15baff7b1da45acea8e89ccb39c2d27dd408
tree81481775bdc12aa649e9a0b805437618d9620756
parentd3b5f60f12e5c820ddfe91584860f271799f303e
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