KEYS: Create static version of public_key_verify_signature
authorEric Snowberg <eric.snowberg@oracle.com>
Thu, 2 Mar 2023 16:46:47 +0000 (11:46 -0500)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 24 Apr 2023 13:15:52 +0000 (16:15 +0300)
commit7f8da9915fcc6386edf86471bf31e162845930a4
treeea5ee1fa4af2e80a386eb1c56e7d46c3e1812f48
parenteff33245595d7ade7b821c9ed0f688272b16b07b
KEYS: Create static version of public_key_verify_signature

The kernel test robot reports undefined reference to
public_key_verify_signature when CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE is
not defined. Create a static version in this case and return -EINVAL.

Fixes: db6c43bd2132 ("crypto: KEYS: convert public key and digsig asym to the akcipher api")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
include/crypto/public_key.h