]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: sig - Rename crypto_sig_maxsize() to crypto_sig_keysize()
authorLukas Wunner <lukas@wunner.de>
Tue, 10 Sep 2024 14:30:26 +0000 (16:30 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Oct 2024 05:22:04 +0000 (13:22 +0800)
commit221f00418e726237dbe38ba627ce08b22d3667f7
tree58415891681c85d775fb3193b93f6f8ab79e1da5
parentd6793ff974e07e4eea151d1f0805e92d042825a1
crypto: sig - Rename crypto_sig_maxsize() to crypto_sig_keysize()

crypto_sig_maxsize() is a bit of a misnomer as it doesn't return the
maximum signature size, but rather the key size.

Rename it as well as all implementations of the ->max_size callback.
A subsequent commit introduces a crypto_sig_maxsize() function which
returns the actual maximum signature size.

While at it, change the return type of crypto_sig_keysize() from int to
unsigned int for consistency with crypto_akcipher_maxsize().  None of
the callers checks for a negative return value and an error condition
can always be indicated by returning zero.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Documentation/crypto/api-sig.rst
crypto/asymmetric_keys/public_key.c
crypto/ecdsa-x962.c
crypto/ecdsa.c
crypto/ecrdsa.c
crypto/rsassa-pkcs1.c
crypto/sig.c
crypto/testmgr.c
include/crypto/sig.h