diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-10-12 14:10:08 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-10-13 10:57:59 +0200 |
commit | 988e2af4b7a0c1bc70188674cfde2bf8b2838bd7 (patch) | |
tree | 6cc10692587c0a92cb02d89e19573723051808f0 /backport/compat/Kconfig | |
parent | f82274f97829d7f9e11a9793546ba88b084e1199 (diff) |
backports: add signature verification code
Uh, this was awful. Because the crypto/ things are completely
impossible to backport, I've actually implemented this by using
mbedtls and embedding the relevant functions it has...
The mbedtls code is taken from mbedtls version 2.6.0 and only
minimally modified (mostly to remove <string.h> and similar).
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/compat/Kconfig')
-rw-r--r-- | backport/compat/Kconfig | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/backport/compat/Kconfig b/backport/compat/Kconfig index b1666710..542cf0cc 100644 --- a/backport/compat/Kconfig +++ b/backport/compat/Kconfig @@ -174,3 +174,29 @@ config BPAUTO_REFCOUNT depends on KERNEL_4_11 #h-file linux/refcount.h #c-file lib/refcount.c + +config BPAUTO_SYSTEM_DATA_VERIFICATION + bool + +config BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION + bool + default y if BPAUTO_SYSTEM_DATA_VERIFICATION + depends on KERNEL_4_7 || !SYSTEM_DATA_VERIFICATION + select BPAUTO_ASN1_DECODER + select BPAUTO_PUBLIC_KEY + select BPAUTO_PKCS7 + #h-file linux/oid_registry.h + #c-file lib/oid_registry.c + +config BPAUTO_PUBLIC_KEY + bool + #h-file crypto/public_key.h + +config BPAUTO_ASN1_DECODER + bool + #h-file linux/asn1_decoder.h + #c-file lib/asn1_decoder.c + +config BPAUTO_PKCS7 + bool + #h-file crypto/pkcs7.h |