-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'asymmetric-keys-next-6.10-rc1' of git://git.kernel.org/pub…
…/scm/linux/kernel/git/jarkko/linux-tpmdd Pull asymmetric keys update from Jarkko Sakkinen: "Add a self-test testing PCKS#7 signed data against ECDSA key and couple of bug fixes for missing deps" * tag 'asymmetric-keys-next-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd: certs: Add ECDSA signature verification self-test certs: Move RSA self-test data to separate file KEYS: asymmetric: Add missing dependencies of FIPS_SIGNATURE_SELFTEST KEYS: asymmetric: Add missing dependency on CRYPTO_SIG
- Loading branch information
Showing
6 changed files
with
330 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
/* Helper function for self-testing PKCS#7 signature verification. | ||
* | ||
* Copyright (C) 2024 Joachim Vandersmissen <git@jvdsn.com> | ||
*/ | ||
|
||
void fips_signature_selftest(const char *name, | ||
const u8 *keys, size_t keys_len, | ||
const u8 *data, size_t data_len, | ||
const u8 *sig, size_t sig_len); | ||
|
||
#ifdef CONFIG_FIPS_SIGNATURE_SELFTEST_RSA | ||
void __init fips_signature_selftest_rsa(void); | ||
#else | ||
static inline void __init fips_signature_selftest_rsa(void) { } | ||
#endif | ||
|
||
#ifdef CONFIG_FIPS_SIGNATURE_SELFTEST_ECDSA | ||
void __init fips_signature_selftest_ecdsa(void); | ||
#else | ||
static inline void __init fips_signature_selftest_ecdsa(void) { } | ||
#endif |
Oops, something went wrong.