]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: rsa-pkcs1pad - use clearer variable names
authorEric Biggers <ebiggers@google.com>
Wed, 19 Jan 2022 00:13:06 +0000 (16:13 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 31 Jan 2022 00:21:44 +0000 (11:21 +1100)
commit5b78a75f2c66a31883a2f0731c6ebaf9dfca80a3
tree2eb6ef97a601b8d409845268dd660b79de18c154
parenteb0f93d8bad8a415741aa00cd933bcdb813d578f
crypto: rsa-pkcs1pad - use clearer variable names

The new convention for akcipher_alg::verify makes it unclear which
values are the lengths of the signature and digest.  Add local variables
to make it clearer what is going on.

Also rename the digest_size variable in pkcs1pad_sign(), as it is
actually the digest *info* size, not the digest size which is different.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rsa-pkcs1pad.c