Yubico / Yubico.NET.SDK

A YubiKey SDK for .NET developers
Apache License 2.0
96 stars 48 forks source link

Fix: Update ManagementKeyAlgorithm on PIV Application reset #105

Closed DennisDyallo closed 1 week ago

DennisDyallo commented 2 weeks ago

Description

This fix addresses a situation in which the ManagementKeyAlgorithm used to authenticate to the Yubikey could be wrong after an Piv application reset, by updating the ManagementKeyAlgorithm on reset.

Fixes # YESDK-1342

Type of change

Please delete options that are not relevant.

How has this been tested?

Added integrationtests

Test configuration:

Checklist:

github-actions[bot] commented 2 weeks ago

Test Results: Windows

    2 files      2 suites   4s :stopwatch: 3 700 tests 3 700 :white_check_mark: 0 :zzz: 0 :x: 3 702 runs  3 702 :white_check_mark: 0 :zzz: 0 :x:

Results for commit 14be2e45.

github-actions[bot] commented 2 weeks ago

Test Results: Ubuntu

    2 files      2 suites   9s :stopwatch: 3 692 tests 3 692 :white_check_mark: 0 :zzz: 0 :x: 3 694 runs  3 694 :white_check_mark: 0 :zzz: 0 :x:

Results for commit 14be2e45.

github-actions[bot] commented 2 weeks ago

Code Coverage

Package Line Rate Branch Rate Complexity Health
Yubico.Core 42% 31% 4257
Yubico.YubiKey 51% 47% 18825
Summary 49% (31966 / 65160) 45% (8176 / 18318) 23082

Minimum allowed line rate is 40%

github-actions[bot] commented 2 weeks ago

Test Results: MacOS

    2 files      2 suites   4s :stopwatch: 3 692 tests 3 692 :white_check_mark: 0 :zzz: 0 :x: 3 694 runs  3 694 :white_check_mark: 0 :zzz: 0 :x:

Results for commit 14be2e45.