Skip to content

Commit 906c238

Browse files
authored
Prefer Ed25519 when available (#413)
1 parent 2909c15 commit 906c238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Fido2.Models/CredentialCreateOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public static CredentialCreateOptions Create(Fido2Configuration config, byte[] c
8383
PubKeyCredParams = new List<PubKeyCredParam>(10)
8484
{
8585
// Add additional as appropriate
86+
PubKeyCredParam.Ed25519,
8687
PubKeyCredParam.ES256,
8788
PubKeyCredParam.RS256,
8889
PubKeyCredParam.PS256,
@@ -92,7 +93,6 @@ public static CredentialCreateOptions Create(Fido2Configuration config, byte[] c
9293
PubKeyCredParam.ES512,
9394
PubKeyCredParam.RS512,
9495
PubKeyCredParam.PS512,
95-
PubKeyCredParam.Ed25519,
9696
},
9797
AuthenticatorSelection = authenticatorSelection,
9898
Attestation = attestationConveyancePreference,

0 commit comments

Comments
 (0)