OSDN Git Service

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)
commitc2a28fdb2f4e0b1676709426d80a986dd601200e
tree2eb6ef97a601b8d409845268dd660b79de18c154
parenta24611ea356c7f3f0ec926da11b9482ac1f414fd
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