From e3faff8d284568afbbd5083ce36a050e6c89ef8d Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 13 Mar 2024 16:21:16 +0100 Subject: [PATCH] Update modules/4337/contracts/experimental/verifiers/WebAuthnVerifier.sol --- .../contracts/experimental/verifiers/WebAuthnVerifier.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/4337/contracts/experimental/verifiers/WebAuthnVerifier.sol b/modules/4337/contracts/experimental/verifiers/WebAuthnVerifier.sol index defb50a3..79610234 100644 --- a/modules/4337/contracts/experimental/verifiers/WebAuthnVerifier.sol +++ b/modules/4337/contracts/experimental/verifiers/WebAuthnVerifier.sol @@ -128,11 +128,11 @@ contract WebAuthnVerifier is IWebAuthnVerifier, P256Wrapper { let sixBitGroup // Iterate over challenge in group of 6 bits, for each 6 bits lookup the ENCODING_TABLE, transform it and store it in the result - for {let i := 0} lt(i, 252) + for {let i := 250} lt(i, 251) { - i := add(i, 6) + i := sub(i, 6) } { - sixBitGroup := and(shr(sub(250, i), challenge), 0x3F) + sixBitGroup := and(shr(i, challenge), 0x3F) mstore8(resultPtr, mload(add(tablePtr, sixBitGroup))) resultPtr := add(resultPtr, 1) }