diff options
author | Vitaly Chikunov <vt@altlinux.org> | 2019-04-23 21:32:40 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-04-25 03:40:39 -0400 |
commit | 1036633e10f86b793e60dd8698c65df6712cad2a (patch) | |
tree | e321b5146a5ec2aed501cab0241b06f264951748 | |
parent | 42e37c2edd8e6ef5401e37b1f40cb297ce8b10e3 (diff) |
crypto: ecrdsa - select ASN1 and OID_REGISTRY for EC-RDSA
Fix undefined symbol issue in ecrdsa_generic module when ASN1
or OID_REGISTRY aren't enabled in the config by selecting these
options for CRYPTO_ECRDSA.
ERROR: "asn1_ber_decoder" [crypto/ecrdsa_generic.ko] undefined!
ERROR: "look_up_OID" [crypto/ecrdsa_generic.ko] undefined!
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | crypto/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index 4446833f6eca..3d056e7da65f 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig | |||
@@ -264,6 +264,8 @@ config CRYPTO_ECRDSA | |||
264 | select CRYPTO_ECC | 264 | select CRYPTO_ECC |
265 | select CRYPTO_AKCIPHER | 265 | select CRYPTO_AKCIPHER |
266 | select CRYPTO_STREEBOG | 266 | select CRYPTO_STREEBOG |
267 | select OID_REGISTRY | ||
268 | select ASN1 | ||
267 | help | 269 | help |
268 | Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012, | 270 | Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012, |
269 | RFC 7091, ISO/IEC 14888-3:2018) is one of the Russian cryptographic | 271 | RFC 7091, ISO/IEC 14888-3:2018) is one of the Russian cryptographic |