Skip to content

Commit

Permalink
Update s if s > n/2
Browse files Browse the repository at this point in the history
  • Loading branch information
imduchuyyy committed Jun 25, 2024
1 parent 619f20a commit 0c9aed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebAuthn.sol
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ library WebAuthn {
{
if (webAuthnAuth.s > _P256_N_DIV_2) {
// guard against signature malleability
return false;
webAuthnAuth.s = FCL_Elliptic_ZZ.n - webAuthnAuth.s;
}

// 11. Verify that the value of C.type is the string webauthn.get.
Expand Down

0 comments on commit 0c9aed3

Please sign in to comment.