diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2015-11-13 12:01:33 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-11-17 22:00:39 +0800 |
commit | 8ce05a29afadd321b224e22a132a3b7bc863aaa4 (patch) | |
tree | 06e0caca72e03c82626fd783eae7d6012a863af1 /crypto/blkcipher.c | |
parent | a495eea64280ffa1f0ab0e1c98f7e51be5db0bdc (diff) | |
download | linux-crypto-8ce05a29afadd321b224e22a132a3b7bc863aaa4.tar.gz linux-crypto-8ce05a29afadd321b224e22a132a3b7bc863aaa4.zip |
crypto: rsa - only require output buffers as big as needed.
rhe RSA operations explicitly left-align the integers being written
skipping any leading zero bytes, but still require the output buffers to
include just enough space for the integer + the leading zero bytes.
Since the size of integer + the leading zero bytes (i.e. the key modulus
size) can now be obtained more easily through crypto_akcipher_maxsize
change the operations to only require as big a buffer as actually needed
if the caller has that information. The semantics for request->dst_len
don't change.
Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/blkcipher.c')
0 files changed, 0 insertions, 0 deletions