@@ -57,7 +57,7 @@ public async Task<VerifyAssertionResult> VerifyAsync(
5757 AssertionOptions options ,
5858 Fido2Configuration config ,
5959 byte [ ] storedPublicKey ,
60- List < byte [ ] > storedDevicePublicKeys ,
60+ IReadOnlyList < byte [ ] > storedDevicePublicKeys ,
6161 uint storedSignatureCounter ,
6262 IsUserHandleOwnerOfCredentialIdAsync isUserHandleOwnerOfCredId ,
6363 IMetadataService ? metadataService ,
@@ -235,7 +235,7 @@ public async Task<VerifyAssertionResult> VerifyAsync(
235235 /// <param name="hash"></param>
236236 /// </summary>
237237 private static async ValueTask < byte [ ] ? > DevicePublicKeyAuthenticationAsync (
238- List < byte [ ] > storedDevicePublicKeys ,
238+ IReadOnlyList < byte [ ] > storedDevicePublicKeys ,
239239 AuthenticationExtensionsClientOutputs clientExtensionResults ,
240240 AuthenticatorData authData ,
241241 byte [ ] hash )
@@ -320,7 +320,7 @@ public async Task<VerifyAssertionResult> VerifyAsync(
320320 List < DevicePublicKeyAuthenticatorOutput > matchedDpkKeys = new ( ) ;
321321
322322 // For each dpkRecord in credentialRecord.devicePubKeys
323- storedDevicePublicKeys . ForEach ( storedDevicePublicKey =>
323+ foreach ( var storedDevicePublicKey in storedDevicePublicKeys )
324324 {
325325 var dpkRecord = DevicePublicKeyAuthenticatorOutput . Parse ( storedDevicePublicKey ) ;
326326
@@ -330,7 +330,7 @@ public async Task<VerifyAssertionResult> VerifyAsync(
330330 // Append dpkRecord to matchedDpkKeys.
331331 matchedDpkKeys . Add ( dpkRecord ) ;
332332 }
333- } ) ;
333+ }
334334
335335 // If matchedDpkKeys is empty
336336 if ( matchedDpkKeys . Count == 0 )
0 commit comments