Skip to content

Commit

Permalink
Prefer Ed25519 when available (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
abergs authored Aug 10, 2023
1 parent 2909c15 commit 906c238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Fido2.Models/CredentialCreateOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public static CredentialCreateOptions Create(Fido2Configuration config, byte[] c
PubKeyCredParams = new List<PubKeyCredParam>(10)
{
// Add additional as appropriate
PubKeyCredParam.Ed25519,
PubKeyCredParam.ES256,
PubKeyCredParam.RS256,
PubKeyCredParam.PS256,
Expand All @@ -92,7 +93,6 @@ public static CredentialCreateOptions Create(Fido2Configuration config, byte[] c
PubKeyCredParam.ES512,
PubKeyCredParam.RS512,
PubKeyCredParam.PS512,
PubKeyCredParam.Ed25519,
},
AuthenticatorSelection = authenticatorSelection,
Attestation = attestationConveyancePreference,
Expand Down

0 comments on commit 906c238

Please sign in to comment.