@@ -57,7 +57,7 @@ public async Task<VerifyAssertionResult> VerifyAsync(
57
57
AssertionOptions options ,
58
58
Fido2Configuration config ,
59
59
byte [ ] storedPublicKey ,
60
- List < byte [ ] > storedDevicePublicKeys ,
60
+ IReadOnlyList < byte [ ] > storedDevicePublicKeys ,
61
61
uint storedSignatureCounter ,
62
62
IsUserHandleOwnerOfCredentialIdAsync isUserHandleOwnerOfCredId ,
63
63
IMetadataService ? metadataService ,
@@ -235,7 +235,7 @@ public async Task<VerifyAssertionResult> VerifyAsync(
235
235
/// <param name="hash"></param>
236
236
/// </summary>
237
237
private static async ValueTask < byte [ ] ? > DevicePublicKeyAuthenticationAsync (
238
- List < byte [ ] > storedDevicePublicKeys ,
238
+ IReadOnlyList < byte [ ] > storedDevicePublicKeys ,
239
239
AuthenticationExtensionsClientOutputs clientExtensionResults ,
240
240
AuthenticatorData authData ,
241
241
byte [ ] hash )
@@ -320,7 +320,7 @@ public async Task<VerifyAssertionResult> VerifyAsync(
320
320
List < DevicePublicKeyAuthenticatorOutput > matchedDpkKeys = new ( ) ;
321
321
322
322
// For each dpkRecord in credentialRecord.devicePubKeys
323
- storedDevicePublicKeys . ForEach ( storedDevicePublicKey =>
323
+ foreach ( var storedDevicePublicKey in storedDevicePublicKeys )
324
324
{
325
325
var dpkRecord = DevicePublicKeyAuthenticatorOutput . Parse ( storedDevicePublicKey ) ;
326
326
@@ -330,7 +330,7 @@ public async Task<VerifyAssertionResult> VerifyAsync(
330
330
// Append dpkRecord to matchedDpkKeys.
331
331
matchedDpkKeys . Add ( dpkRecord ) ;
332
332
}
333
- } ) ;
333
+ }
334
334
335
335
// If matchedDpkKeys is empty
336
336
if ( matchedDpkKeys . Count == 0 )
0 commit comments