From: Tobias Brunner Date: Mon, 20 Jan 2020 16:53:31 +0000 (+0100) Subject: pkcs1: Support parsing Ed448 public keys X-Git-Tag: 5.8.3dr1~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3361f81f1c1a61ca7698051dfa610ece92ed3218;p=thirdparty%2Fstrongswan.git pkcs1: Support parsing Ed448 public keys --- diff --git a/src/libstrongswan/plugins/pkcs1/pkcs1_builder.c b/src/libstrongswan/plugins/pkcs1/pkcs1_builder.c index c934f0b1d4..3f8972647c 100644 --- a/src/libstrongswan/plugins/pkcs1/pkcs1_builder.c +++ b/src/libstrongswan/plugins/pkcs1/pkcs1_builder.c @@ -87,6 +87,13 @@ static public_key_t *parse_public_key(chunk_t blob) KEY_ED25519, BUILD_BLOB_ASN1_DER, blob, BUILD_END); goto end; } + else if (oid == OID_ED448) + { + /* Need the whole subjectPublicKeyInfo for Ed448 public keys */ + key = lib->creds->create(lib->creds, CRED_PUBLIC_KEY, + KEY_ED448, BUILD_BLOB_ASN1_DER, blob, BUILD_END); + goto end; + } else { /* key type not supported */