backports: add signature verification code
authorJohannes Berg <johannes.berg@intel.com>
Thu, 12 Oct 2017 12:10:08 +0000 (14:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 13 Oct 2017 08:57:59 +0000 (10:57 +0200)
commit988e2af4b7a0c1bc70188674cfde2bf8b2838bd7
tree6cc10692587c0a92cb02d89e19573723051808f0
parentf82274f97829d7f9e11a9793546ba88b084e1199
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>
39 files changed:
backport/backport-include/keys/asymmetric-type.h [new file with mode: 0644]
backport/backport-include/keys/system_keyring.h [new file with mode: 0644]
backport/backport-include/linux/key.h [new file with mode: 0644]
backport/backport-include/linux/verification.h [new file with mode: 0644]
backport/compat/.gitignore [new file with mode: 0644]
backport/compat/Kconfig
backport/compat/Makefile
backport/compat/verification/asn1parse.c [new file with mode: 0644]
backport/compat/verification/bignum.c [new file with mode: 0644]
backport/compat/verification/key.c [new file with mode: 0644]
backport/compat/verification/mbedtls/asn1.h [new file with mode: 0644]
backport/compat/verification/mbedtls/bignum.h [new file with mode: 0644]
backport/compat/verification/mbedtls/bn_mul.h [new file with mode: 0644]
backport/compat/verification/mbedtls/config.h [new file with mode: 0644]
backport/compat/verification/mbedtls/md.h [new file with mode: 0644]
backport/compat/verification/mbedtls/md_internal.h [new file with mode: 0644]
backport/compat/verification/mbedtls/oid.h [new file with mode: 0644]
backport/compat/verification/mbedtls/pk.h [new file with mode: 0644]
backport/compat/verification/mbedtls/platform.h [new file with mode: 0644]
backport/compat/verification/mbedtls/rsa.h [new file with mode: 0644]
backport/compat/verification/mbedtls/sha1.h [new file with mode: 0644]
backport/compat/verification/mbedtls/sha256.h [new file with mode: 0644]
backport/compat/verification/md.c [new file with mode: 0644]
backport/compat/verification/md_wrap.c [new file with mode: 0644]
backport/compat/verification/oid.c [new file with mode: 0644]
backport/compat/verification/pkcs7-asn1.c [new file with mode: 0644]
backport/compat/verification/pkcs7-asn1.h [new file with mode: 0644]
backport/compat/verification/public_key.c [new file with mode: 0644]
backport/compat/verification/rsa.c [new file with mode: 0644]
backport/compat/verification/rsapubkey-asn1.c [new file with mode: 0644]
backport/compat/verification/rsapubkey-asn1.h [new file with mode: 0644]
backport/compat/verification/sha256.c [new file with mode: 0644]
backport/compat/verification/verify.c [new file with mode: 0644]
backport/compat/verification/x509-asn1.c [new file with mode: 0644]
backport/compat/verification/x509-asn1.h [new file with mode: 0644]
backport/compat/verification/x509_akid-asn1.c [new file with mode: 0644]
backport/compat/verification/x509_akid-asn1.h [new file with mode: 0644]
copy-list
patches/verify.patch [new file with mode: 0644]