Skip to contentSkip to conversation

crypto: ccp - select CONFIG_CRYPTO_RSA

PATCH In review Arnd Bergmann 3 participants 3 messages Jul 31, 2017 – Aug 9, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: ccp - select CONFIG_CRYPTO_RSA

Without the base RSA code, we run into a link error:

ERROR: "rsa_parse_pub_key" [drivers/crypto/ccp/ccp-crypto.ko] undefined!
ERROR: "rsa_parse_priv_key" [drivers/crypto/ccp/ccp-crypto.ko] undefined!

Like the other drivers implementing RSA in hardware, this can be avoided by always enabling the base support when we build CCP.

Fixes ceeec0afd684 ("crypto: ccp - Add support for RSA on the CCP")
---
 drivers/crypto/ccp/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/ccp/Kconfig +1 -0
index 15b63fd3d180..6d626606b9c5 100644
@@ -27,6 +27,7 @@ config CRYPTO_DEV_CCP_CRYPTO
 	select CRYPTO_HASH
 	select CRYPTO_BLKCIPHER
 	select CRYPTO_AUTHENC
+	select CRYPTO_RSA
 	help
 	  Support for using the cryptographic API with the AMD Cryptographic
 	  Coprocessor. This module supports offload of SHA and AES algorithms.
Signature · 1 line
2.9.0
#1 lore raw
Quoted 21 lines · Arnd Bergmann

Without the base RSA code, we run into a link error:

ERROR: "rsa_parse_pub_key" [drivers/crypto/ccp/ccp-crypto.ko] undefined!
ERROR: "rsa_parse_priv_key" [drivers/crypto/ccp/ccp-crypto.ko] undefined!

Like the other drivers implementing RSA in hardware, this can be avoided by always enabling the base support when we build CCP.

Fixes ceeec0afd684 ("crypto: ccp - Add support for RSA on the CCP")
---
 drivers/crypto/ccp/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/ccp/Kconfig +0 -0
index 15b63fd3d180..6d626606b9c5 100644

drivers/crypto/ccp/Kconfig config CRYPTO_DEV_CCP_CRYPTO · line 33

Quoted 7 lines
drivers/crypto/ccp/Kconfig +1 -0
@@ -27,6 +27,7 @@ config CRYPTO_DEV_CCP_CRYPTO
 	select CRYPTO_HASH
 	select CRYPTO_BLKCIPHER
 	select CRYPTO_AUTHENC
+	select CRYPTO_RSA
 	help
 	  Support for using the cryptographic API with the AMD Cryptographic
 	  Coprocessor. This module supports offload of SHA and AES algorithms.

Reviewed by: Gary R Hook <[email protected]>

maintainer
#2 lore raw
In reply to Arnd Bergmann
Quoted 11 lines · Arnd Bergmann

Without the base RSA code, we run into a link error:

ERROR: "rsa_parse_pub_key" [drivers/crypto/ccp/ccp-crypto.ko] undefined!
ERROR: "rsa_parse_priv_key" [drivers/crypto/ccp/ccp-crypto.ko] undefined!

Like the other drivers implementing RSA in hardware, this can be avoided by always enabling the base support when we build CCP.

Fixes ceeec0afd684 ("crypto: ccp - Add support for RSA on the CCP")

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt