summaryrefslogtreecommitdiff
path: root/backport/compat/verification
AgeCommit message (Collapse)Author
2018-04-26backports: rename *-asn1.[ch] to *.asn1.[ch]Winnie Chang
linux-stable 4fa8bc949de11c99ee2433c602d43f87c452f4f2 renamed *-asn1.[ch] files to *.asn1.[ch]. Make the corresponding change for backports. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-02-23backport: remove stddef.h inclusionsLuca Coelho
The verification code was copied from userspace code which includes stddef.h. In the kernel, this header should not be included, so remove those cases. Fixes: 988e2af4b7a0 ("backports: add signature verification code") Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-01-31backports: include linux/err.h in key.cWinnie Chang
Function IS_ERR, PTR_ERR and ERR_PTR are not found. Need to include linux/err.h to fix compiling errors. Signed-off-by: Winnie Chang <winnie.chang@cypress.com> Signed-off-by: Chi-hsien Lin <chi-hsien.lin@cypress.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: reduce mbedtls bignum stack usageJohannes Berg
mbedtls_mpi_exp_mod() uses almost 4k of memory, which really shouldn't be on the stack in the kernel. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: add signature verification codeJohannes Berg
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>