path: root/include/crypto
diff options
authorHerbert Xu <>2020-10-07 17:05:45 +1100
committerHerbert Xu <>2020-10-08 16:39:14 +1100
commit3093e7c16e12d729c325adb3c53dde7308cefbd8 (patch)
tree98d5e4a6f12879bd96920243de9a90d21a1245dd /include/crypto
parent10b0f78a73237181260fc3661577d59b475f8a20 (diff)
X.509: Fix modular build of public_key_sm2
The sm2 code was split out of public_key.c in a way that breaks modular builds. This patch moves the code back into the same file as the original motivation was to minimise ifdefs and that has nothing to do with splitting the code out. Fixes: 215525639631 ("X.509: support OSCCA SM2-with-SM3...") Reported-by: kernel test robot <> Signed-off-by: Herbert Xu <>
Diffstat (limited to 'include/crypto')
1 files changed, 0 insertions, 12 deletions
diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h
index 02a6dbe5c366..948c5203ca9c 100644
--- a/include/crypto/public_key.h
+++ b/include/crypto/public_key.h
@@ -84,16 +84,4 @@ extern int verify_signature(const struct key *,
int public_key_verify_signature(const struct public_key *pkey,
const struct public_key_signature *sig);
-int cert_sig_digest_update(const struct public_key_signature *sig,
- struct crypto_akcipher *tfm_pkey);
-static inline
-int cert_sig_digest_update(const struct public_key_signature *sig,
- struct crypto_akcipher *tfm_pkey)
- return -ENOTSUPP;
#endif /* _LINUX_PUBLIC_KEY_H */