Add EdDSA/Ed25519 to WebAuthn Signature algorithms

closes #15000

Signed-off-by: Takashi Norimatsu <takashi.norimatsu.ws@hitachi.com>
This commit is contained in:
Takashi Norimatsu 2024-02-19 09:32:45 +09:00 committed by Marek Posolda
parent f117210585
commit 2f35d0e346
2 changed files with 4 additions and 0 deletions

View file

@ -39,6 +39,7 @@ const SIGNATURE_ALGORITHMS = [
"RS256",
"RS384",
"RS512",
"Ed25519",
"RS1",
] as const;
const ATTESTATION_PREFERENCE = [

View file

@ -321,6 +321,9 @@ public class WebAuthnRegister implements RequiredActionProvider, CredentialRegis
case Algorithm.RS512 :
algs.add(COSEAlgorithmIdentifier.RS512.getValue());
break;
case Algorithm.Ed25519:
algs.add(COSEAlgorithmIdentifier.EdDSA.getValue());
break;
case "RS1" :
algs.add(COSEAlgorithmIdentifier.RS1.getValue());
break;