VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Saulo Alessandre <saulo.alessandre@tse.jus.br> 2021-03-16 17:07:39 -0400 committer: Herbert Xu <herbert@gondor.apana.org.au> 2021-03-26 19:41:59 +1100 commit: 2a8e615436de4cd59a7b0af43590ede899906bdf parent: 947d70597236dd5ae65c1f68c8eabfb962ee5a6b
Commit Summary:
x509: Add OID for NIST P384 and extend parser for it
Diffstat:
1 file changed, 3 insertions, 0 deletions
diff --git a/crypto/asymmetric_keys/x509_cert_parser.c b/crypto/asymmetric_keys/x509_cert_parser.c
index f5d547c6dfb5..6d003096b5bc 100644
--- a/crypto/asymmetric_keys/x509_cert_parser.c
+++ b/crypto/asymmetric_keys/x509_cert_parser.c
@@ -510,6 +510,9 @@ int x509_extract_key_data(void *context, size_t hdrlen,
 		case OID_id_prime256v1:
 			ctx->cert->pub->pkey_algo = "ecdsa-nist-p256";
 			break;
+		case OID_id_ansip384r1:
+			ctx->cert->pub->pkey_algo = "ecdsa-nist-p384";
+			break;
 		default:
 			return -ENOPKG;
 		}