pkcs1: Support parsing Ed448 public keys

This commit is contained in:
Tobias Brunner 2020-01-20 17:53:31 +01:00
parent 18bee9306a
commit 3361f81f1c
1 changed files with 7 additions and 0 deletions

View File

@ -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 */