summaryrefslogtreecommitdiffstats
path: root/mm/page_poison.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-06-29 13:32:28 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-07-01 17:45:20 +0200
commitd858b0713849be51406fe84722d0877fb57d201c (patch)
tree416d9d206fbcbf0e4a12f8b0ce5e3c1746fa713a /mm/page_poison.c
parentcrypto: rsa-pkcs1pad - Move key size check to setkey (diff)
downloadlinux-d858b0713849be51406fe84722d0877fb57d201c.tar.xz
linux-d858b0713849be51406fe84722d0877fb57d201c.zip
crypto: rsa-pkcs1pad - Avoid copying output when possible
In the vast majority of cases (2^-32 on 32-bit and 2^-64 on 64-bit) cases, the result from encryption/signing will require no padding. This patch makes these two operations write their output directly to the final destination. Only in the exceedingly rare cases where fixup is needed to we copy it out and back to add the leading zeroes. This patch also makes use of the crypto_akcipher_set_crypt API instead of writing the akcipher request directly. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'mm/page_poison.c')
0 files changed, 0 insertions, 0 deletions