From 1c1897ad3ae41eee1c81e1ea861e2dcbeec7ccc3 Mon Sep 17 00:00:00 2001 From: Dennis Dyall Date: Wed, 7 Aug 2024 23:48:27 +0200 Subject: [PATCH 1/5] Removed unused usings in UnitTests project --- .../Yubico/YubiKey/Piv/BioMultiProtocolTests.cs | 3 --- .../Yubico/YubiKey/Cryptography/AesCmacLongKeyTests.cs | 1 - .../unit/Yubico/YubiKey/Cryptography/AesCmacTests.cs | 1 - .../Yubico/YubiKey/Cryptography/RsaFormatNegativeTests.cs | 1 - .../unit/Yubico/YubiKey/Fido2/CredentialDataTests.cs | 8 -------- .../tests/unit/Yubico/YubiKey/Fido2/Fido2InfoTests.cs | 1 - .../unit/Yubico/YubiKey/Fido2/GetAssertionDataTests.cs | 1 - .../Yubico/YubiKey/Fido2/PinProtocols/Protocol1Tests.cs | 2 -- .../Yubico/YubiKey/Fido2/PinProtocols/Protocol2Tests.cs | 2 -- .../Oath/Commands/CalculateAllCredentialsCommandTests.cs | 2 -- .../Oath/Commands/CalculateCredentialCommandTests.cs | 2 -- .../YubiKey/Oath/Commands/SetPasswordCommandTests.cs | 2 -- .../Yubico/YubiKey/Oath/Commands/ValidateCommandTests.cs | 2 -- .../Yubico/YubiKey/Oath/Commands/ValidateResponseTests.cs | 3 --- .../Otp/Commands/ChallengeResponseResponseTests.cs | 1 - .../YubiKey/Otp/Commands/ReadNdefDataResponseTests.cs | 1 - .../tests/unit/Yubico/YubiKey/Otp/ExtendedFlagsTests.cs | 1 - .../tests/unit/Yubico/YubiKey/Otp/TicketFlagsTests.cs | 1 - .../YubiKey/Pipelines/CommandChainingTransformTests.cs | 1 - .../Yubico/YubiKey/Piv/Commands/DecryptCommandTests.cs | 1 - .../Yubico/YubiKey/Piv/Commands/GenPairResponseTests.cs | 1 - .../Yubico/YubiKey/Piv/Commands/GetDataResponseTests.cs | 1 - .../Yubico/YubiKey/Piv/Commands/ImportKeyResponseTests.cs | 2 -- .../YubiKey/Piv/Commands/PivCommandResponseTestData.cs | 2 -- .../tests/unit/Yubico/YubiKey/Piv/Objects/AdminTests.cs | 2 -- .../unit/Yubico/YubiKey/Piv/Objects/PinProtectedTests.cs | 1 - .../tests/unit/Yubico/YubiKey/Piv/PivAlgorithmTests.cs | 3 --- .../tests/unit/Yubico/YubiKey/Piv/PivDataTagTests.cs | 1 - .../tests/unit/Yubico/YubiKey/Piv/PivPinUtilTests.cs | 1 - .../tests/unit/Yubico/YubiKey/Piv/PivPrivateKeyTests.cs | 1 - .../tests/unit/Yubico/YubiKey/Piv/PivSessionAuthTests.cs | 1 - .../unit/Yubico/YubiKey/Piv/PivSessionMsrootsTests.cs | 1 - .../tests/unit/Yubico/YubiKey/U2f/AuthDataTests.cs | 6 ------ .../YubiKey/U2f/Commands/AuthenticateCommandTests.cs | 1 - .../YubiKey/U2f/Commands/AuthenticateResponseTests.cs | 4 ---- .../Yubico/YubiKey/U2f/Commands/RegisterResponseTests.cs | 1 - .../unit/Yubico/YubiKey/U2f/RegistrationDataTests.cs | 4 ---- .../YubiHsmAuth/Aes128CredentialWithSecretsTests.cs | 1 - .../YubiHsmAuth/Commands/AddCredentialCommandTests.cs | 1 - .../YubiHsmAuth/Commands/AddCredentialResponseTests.cs | 3 --- .../YubiHsmAuth/Commands/BaseYubiHsmAuthResponseTests.cs | 1 - .../Commands/BaseYubiHsmAuthResponseWithRetriesTests.cs | 1 - .../Commands/GetAes128SessionKeysResponseTests.cs | 1 - .../Commands/GetApplicationVersionCommandTests.cs | 1 - .../Commands/GetManagementKeyRetriesCommandTests.cs | 2 -- .../Commands/GetManagementKeyRetriesResponseTests.cs | 2 -- .../YubiHsmAuth/Commands/ListCredentialsCommandTests.cs | 1 - .../YubiHsmAuth/Commands/ResetApplicationCommandTests.cs | 1 - .../YubiKey/YubiHsmAuth/CredentialWithSecretsTests.cs | 1 - 49 files changed, 86 deletions(-) diff --git a/Yubico.YubiKey/tests/integration/Yubico/YubiKey/Piv/BioMultiProtocolTests.cs b/Yubico.YubiKey/tests/integration/Yubico/YubiKey/Piv/BioMultiProtocolTests.cs index 71f25c3f..292278de 100644 --- a/Yubico.YubiKey/tests/integration/Yubico/YubiKey/Piv/BioMultiProtocolTests.cs +++ b/Yubico.YubiKey/tests/integration/Yubico/YubiKey/Piv/BioMultiProtocolTests.cs @@ -13,11 +13,8 @@ // limitations under the License. using System; -using System.Linq; -using System.Runtime.CompilerServices; using System.Text; using Xunit; -using Yubico.PlatformInterop; using Yubico.YubiKey.Piv.Commands; using Yubico.YubiKey.TestUtilities; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/AesCmacLongKeyTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/AesCmacLongKeyTests.cs index 2942184a..f6425f61 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/AesCmacLongKeyTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/AesCmacLongKeyTests.cs @@ -15,7 +15,6 @@ using System; using Xunit; using Yubico.Core.Cryptography; -using Yubico.PlatformInterop; namespace Yubico.YubiKey.Cryptography { diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/AesCmacTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/AesCmacTests.cs index 4e0cdfe4..6c6b0d52 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/AesCmacTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/AesCmacTests.cs @@ -16,7 +16,6 @@ using Xunit; using Yubico.Core.Buffers; using Yubico.Core.Cryptography; -using Yubico.PlatformInterop; namespace Yubico.YubiKey.Cryptography { diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/RsaFormatNegativeTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/RsaFormatNegativeTests.cs index 39b6b6d1..cdeb8e93 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/RsaFormatNegativeTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Cryptography/RsaFormatNegativeTests.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Linq; using System.Security.Cryptography; using Xunit; using Yubico.YubiKey.TestUtilities; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/CredentialDataTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/CredentialDataTests.cs index 4bf3fedf..84c8f4a6 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/CredentialDataTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/CredentialDataTests.cs @@ -12,15 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Security.Cryptography; -using System.Security.Cryptography.X509Certificates; using Xunit; -using Yubico.Core.Tlv; -using Yubico.YubiKey.Cryptography; -using Yubico.YubiKey.Fido2.Commands; -using Yubico.YubiKey.Fido2.Cose; -using Yubico.YubiKey.Piv; namespace Yubico.YubiKey.Fido2 { diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/Fido2InfoTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/Fido2InfoTests.cs index 2e1992c4..ae79fdf5 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/Fido2InfoTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/Fido2InfoTests.cs @@ -16,7 +16,6 @@ using System.Collections.Generic; using System.Linq; using Xunit; -using Yubico.YubiKey.Fido2.Commands; using Yubico.YubiKey.Fido2.Cose; using Yubico.YubiKey.Fido2.PinProtocols; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/GetAssertionDataTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/GetAssertionDataTests.cs index 3aeb0a0c..fb56e2bc 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/GetAssertionDataTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/GetAssertionDataTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Xunit; using Yubico.YubiKey.Fido2.Cose; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/PinProtocols/Protocol1Tests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/PinProtocols/Protocol1Tests.cs index cf32a0c0..5726c3ab 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/PinProtocols/Protocol1Tests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/PinProtocols/Protocol1Tests.cs @@ -13,9 +13,7 @@ // limitations under the License. using System; -using System.Collections.ObjectModel; using Xunit; -using Yubico.YubiKey.Fido2.Commands; using Yubico.YubiKey.Fido2.Cose; namespace Yubico.YubiKey.Fido2.PinProtocols diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/PinProtocols/Protocol2Tests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/PinProtocols/Protocol2Tests.cs index a42955af..97c5cc41 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/PinProtocols/Protocol2Tests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/PinProtocols/Protocol2Tests.cs @@ -13,9 +13,7 @@ // limitations under the License. using System; -using System.Collections.ObjectModel; using Xunit; -using Yubico.YubiKey.Fido2.Commands; using Yubico.YubiKey.Fido2.Cose; namespace Yubico.YubiKey.Fido2.PinProtocols diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/CalculateAllCredentialsCommandTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/CalculateAllCredentialsCommandTests.cs index 54ecdcdd..27ed52d6 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/CalculateAllCredentialsCommandTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/CalculateAllCredentialsCommandTests.cs @@ -15,10 +15,8 @@ using System; using System.Buffers.Binary; using System.Linq; -using System.Security.Cryptography; using Xunit; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Cryptography; using Yubico.YubiKey.TestUtilities; namespace Yubico.YubiKey.Oath.Commands diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/CalculateCredentialCommandTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/CalculateCredentialCommandTests.cs index 0699cfac..5c50f5bb 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/CalculateCredentialCommandTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/CalculateCredentialCommandTests.cs @@ -15,10 +15,8 @@ using System; using System.Buffers.Binary; using System.Linq; -using System.Security.Cryptography; using Xunit; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Cryptography; using Yubico.YubiKey.TestUtilities; namespace Yubico.YubiKey.Oath.Commands diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/SetPasswordCommandTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/SetPasswordCommandTests.cs index ad0095f3..b4e4127d 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/SetPasswordCommandTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/SetPasswordCommandTests.cs @@ -14,11 +14,9 @@ using System; using System.Collections.Generic; -using System.Security.Cryptography; using System.Text; using Xunit; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Cryptography; using Yubico.YubiKey.TestUtilities; namespace Yubico.YubiKey.Oath.Commands diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/ValidateCommandTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/ValidateCommandTests.cs index af7d765e..d7ff0a69 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/ValidateCommandTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/ValidateCommandTests.cs @@ -13,11 +13,9 @@ // limitations under the License. using System; -using System.Security.Cryptography; using System.Text; using Xunit; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Cryptography; using Yubico.YubiKey.TestUtilities; namespace Yubico.YubiKey.Oath.Commands diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/ValidateResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/ValidateResponseTests.cs index d4694fac..6d064843 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/ValidateResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Oath/Commands/ValidateResponseTests.cs @@ -13,12 +13,9 @@ // limitations under the License. using System; -using System.Collections.Generic; -using System.Security.Cryptography; using System.Text; using Xunit; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Cryptography; using Yubico.YubiKey.TestUtilities; namespace Yubico.YubiKey.Oath.Commands diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/Commands/ChallengeResponseResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/Commands/ChallengeResponseResponseTests.cs index 18b7c7be..969dc01c 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/Commands/ChallengeResponseResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/Commands/ChallengeResponseResponseTests.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using System.Linq; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/Commands/ReadNdefDataResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/Commands/ReadNdefDataResponseTests.cs index 372c5cc2..01081651 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/Commands/ReadNdefDataResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/Commands/ReadNdefDataResponseTests.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/ExtendedFlagsTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/ExtendedFlagsTests.cs index f9521f62..df5eb58c 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/ExtendedFlagsTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/ExtendedFlagsTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Xunit; namespace Yubico.YubiKey.Otp diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/TicketFlagsTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/TicketFlagsTests.cs index a0fffb2e..1f4ecdc1 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/TicketFlagsTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Otp/TicketFlagsTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Xunit; namespace Yubico.YubiKey.Otp diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Pipelines/CommandChainingTransformTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Pipelines/CommandChainingTransformTests.cs index 53acf898..c4ebb4e4 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Pipelines/CommandChainingTransformTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Pipelines/CommandChainingTransformTests.cs @@ -15,7 +15,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; using Moq; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/DecryptCommandTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/DecryptCommandTests.cs index 06ed4b05..f000cfce 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/DecryptCommandTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/DecryptCommandTests.cs @@ -14,7 +14,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/GenPairResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/GenPairResponseTests.cs index dbba8546..e8ea1d2b 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/GenPairResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/GenPairResponseTests.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Linq; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/GetDataResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/GetDataResponseTests.cs index 8fec458d..9a615750 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/GetDataResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/GetDataResponseTests.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Linq; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/ImportKeyResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/ImportKeyResponseTests.cs index e0bcd754..b635430e 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/ImportKeyResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/ImportKeyResponseTests.cs @@ -13,8 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; -using System.Linq; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/PivCommandResponseTestData.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/PivCommandResponseTestData.cs index 22f7ca0c..ae2eb8c7 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/PivCommandResponseTestData.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Commands/PivCommandResponseTestData.cs @@ -12,10 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using System.Collections.Generic; using System.Security.Cryptography; -using Yubico.Core.Buffers; using Yubico.Core.Tlv; using Yubico.YubiKey.TestUtilities; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Objects/AdminTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Objects/AdminTests.cs index 809b63a2..c456067d 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Objects/AdminTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Objects/AdminTests.cs @@ -13,9 +13,7 @@ // limitations under the License. using System; -using System.Security.Cryptography; using Xunit; -using Yubico.YubiKey.TestUtilities; namespace Yubico.YubiKey.Piv.Objects { diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Objects/PinProtectedTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Objects/PinProtectedTests.cs index 181230f7..f3f2e1fb 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Objects/PinProtectedTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/Objects/PinProtectedTests.cs @@ -14,7 +14,6 @@ using System; using Xunit; -using Yubico.YubiKey.TestUtilities; namespace Yubico.YubiKey.Piv.Objects { diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivAlgorithmTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivAlgorithmTests.cs index f780ea88..dc00305e 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivAlgorithmTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivAlgorithmTests.cs @@ -12,9 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Linq; using Xunit; namespace Yubico.YubiKey.Piv diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivDataTagTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivDataTagTests.cs index af1910e8..25410667 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivDataTagTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivDataTagTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Xunit; using Yubico.YubiKey.Piv.Commands; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivPinUtilTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivPinUtilTests.cs index 74247484..ec9a1327 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivPinUtilTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivPinUtilTests.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivPrivateKeyTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivPrivateKeyTests.cs index 3db698fe..0ea52199 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivPrivateKeyTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivPrivateKeyTests.cs @@ -15,7 +15,6 @@ using System; using System.Security.Cryptography; using Xunit; -using Yubico.Core.Buffers; using Yubico.YubiKey.TestUtilities; namespace Yubico.YubiKey.Piv diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivSessionAuthTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivSessionAuthTests.cs index c15180d5..27b5bdd0 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivSessionAuthTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivSessionAuthTests.cs @@ -14,7 +14,6 @@ using System; using Xunit; -using Yubico.YubiKey.Cryptography; using Yubico.YubiKey.TestUtilities; namespace Yubico.YubiKey.Piv diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivSessionMsrootsTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivSessionMsrootsTests.cs index adb7cd89..24dad552 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivSessionMsrootsTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/Piv/PivSessionMsrootsTests.cs @@ -15,7 +15,6 @@ using System; using System.IO; using Xunit; -using Yubico.YubiKey.Cryptography; using Yubico.YubiKey.TestUtilities; namespace Yubico.YubiKey.Piv diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/AuthDataTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/AuthDataTests.cs index 490a17dd..1690e17f 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/AuthDataTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/AuthDataTests.cs @@ -13,13 +13,7 @@ // limitations under the License. using System; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Security.Cryptography; -using System.Security.Cryptography.X509Certificates; using Xunit; -using Yubico.Core.Buffers; -using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f { diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/AuthenticateCommandTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/AuthenticateCommandTests.cs index 3aead46c..7d1a9401 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/AuthenticateCommandTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/AuthenticateCommandTests.cs @@ -14,7 +14,6 @@ using System; using Xunit; -using Yubico.Core.Buffers; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f.Commands diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/AuthenticateResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/AuthenticateResponseTests.cs index 9f1625d9..6fc67478 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/AuthenticateResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/AuthenticateResponseTests.cs @@ -13,11 +13,7 @@ // limitations under the License. using System; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Security.Cryptography; using Xunit; -using Yubico.Core.Buffers; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f.Commands diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/RegisterResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/RegisterResponseTests.cs index c5065247..6298edb3 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/RegisterResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/Commands/RegisterResponseTests.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Security.Cryptography; using Xunit; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/RegistrationDataTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/RegistrationDataTests.cs index a5e47bcd..ef834da2 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/RegistrationDataTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/U2f/RegistrationDataTests.cs @@ -13,13 +13,9 @@ // limitations under the License. using System; -using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Security.Cryptography; -using System.Security.Cryptography.X509Certificates; using Xunit; using Yubico.Core.Buffers; -using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f { diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Aes128CredentialWithSecretsTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Aes128CredentialWithSecretsTests.cs index 7471c443..76e39d05 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Aes128CredentialWithSecretsTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Aes128CredentialWithSecretsTests.cs @@ -14,7 +14,6 @@ using System; using Xunit; -using Yubico.Core.Tlv; namespace Yubico.YubiKey.YubiHsmAuth { diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/AddCredentialCommandTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/AddCredentialCommandTests.cs index ddd4f4b4..d5df2033 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/AddCredentialCommandTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/AddCredentialCommandTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using System.Text; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/AddCredentialResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/AddCredentialResponseTests.cs index e76724fc..b7fed25d 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/AddCredentialResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/AddCredentialResponseTests.cs @@ -12,9 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Text; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponseTests.cs index 01836a64..e722c01b 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponseTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponseWithRetriesTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponseWithRetriesTests.cs index e7db857c..01a46426 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponseWithRetriesTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponseWithRetriesTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysResponseTests.cs index c087fb95..87adb33a 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysResponseTests.cs @@ -15,7 +15,6 @@ using System; using Xunit; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Scp03; namespace Yubico.YubiKey.YubiHsmAuth.Commands { diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetApplicationVersionCommandTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetApplicationVersionCommandTests.cs index e6be5c69..f6455a43 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetApplicationVersionCommandTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetApplicationVersionCommandTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesCommandTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesCommandTests.cs index 378fd28e..851aa9e8 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesCommandTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesCommandTests.cs @@ -12,10 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Xunit; using Yubico.Core.Iso7816; -using Yubico.Core.Tlv; namespace Yubico.YubiKey.YubiHsmAuth.Commands { diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesResponseTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesResponseTests.cs index 15858648..36466b3b 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesResponseTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesResponseTests.cs @@ -13,8 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; -using System.Text; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/ListCredentialsCommandTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/ListCredentialsCommandTests.cs index 055ec207..0bcacb2c 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/ListCredentialsCommandTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/ListCredentialsCommandTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationCommandTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationCommandTests.cs index 254857f2..baeaeb61 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationCommandTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationCommandTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Xunit; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/CredentialWithSecretsTests.cs b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/CredentialWithSecretsTests.cs index e3c20238..7012764e 100644 --- a/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/CredentialWithSecretsTests.cs +++ b/Yubico.YubiKey/tests/unit/Yubico/YubiKey/YubiHsmAuth/CredentialWithSecretsTests.cs @@ -14,7 +14,6 @@ using System; using Xunit; -using Yubico.Core.Tlv; namespace Yubico.YubiKey.YubiHsmAuth { From e24b2b3122a7bc6ccb6cd60cda2db1c0ed66d0e4 Mon Sep 17 00:00:00 2001 From: Dennis Dyall Date: Wed, 7 Aug 2024 23:49:13 +0200 Subject: [PATCH 2/5] Removed unused usings in Core --- .../src/Yubico/Core/Cryptography/CmacPrimitivesOpenSsl.cs | 1 - Yubico.Core/src/Yubico/Core/Cryptography/ICmacPrimitives.cs | 1 - Yubico.Core/src/Yubico/Core/Iso7816/CommandApdu.cs | 2 -- Yubico.Core/src/Yubico/Core/Tlv/TlvEncoder.cs | 1 - .../src/Yubico/PlatformInterop/Linux/Udev/LinuxUdevScan.cs | 1 - 5 files changed, 6 deletions(-) diff --git a/Yubico.Core/src/Yubico/Core/Cryptography/CmacPrimitivesOpenSsl.cs b/Yubico.Core/src/Yubico/Core/Cryptography/CmacPrimitivesOpenSsl.cs index 94f88c04..57c6211a 100644 --- a/Yubico.Core/src/Yubico/Core/Cryptography/CmacPrimitivesOpenSsl.cs +++ b/Yubico.Core/src/Yubico/Core/Cryptography/CmacPrimitivesOpenSsl.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Runtime.InteropServices; using System.Security; using System.Security.Cryptography; using Yubico.PlatformInterop; diff --git a/Yubico.Core/src/Yubico/Core/Cryptography/ICmacPrimitives.cs b/Yubico.Core/src/Yubico/Core/Cryptography/ICmacPrimitives.cs index b5ba72b3..0e824ff5 100644 --- a/Yubico.Core/src/Yubico/Core/Cryptography/ICmacPrimitives.cs +++ b/Yubico.Core/src/Yubico/Core/Cryptography/ICmacPrimitives.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using Yubico.PlatformInterop; namespace Yubico.Core.Cryptography { diff --git a/Yubico.Core/src/Yubico/Core/Iso7816/CommandApdu.cs b/Yubico.Core/src/Yubico/Core/Iso7816/CommandApdu.cs index a0b05ebb..38813350 100644 --- a/Yubico.Core/src/Yubico/Core/Iso7816/CommandApdu.cs +++ b/Yubico.Core/src/Yubico/Core/Iso7816/CommandApdu.cs @@ -14,10 +14,8 @@ using System; using System.Buffers.Binary; -using System.Collections.Generic; using System.Globalization; using System.IO; -using System.Linq; namespace Yubico.Core.Iso7816 { diff --git a/Yubico.Core/src/Yubico/Core/Tlv/TlvEncoder.cs b/Yubico.Core/src/Yubico/Core/Tlv/TlvEncoder.cs index df76c017..c900cd10 100644 --- a/Yubico.Core/src/Yubico/Core/Tlv/TlvEncoder.cs +++ b/Yubico.Core/src/Yubico/Core/Tlv/TlvEncoder.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; namespace Yubico.Core.Tlv { diff --git a/Yubico.Core/src/Yubico/PlatformInterop/Linux/Udev/LinuxUdevScan.cs b/Yubico.Core/src/Yubico/PlatformInterop/Linux/Udev/LinuxUdevScan.cs index 1dd35eeb..8a41e72c 100644 --- a/Yubico.Core/src/Yubico/PlatformInterop/Linux/Udev/LinuxUdevScan.cs +++ b/Yubico.Core/src/Yubico/PlatformInterop/Linux/Udev/LinuxUdevScan.cs @@ -15,7 +15,6 @@ using System; using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Text; using Yubico.Core.Devices.Hid; namespace Yubico.PlatformInterop From f64791c6b86c99c8dbb80a8a0f54703ff498635b Mon Sep 17 00:00:00 2001 From: Dennis Dyall Date: Wed, 7 Aug 2024 23:50:30 +0200 Subject: [PATCH 3/5] Removed unused usings: Core.UnitTests --- Yubico.Core/tests/Yubico/Core/Buffers/Base16Tests.cs | 1 - Yubico.Core/tests/Yubico/Core/Buffers/ModHexTests.cs | 1 - .../tests/Yubico/Core/Cryptography/CryptoSupport.cs | 2 -- .../tests/Yubico/Core/Cryptography/GenerateKeyPairTests.cs | 1 - .../tests/Yubico/Core/Devices/Hid/HidConnectionTests.cs | 7 ------- .../tests/Yubico/Core/Devices/Hid/HidDeviceTests.cs | 3 --- 6 files changed, 15 deletions(-) diff --git a/Yubico.Core/tests/Yubico/Core/Buffers/Base16Tests.cs b/Yubico.Core/tests/Yubico/Core/Buffers/Base16Tests.cs index bbbe7c6a..4c3dc008 100644 --- a/Yubico.Core/tests/Yubico/Core/Buffers/Base16Tests.cs +++ b/Yubico.Core/tests/Yubico/Core/Buffers/Base16Tests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using System.Linq; using Xunit; diff --git a/Yubico.Core/tests/Yubico/Core/Buffers/ModHexTests.cs b/Yubico.Core/tests/Yubico/Core/Buffers/ModHexTests.cs index 1b58f8aa..d1180c39 100644 --- a/Yubico.Core/tests/Yubico/Core/Buffers/ModHexTests.cs +++ b/Yubico.Core/tests/Yubico/Core/Buffers/ModHexTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using System.Linq; using Xunit; diff --git a/Yubico.Core/tests/Yubico/Core/Cryptography/CryptoSupport.cs b/Yubico.Core/tests/Yubico/Core/Cryptography/CryptoSupport.cs index f558de01..247f8889 100644 --- a/Yubico.Core/tests/Yubico/Core/Cryptography/CryptoSupport.cs +++ b/Yubico.Core/tests/Yubico/Core/Cryptography/CryptoSupport.cs @@ -12,9 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using System.Security.Cryptography; -using Xunit; namespace Yubico.Core.Cryptography { diff --git a/Yubico.Core/tests/Yubico/Core/Cryptography/GenerateKeyPairTests.cs b/Yubico.Core/tests/Yubico/Core/Cryptography/GenerateKeyPairTests.cs index 446c8f5d..ff90c6b2 100644 --- a/Yubico.Core/tests/Yubico/Core/Cryptography/GenerateKeyPairTests.cs +++ b/Yubico.Core/tests/Yubico/Core/Cryptography/GenerateKeyPairTests.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using System.Security.Cryptography; using Xunit; diff --git a/Yubico.Core/tests/Yubico/Core/Devices/Hid/HidConnectionTests.cs b/Yubico.Core/tests/Yubico/Core/Devices/Hid/HidConnectionTests.cs index ce007f7f..f928abf4 100644 --- a/Yubico.Core/tests/Yubico/Core/Devices/Hid/HidConnectionTests.cs +++ b/Yubico.Core/tests/Yubico/Core/Devices/Hid/HidConnectionTests.cs @@ -12,13 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Linq; -using Moq; -using Xunit; -using Yubico.Core.Buffers; -using Yubico.PlatformInterop; - namespace Yubico.Core.Devices.Hid.UnitTests { diff --git a/Yubico.Core/tests/Yubico/Core/Devices/Hid/HidDeviceTests.cs b/Yubico.Core/tests/Yubico/Core/Devices/Hid/HidDeviceTests.cs index 2dc2430a..47d8bc9f 100644 --- a/Yubico.Core/tests/Yubico/Core/Devices/Hid/HidDeviceTests.cs +++ b/Yubico.Core/tests/Yubico/Core/Devices/Hid/HidDeviceTests.cs @@ -12,9 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using Xunit; - namespace Yubico.Core.Devices.Hid.UnitTests { From 186fe7862b40d2118b80bc2336481d501cf5168b Mon Sep 17 00:00:00 2001 From: Dennis Dyall Date: Wed, 7 Aug 2024 23:51:38 +0200 Subject: [PATCH 4/5] Removed unused usings: Yubico.Yubikey --- .../src/Yubico/YubiKey/Fido2/AuthenticatorTransports.cs | 6 ------ .../YubiKey/Fido2/Commands/BioEnrollBeginResponse.cs | 1 - .../src/Yubico/YubiKey/Fido2/Commands/ConfigResponse.cs | 1 - .../Fido2/Commands/EnableEnterpriseAttestationCommand.cs | 1 - .../Fido2/Commands/EnumerateCredentialsGetNextResponse.cs | 1 - .../YubiKey/Fido2/Commands/EnumerateRpsGetNextResponse.cs | 1 - .../Yubico/YubiKey/Fido2/Commands/GetAssertionCommand.cs | 1 - .../YubiKey/Fido2/Commands/GetBioModalityResponse.cs | 1 - .../Fido2/Commands/GetFingerprintSensorInfoResponse.cs | 1 - .../YubiKey/Fido2/Commands/GetNextAssertionCommand.cs | 2 -- .../YubiKey/Fido2/Commands/MakeCredentialCommand.cs | 1 - .../src/Yubico/YubiKey/Fido2/Commands/RequirementValue.cs | 8 -------- .../src/Yubico/YubiKey/Fido2/Commands/ResetResponse.cs | 1 - .../Yubico/YubiKey/Fido2/Commands/SetLargeBlobResponse.cs | 2 -- .../YubiKey/Fido2/Commands/ToggleAlwaysUvCommand.cs | 1 - Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Cose/CoseKey.cs | 1 - Yubico.YubiKey/src/Yubico/YubiKey/Fido2/CredentialId.cs | 1 - .../Yubico/YubiKey/Fido2/Fido2Session.BioEnrollment.cs | 2 -- Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Fido2Session.cs | 1 - .../YubiKey/Fido2/GetAssertionParameters.Extensions.cs | 1 - Yubico.YubiKey/src/Yubico/YubiKey/Fido2/OptionValue.cs | 8 -------- .../src/Yubico/YubiKey/Fido2/ParameterHelpers.cs | 1 - .../YubiKey/Fido2/PinProtocols/PinUvAuthProtocolOne.cs | 1 - .../YubiKey/Fido2/PinProtocols/PinUvAuthProtocolTwo.cs | 1 - .../src/Yubico/YubiKey/Fido2/SerializedLargeBlobArray.cs | 1 - Yubico.YubiKey/src/Yubico/YubiKey/Fido2/UserEntity.cs | 2 -- Yubico.YubiKey/src/Yubico/YubiKey/ICancelApduTransform.cs | 2 -- Yubico.YubiKey/src/Yubico/YubiKey/ICancelConnection.cs | 2 -- .../src/Yubico/YubiKey/ImageProcessorVersion.cs | 3 --- .../Commands/BaseSelectApplicationCommand.cs | 2 -- .../Commands/GenericSelectApplicationData.cs | 2 -- .../InterIndustry/Commands/GenericSelectResponse.cs | 2 -- .../InterIndustry/Commands/ISelectApplicationCommand.cs | 4 ---- .../InterIndustry/Commands/ISelectApplicationData.cs | 2 -- .../InterIndustry/Commands/ISelectApplicationResponse.cs | 4 ---- .../InterIndustry/Commands/SelectApplicationCommand.cs | 1 - Yubico.YubiKey/src/Yubico/YubiKey/KeyboardReport.cs | 1 - .../YubiKey/Management/Commands/DeviceResetCommand.cs | 1 - .../YubiKey/Management/Commands/DeviceResetResponse.cs | 1 - .../Oath/Commands/CalculateAllCredentialsCommand.cs | 1 - .../Oath/Commands/OathChallengeResponseBaseCommand.cs | 1 - Yubico.YubiKey/src/Yubico/YubiKey/Oath/CredentialType.cs | 2 -- .../src/Yubico/YubiKey/Oath/OathSession.Credential.cs | 1 - .../src/Yubico/YubiKey/Pipelines/FidoTransform.cs | 1 - .../YubiKey/Piv/Commands/AuthenticateKeyAgreeCommand.cs | 1 - .../YubiKey/Piv/Commands/ChangeReferenceDataCommand.cs | 1 - .../Yubico/YubiKey/Piv/Commands/GetBioMetadataCommand.cs | 2 -- .../YubiKey/Piv/Commands/GetSerialNumberResponse.cs | 1 - .../YubiKey/Piv/Commands/ISymmetricForManagementKey.cs | 3 --- .../InitializeAuthenticateManagementKeyCommand.cs | 2 -- .../src/Yubico/YubiKey/Piv/Commands/PivResponse.cs | 1 - .../YubiKey/Piv/Commands/SetManagementKeyResponse.cs | 1 - .../src/Yubico/YubiKey/Piv/Commands/VerifyPinCommand.cs | 1 - .../YubiKey/Piv/Commands/VerifyTemporaryPinCommand.cs | 1 - .../YubiKey/Piv/Commands/VerifyTemporaryPinResponse.cs | 2 -- .../src/Yubico/YubiKey/Piv/Commands/VerifyUvCommand.cs | 1 - Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivBioMetadata.cs | 1 - Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivPinPolicy.cs | 2 -- Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivTouchPolicy.cs | 2 -- .../src/Yubico/YubiKey/Scp03/Commands/DeleteKeyCommand.cs | 2 -- Yubico.YubiKey/src/Yubico/YubiKey/Scp03/Derivation.cs | 1 - .../src/Yubico/YubiKey/TemplateStorageVersion.cs | 3 --- .../Yubico/YubiKey/U2f/Commands/AuthenticateCommand.cs | 1 - .../Yubico/YubiKey/U2f/Commands/AuthenticateResponse.cs | 2 -- .../src/Yubico/YubiKey/U2f/Commands/RegisterCommand.cs | 1 - .../src/Yubico/YubiKey/U2f/Commands/ResetResponse.cs | 1 - .../src/Yubico/YubiKey/U2f/Commands/SetPinCommand.cs | 1 - .../src/Yubico/YubiKey/U2f/Commands/SetPinResponse.cs | 1 - .../src/Yubico/YubiKey/U2f/Commands/VerifyPinCommand.cs | 1 - .../src/Yubico/YubiKey/U2f/Commands/VerifyPinResponse.cs | 1 - Yubico.YubiKey/src/Yubico/YubiKey/U2f/U2fBuffer.cs | 1 - Yubico.YubiKey/src/Yubico/YubiKey/U2f/U2fSignedData.cs | 1 - .../YubiKey/YubiHsmAuth/Aes128CredentialWithSecrets.cs | 1 - .../src/Yubico/YubiKey/YubiHsmAuth/ApplicationVersion.cs | 2 -- .../YubiHsmAuth/Commands/BaseYubiHsmAuthResponse.cs | 3 --- .../YubiHsmAuth/Commands/ChangeManagementKeyResponse.cs | 1 - .../YubiHsmAuth/Commands/GetAes128SessionKeysCommand.cs | 1 - .../YubiHsmAuth/Commands/GetAes128SessionKeysResponse.cs | 1 - .../YubiHsmAuth/Commands/GetApplicationVersionCommand.cs | 1 - .../Commands/GetManagementKeyRetriesCommand.cs | 1 - .../YubiHsmAuth/Commands/ListCredentialsCommand.cs | 1 - .../YubiHsmAuth/Commands/ResetApplicationCommand.cs | 1 - .../YubiHsmAuth/Commands/ResetApplicationResponse.cs | 1 - .../src/Yubico/YubiKey/YubiHsmAuth/Credential.cs | 1 - .../src/Yubico/YubiKey/YubiHsmAuth/CredentialRetryPair.cs | 1 - .../Yubico/YubiKey/YubiHsmAuth/CredentialWithSecrets.cs | 2 -- .../src/Yubico/YubiKey/YubiKeyCapabilitiesExtensions.cs | 2 -- .../src/Yubico/YubiKey/YubiKeyDeviceListener.cs | 1 - 88 files changed, 142 deletions(-) diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/AuthenticatorTransports.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/AuthenticatorTransports.cs index 03491a02..232f1aef 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/AuthenticatorTransports.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/AuthenticatorTransports.cs @@ -12,12 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Formats.Cbor; -using System.Globalization; -using Yubico.YubiKey.Fido2.Cbor; - namespace Yubico.YubiKey.Fido2 { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/BioEnrollBeginResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/BioEnrollBeginResponse.cs index 2dcd9fc1..cc140b67 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/BioEnrollBeginResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/BioEnrollBeginResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Fido2.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ConfigResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ConfigResponse.cs index 3ef02123..36fa27c9 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ConfigResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ConfigResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Fido2.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnableEnterpriseAttestationCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnableEnterpriseAttestationCommand.cs index 30e40da0..e3598789 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnableEnterpriseAttestationCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnableEnterpriseAttestationCommand.cs @@ -14,7 +14,6 @@ using System; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Fido2.Cbor; using Yubico.YubiKey.Fido2.PinProtocols; namespace Yubico.YubiKey.Fido2.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnumerateCredentialsGetNextResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnumerateCredentialsGetNextResponse.cs index dc65924d..2200d478 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnumerateCredentialsGetNextResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnumerateCredentialsGetNextResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Fido2.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnumerateRpsGetNextResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnumerateRpsGetNextResponse.cs index 847be0b1..6aaf9a0a 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnumerateRpsGetNextResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/EnumerateRpsGetNextResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Fido2.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetAssertionCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetAssertionCommand.cs index 7820e4bb..89b3e79a 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetAssertionCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetAssertionCommand.cs @@ -14,7 +14,6 @@ using System; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Fido2.PinProtocols; namespace Yubico.YubiKey.Fido2.Commands { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetBioModalityResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetBioModalityResponse.cs index d508e8f9..66e1c26e 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetBioModalityResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetBioModalityResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Fido2.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetFingerprintSensorInfoResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetFingerprintSensorInfoResponse.cs index e2d8cbf4..ba2b5d40 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetFingerprintSensorInfoResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetFingerprintSensorInfoResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Fido2.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetNextAssertionCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetNextAssertionCommand.cs index 3a72704c..b0aa4cc8 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetNextAssertionCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetNextAssertionCommand.cs @@ -12,9 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Fido2.PinProtocols; namespace Yubico.YubiKey.Fido2.Commands { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/MakeCredentialCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/MakeCredentialCommand.cs index fa7f5949..1771451b 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/MakeCredentialCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/MakeCredentialCommand.cs @@ -14,7 +14,6 @@ using System; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Fido2.PinProtocols; namespace Yubico.YubiKey.Fido2.Commands { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/RequirementValue.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/RequirementValue.cs index 534b20d7..83c5eb9d 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/RequirementValue.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/RequirementValue.cs @@ -12,14 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Formats.Cbor; -using System.Globalization; -using Yubico.YubiKey.Fido2.Cbor; -using Yubico.YubiKey.Fido2.Cose; -using Yubico.YubiKey.Fido2.PinProtocols; - namespace Yubico.YubiKey.Fido2 { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ResetResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ResetResponse.cs index ca0aecb3..84b82f8f 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ResetResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ResetResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Fido2.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/SetLargeBlobResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/SetLargeBlobResponse.cs index 7eceb2f9..9ef8b441 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/SetLargeBlobResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/SetLargeBlobResponse.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Globalization; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Fido2.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ToggleAlwaysUvCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ToggleAlwaysUvCommand.cs index 9c5acb6f..6cccbde1 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ToggleAlwaysUvCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/ToggleAlwaysUvCommand.cs @@ -14,7 +14,6 @@ using System; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Fido2.Cbor; using Yubico.YubiKey.Fido2.PinProtocols; namespace Yubico.YubiKey.Fido2.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Cose/CoseKey.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Cose/CoseKey.cs index 82a7e7df..f2363184 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Cose/CoseKey.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Cose/CoseKey.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Formats.Cbor; using System.Globalization; using Yubico.YubiKey.Fido2.Cbor; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/CredentialId.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/CredentialId.cs index 01a6f466..c34bd408 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/CredentialId.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/CredentialId.cs @@ -15,7 +15,6 @@ using System; using System.Collections.Generic; using System.Formats.Cbor; -using System.Globalization; using Yubico.YubiKey.Fido2.Cbor; namespace Yubico.YubiKey.Fido2 diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Fido2Session.BioEnrollment.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Fido2Session.BioEnrollment.cs index 01bbfff8..f239e920 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Fido2Session.BioEnrollment.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Fido2Session.BioEnrollment.cs @@ -15,8 +15,6 @@ using System; using System.Collections.Generic; using System.Security; -using System.Threading; -using System.Threading.Tasks; using Yubico.Core.Logging; using Yubico.YubiKey.Fido2.Commands; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Fido2Session.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Fido2Session.cs index 6c9657dd..90d48227 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Fido2Session.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Fido2Session.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Threading; using Yubico.Core.Logging; using Yubico.YubiKey.Fido2.Commands; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/GetAssertionParameters.Extensions.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/GetAssertionParameters.Extensions.cs index 9014d1d0..bc8c36da 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/GetAssertionParameters.Extensions.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/GetAssertionParameters.Extensions.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using Yubico.YubiKey.Fido2.Cbor; using Yubico.YubiKey.Fido2.PinProtocols; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/OptionValue.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/OptionValue.cs index 961e32c1..7e799335 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/OptionValue.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/OptionValue.cs @@ -12,14 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Formats.Cbor; -using System.Globalization; -using Yubico.YubiKey.Fido2.Cbor; -using Yubico.YubiKey.Fido2.Cose; -using Yubico.YubiKey.Fido2.PinProtocols; - namespace Yubico.YubiKey.Fido2 { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/ParameterHelpers.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/ParameterHelpers.cs index 9e9382ac..1f771c61 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/ParameterHelpers.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/ParameterHelpers.cs @@ -15,7 +15,6 @@ using System; using System.Collections.Generic; using System.Formats.Cbor; -using System.Globalization; using Yubico.YubiKey.Fido2.Cose; namespace Yubico.YubiKey.Fido2 diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/PinProtocols/PinUvAuthProtocolOne.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/PinProtocols/PinUvAuthProtocolOne.cs index 74d945ca..409b46cf 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/PinProtocols/PinUvAuthProtocolOne.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/PinProtocols/PinUvAuthProtocolOne.cs @@ -14,7 +14,6 @@ using System; using System.Globalization; -using System.IO; using System.Security.Cryptography; using Yubico.YubiKey.Cryptography; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/PinProtocols/PinUvAuthProtocolTwo.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/PinProtocols/PinUvAuthProtocolTwo.cs index f69c5e76..f73d307c 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/PinProtocols/PinUvAuthProtocolTwo.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/PinProtocols/PinUvAuthProtocolTwo.cs @@ -14,7 +14,6 @@ using System; using System.Globalization; -using System.IO; using System.Security.Cryptography; using System.Text; using Yubico.YubiKey.Cryptography; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/SerializedLargeBlobArray.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/SerializedLargeBlobArray.cs index df5998c2..b91bd025 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/SerializedLargeBlobArray.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/SerializedLargeBlobArray.cs @@ -19,7 +19,6 @@ using System.Security.Cryptography; using Yubico.Core.Logging; using Yubico.YubiKey.Cryptography; -using Yubico.YubiKey.Fido2.Cbor; namespace Yubico.YubiKey.Fido2 { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/UserEntity.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/UserEntity.cs index 3e4c39f1..3ee623cf 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/UserEntity.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Fido2/UserEntity.cs @@ -13,9 +13,7 @@ // limitations under the License. using System; -using System.Collections.Generic; using System.Formats.Cbor; -using System.Globalization; using Yubico.YubiKey.Fido2.Cbor; namespace Yubico.YubiKey.Fido2 diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/ICancelApduTransform.cs b/Yubico.YubiKey/src/Yubico/YubiKey/ICancelApduTransform.cs index 28c2f183..2e320574 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/ICancelApduTransform.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/ICancelApduTransform.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/ICancelConnection.cs b/Yubico.YubiKey/src/Yubico/YubiKey/ICancelConnection.cs index b4b16fa6..213dda9e 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/ICancelConnection.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/ICancelConnection.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/ImageProcessorVersion.cs b/Yubico.YubiKey/src/Yubico/YubiKey/ImageProcessorVersion.cs index 5146443c..c50c5e6a 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/ImageProcessorVersion.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/ImageProcessorVersion.cs @@ -12,9 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Diagnostics.CodeAnalysis; - namespace Yubico.YubiKey { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/BaseSelectApplicationCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/BaseSelectApplicationCommand.cs index f0411fc5..8ea3db27 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/BaseSelectApplicationCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/BaseSelectApplicationCommand.cs @@ -13,8 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; -using System.Text; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.InterIndustry.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/GenericSelectApplicationData.cs b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/GenericSelectApplicationData.cs index e6f00cb4..d48afa93 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/GenericSelectApplicationData.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/GenericSelectApplicationData.cs @@ -13,8 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; -using System.Text; namespace Yubico.YubiKey.InterIndustry.Commands { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/GenericSelectResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/GenericSelectResponse.cs index 31c637a3..1550be1f 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/GenericSelectResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/GenericSelectResponse.cs @@ -13,8 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; -using System.Text; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.InterIndustry.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationCommand.cs index 8d39604f..cf9dcf1a 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationCommand.cs @@ -12,10 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Text; - namespace Yubico.YubiKey.InterIndustry.Commands { public interface ISelectApplicationCommand : IYubiKeyCommand diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationData.cs b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationData.cs index 185c6c9b..b92d98db 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationData.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationData.cs @@ -13,8 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; -using System.Text; namespace Yubico.YubiKey.InterIndustry.Commands { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationResponse.cs index 9859d681..bdb10809 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/ISelectApplicationResponse.cs @@ -12,10 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Text; - namespace Yubico.YubiKey.InterIndustry.Commands { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/SelectApplicationCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/SelectApplicationCommand.cs index f7465e12..029821e7 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/SelectApplicationCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/InterIndustry/Commands/SelectApplicationCommand.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.InterIndustry.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/KeyboardReport.cs b/Yubico.YubiKey/src/Yubico/YubiKey/KeyboardReport.cs index ef7992dd..f832cea6 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/KeyboardReport.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/KeyboardReport.cs @@ -15,7 +15,6 @@ using System; using System.Diagnostics; using System.Globalization; -using System.Linq; namespace Yubico.YubiKey { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Management/Commands/DeviceResetCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Management/Commands/DeviceResetCommand.cs index dba570cd..72e55804 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Management/Commands/DeviceResetCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Management/Commands/DeviceResetCommand.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Management.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Management/Commands/DeviceResetResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Management/Commands/DeviceResetResponse.cs index 0fb207c8..83212af4 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Management/Commands/DeviceResetResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Management/Commands/DeviceResetResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Management.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Oath/Commands/CalculateAllCredentialsCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Oath/Commands/CalculateAllCredentialsCommand.cs index af5e458b..1ab4ad6c 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Oath/Commands/CalculateAllCredentialsCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Oath/Commands/CalculateAllCredentialsCommand.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; using Yubico.Core.Tlv; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Oath/Commands/OathChallengeResponseBaseCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Oath/Commands/OathChallengeResponseBaseCommand.cs index 27d67609..7e3a19b5 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Oath/Commands/OathChallengeResponseBaseCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Oath/Commands/OathChallengeResponseBaseCommand.cs @@ -14,7 +14,6 @@ using System; using System.Buffers.Binary; -using System.Linq; using System.Security.Cryptography; using Yubico.YubiKey.Cryptography; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Oath/CredentialType.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Oath/CredentialType.cs index 78c134fc..6585fca6 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Oath/CredentialType.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Oath/CredentialType.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Oath { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Oath/OathSession.Credential.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Oath/OathSession.Credential.cs index 78731677..989400f6 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Oath/OathSession.Credential.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Oath/OathSession.Credential.cs @@ -14,7 +14,6 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Security; using Yubico.YubiKey.Oath.Commands; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Pipelines/FidoTransform.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Pipelines/FidoTransform.cs index 901b9e84..f586a606 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Pipelines/FidoTransform.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Pipelines/FidoTransform.cs @@ -18,7 +18,6 @@ using System.Security.Cryptography; using Yubico.Core.Devices.Hid; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Fido2; using Yubico.YubiKey.Fido2.Commands; namespace Yubico.YubiKey.Pipelines diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/AuthenticateKeyAgreeCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/AuthenticateKeyAgreeCommand.cs index f08d1881..90582675 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/AuthenticateKeyAgreeCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/AuthenticateKeyAgreeCommand.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using System.Globalization; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/ChangeReferenceDataCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/ChangeReferenceDataCommand.cs index f371c294..291ef5e9 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/ChangeReferenceDataCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/ChangeReferenceDataCommand.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using System.Globalization; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/GetBioMetadataCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/GetBioMetadataCommand.cs index 0a663435..f8d365dd 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/GetBioMetadataCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/GetBioMetadataCommand.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Globalization; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Piv.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/GetSerialNumberResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/GetSerialNumberResponse.cs index 163a737a..a5d07ea4 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/GetSerialNumberResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/GetSerialNumberResponse.cs @@ -14,7 +14,6 @@ using System; using System.Buffers.Binary; -using System.Linq; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Piv.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/ISymmetricForManagementKey.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/ISymmetricForManagementKey.cs index b8a3dbd5..18f507e3 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/ISymmetricForManagementKey.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/ISymmetricForManagementKey.cs @@ -13,9 +13,6 @@ // limitations under the License. using System; -using System.Globalization; -using System.Security.Cryptography; -using Yubico.YubiKey.Cryptography; namespace Yubico.YubiKey.Piv.Commands { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/InitializeAuthenticateManagementKeyCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/InitializeAuthenticateManagementKeyCommand.cs index a1164d87..66d0ec64 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/InitializeAuthenticateManagementKeyCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/InitializeAuthenticateManagementKeyCommand.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Piv.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/PivResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/PivResponse.cs index 0bb62d2e..b3fa3171 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/PivResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/PivResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Piv.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/SetManagementKeyResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/SetManagementKeyResponse.cs index 479e3513..56d95055 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/SetManagementKeyResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/SetManagementKeyResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Piv.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyPinCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyPinCommand.cs index a6c28d0e..f5c7da5a 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyPinCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyPinCommand.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using System.Globalization; using Yubico.Core.Iso7816; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyTemporaryPinCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyTemporaryPinCommand.cs index 5bb7b23c..44a4b83d 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyTemporaryPinCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyTemporaryPinCommand.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using System.Globalization; using Yubico.Core.Iso7816; using Yubico.Core.Tlv; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyTemporaryPinResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyTemporaryPinResponse.cs index b931854b..aaab702b 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyTemporaryPinResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyTemporaryPinResponse.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Globalization; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.Piv.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyUvCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyUvCommand.cs index 797ae421..6aa51ecf 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyUvCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/VerifyUvCommand.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using System.Globalization; using Yubico.Core.Iso7816; using Yubico.Core.Tlv; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivBioMetadata.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivBioMetadata.cs index 6a0d9bbd..27db58fd 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivBioMetadata.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivBioMetadata.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Diagnostics; using System.Globalization; using Yubico.Core.Tlv; using Yubico.YubiKey.Piv.Commands; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivPinPolicy.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivPinPolicy.cs index 8742133a..4eabffc1 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivPinPolicy.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivPinPolicy.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Piv { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivTouchPolicy.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivTouchPolicy.cs index c1625a28..7ce76094 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivTouchPolicy.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivTouchPolicy.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Piv { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Scp03/Commands/DeleteKeyCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Scp03/Commands/DeleteKeyCommand.cs index 7edba046..4aca9fda 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Scp03/Commands/DeleteKeyCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Scp03/Commands/DeleteKeyCommand.cs @@ -13,9 +13,7 @@ // limitations under the License. using System; -using System.Security.Cryptography; using Yubico.Core.Iso7816; -using Yubico.YubiKey.Cryptography; namespace Yubico.YubiKey.Scp03.Commands { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Scp03/Derivation.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Scp03/Derivation.cs index d14cda86..2e697a26 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Scp03/Derivation.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Scp03/Derivation.cs @@ -15,7 +15,6 @@ using System; using System.Security.Cryptography; using Yubico.Core.Cryptography; -using Yubico.PlatformInterop; using Yubico.YubiKey.Cryptography; namespace Yubico.YubiKey.Scp03 diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/TemplateStorageVersion.cs b/Yubico.YubiKey/src/Yubico/YubiKey/TemplateStorageVersion.cs index e10be997..f5299cf7 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/TemplateStorageVersion.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/TemplateStorageVersion.cs @@ -12,9 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Diagnostics.CodeAnalysis; - namespace Yubico.YubiKey { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/AuthenticateCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/AuthenticateCommand.cs index dcd408bc..360f1e5c 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/AuthenticateCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/AuthenticateCommand.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Globalization; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/AuthenticateResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/AuthenticateResponse.cs index afe9f56a..f396df66 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/AuthenticateResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/AuthenticateResponse.cs @@ -13,8 +13,6 @@ // limitations under the License. using System; -using System.Security.Cryptography; -using System.Security.Cryptography.X509Certificates; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/RegisterCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/RegisterCommand.cs index c18aadf7..e16ed5bd 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/RegisterCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/RegisterCommand.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Globalization; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/ResetResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/ResetResponse.cs index 2f6ce87e..6e38c9ac 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/ResetResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/ResetResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/SetPinCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/SetPinCommand.cs index a7399399..07fadda2 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/SetPinCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/SetPinCommand.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Globalization; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/SetPinResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/SetPinResponse.cs index d1719b13..6dda1785 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/SetPinResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/SetPinResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/VerifyPinCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/VerifyPinCommand.cs index ea7758c5..486d9777 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/VerifyPinCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/VerifyPinCommand.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Globalization; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/VerifyPinResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/VerifyPinResponse.cs index f8b8b739..3d7c3bad 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/VerifyPinResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/Commands/VerifyPinResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/U2fBuffer.cs b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/U2fBuffer.cs index 0e8bd87c..8a751366 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/U2fBuffer.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/U2fBuffer.cs @@ -14,7 +14,6 @@ using System; using System.Globalization; -using Yubico.Core.Iso7816; namespace Yubico.YubiKey.U2f { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/U2fSignedData.cs b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/U2fSignedData.cs index 1b43b5ce..e625fee9 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/U2f/U2fSignedData.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/U2f/U2fSignedData.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using Yubico.Core.Tlv; using Yubico.YubiKey.Cryptography; namespace Yubico.YubiKey.U2f diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Aes128CredentialWithSecrets.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Aes128CredentialWithSecrets.cs index 1936e867..e6e78f80 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Aes128CredentialWithSecrets.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Aes128CredentialWithSecrets.cs @@ -14,7 +14,6 @@ using System; using System.Globalization; -using Yubico.Core.Tlv; namespace Yubico.YubiKey.YubiHsmAuth { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/ApplicationVersion.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/ApplicationVersion.cs index 70691d3e..ec0c9591 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/ApplicationVersion.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/ApplicationVersion.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.YubiHsmAuth { /// diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponse.cs index 7b0d4a9c..c9373519 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/BaseYubiHsmAuthResponse.cs @@ -12,9 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.YubiHsmAuth.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ChangeManagementKeyResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ChangeManagementKeyResponse.cs index 4f9265ea..298dd223 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ChangeManagementKeyResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ChangeManagementKeyResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.YubiHsmAuth.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysCommand.cs index 6a4b5b7b..05f7b035 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysCommand.cs @@ -14,7 +14,6 @@ using System; using System.Globalization; -using System.Runtime.CompilerServices; using System.Text; using Yubico.Core.Iso7816; using Yubico.Core.Tlv; diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysResponse.cs index 25939bc9..f8d2bf32 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetAes128SessionKeysResponse.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.YubiHsmAuth.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetApplicationVersionCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetApplicationVersionCommand.cs index 6550995a..0fef0154 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetApplicationVersionCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetApplicationVersionCommand.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.YubiHsmAuth.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesCommand.cs index f6084cc1..8acb1b29 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/GetManagementKeyRetriesCommand.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.YubiHsmAuth.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ListCredentialsCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ListCredentialsCommand.cs index 05365bcb..50ff6c8d 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ListCredentialsCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ListCredentialsCommand.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.YubiHsmAuth.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationCommand.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationCommand.cs index 8166f818..dc93d41c 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationCommand.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationCommand.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.YubiHsmAuth.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationResponse.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationResponse.cs index 7c8f03b7..49df1552 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationResponse.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Commands/ResetApplicationResponse.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Iso7816; namespace Yubico.YubiKey.YubiHsmAuth.Commands diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Credential.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Credential.cs index 9340734b..0e8faaeb 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Credential.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/Credential.cs @@ -14,7 +14,6 @@ using System; using System.Globalization; -using System.Linq.Expressions; using System.Text; namespace Yubico.YubiKey.YubiHsmAuth diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/CredentialRetryPair.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/CredentialRetryPair.cs index fbf53b2d..2341ff45 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/CredentialRetryPair.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/CredentialRetryPair.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; namespace Yubico.YubiKey.YubiHsmAuth { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/CredentialWithSecrets.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/CredentialWithSecrets.cs index 422044c5..4a116a0a 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/CredentialWithSecrets.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiHsmAuth/CredentialWithSecrets.cs @@ -13,9 +13,7 @@ // limitations under the License. using System; -using System.ComponentModel; using System.Globalization; -using Yubico.Core.Tlv; namespace Yubico.YubiKey.YubiHsmAuth { diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiKeyCapabilitiesExtensions.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiKeyCapabilitiesExtensions.cs index 2cbb029a..eb352d33 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiKeyCapabilitiesExtensions.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiKeyCapabilitiesExtensions.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey { internal static class YubiKeyCapabilitiesExtensions diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/YubiKeyDeviceListener.cs b/Yubico.YubiKey/src/Yubico/YubiKey/YubiKeyDeviceListener.cs index 33329de0..96e2a338 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/YubiKeyDeviceListener.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/YubiKeyDeviceListener.cs @@ -14,7 +14,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading; using Yubico.Core.Devices; From 88c441653f144a1b7ac7d80aac5a2302497c0cc2 Mon Sep 17 00:00:00 2001 From: Dennis Dyall Date: Wed, 7 Aug 2024 23:52:36 +0200 Subject: [PATCH 5/5] Removed unused usings: example projects and tests --- .../Fido2SampleCode/KeyCollector/Fido2KeyCollectorOperation.cs | 2 -- .../examples/Fido2SampleCode/Run/Fido2MainMenuItem.cs | 2 -- Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2SampleGui.cs | 1 - Yubico.YubiKey/examples/Fido2SampleCode/Run/SampleStart.cs | 1 - .../OathSampleCode/YubiKeyOperations/ResetApplication.cs | 1 - Yubico.YubiKey/examples/PivSampleCode/Run/PivMainMenuItem.cs | 2 -- Yubico.YubiKey/examples/PivSampleCode/Run/SampleStart.cs | 2 -- .../examples/PivSampleCode/YubiKeyOperations/PinOnlyMode.cs | 1 - Yubico.YubiKey/examples/SharedSampleCode/Menu/MessageType.cs | 2 -- .../SharedSampleCode/YubiKeyOperations/ChooseYubiKey.cs | 1 - .../SharedSampleCode/YubiKeyOperations/ListYubiKeys.cs | 1 - .../U2fSampleCode/KeyCollector/U2fKeyCollectorOperation.cs | 2 -- Yubico.YubiKey/examples/U2fSampleCode/Run/SampleStart.cs | 2 -- Yubico.YubiKey/examples/U2fSampleCode/Run/U2fMainMenuItem.cs | 2 -- .../examples/U2fSampleCode/YubiKeyOperations/U2fReset.cs | 1 - Yubico.YubiKey/tests/sandbox/Converters/Base16Bytes.cs | 1 - Yubico.YubiKey/tests/sandbox/Converters/ModHexBytes.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/DavidPlugin.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/OathPlugin.cs | 2 -- Yubico.YubiKey/tests/sandbox/Plugins/Otp/Delete.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/Otp/Static.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/Otp/UpdateSlot.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/Scp03Plugin.cs | 1 - .../Yubico/YubiKey/TestUtilities/BadAttestationPairs.cs | 3 --- .../utilities/Yubico/YubiKey/TestUtilities/DeviceReset.cs | 1 - .../utilities/Yubico/YubiKey/TestUtilities/SelectSupport.cs | 1 - .../YubiKey/TestUtilities/SimpleIntegrationTestConnection.cs | 1 - 28 files changed, 39 deletions(-) diff --git a/Yubico.YubiKey/examples/Fido2SampleCode/KeyCollector/Fido2KeyCollectorOperation.cs b/Yubico.YubiKey/examples/Fido2SampleCode/KeyCollector/Fido2KeyCollectorOperation.cs index 28c74d78..1e2fb8cc 100644 --- a/Yubico.YubiKey/examples/Fido2SampleCode/KeyCollector/Fido2KeyCollectorOperation.cs +++ b/Yubico.YubiKey/examples/Fido2SampleCode/KeyCollector/Fido2KeyCollectorOperation.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.Fido2SampleCode { public enum Fido2KeyCollectorOperation diff --git a/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2MainMenuItem.cs b/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2MainMenuItem.cs index e4125299..0cd590bc 100644 --- a/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2MainMenuItem.cs +++ b/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2MainMenuItem.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.Fido2SampleCode { public enum Fido2MainMenuItem diff --git a/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2SampleGui.cs b/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2SampleGui.cs index f7d830a2..bdbd1b3e 100644 --- a/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2SampleGui.cs +++ b/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2SampleGui.cs @@ -18,7 +18,6 @@ using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; -using Yubico.YubiKey; using Yubico.YubiKey.Sample.SharedCode; namespace Yubico.YubiKey.Sample.Fido2SampleCode diff --git a/Yubico.YubiKey/examples/Fido2SampleCode/Run/SampleStart.cs b/Yubico.YubiKey/examples/Fido2SampleCode/Run/SampleStart.cs index f8589085..d8fd5e9e 100644 --- a/Yubico.YubiKey/examples/Fido2SampleCode/Run/SampleStart.cs +++ b/Yubico.YubiKey/examples/Fido2SampleCode/Run/SampleStart.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using Yubico.YubiKey.Sample.SharedCode; namespace Yubico.YubiKey.Sample.Fido2SampleCode { diff --git a/Yubico.YubiKey/examples/OathSampleCode/YubiKeyOperations/ResetApplication.cs b/Yubico.YubiKey/examples/OathSampleCode/YubiKeyOperations/ResetApplication.cs index 82f16a29..4a98a770 100644 --- a/Yubico.YubiKey/examples/OathSampleCode/YubiKeyOperations/ResetApplication.cs +++ b/Yubico.YubiKey/examples/OathSampleCode/YubiKeyOperations/ResetApplication.cs @@ -13,7 +13,6 @@ // limitations under the License. using Yubico.YubiKey.Oath; -using Yubico.YubiKey.Sample.SharedCode; namespace Yubico.YubiKey.Sample.OathSampleCode { diff --git a/Yubico.YubiKey/examples/PivSampleCode/Run/PivMainMenuItem.cs b/Yubico.YubiKey/examples/PivSampleCode/Run/PivMainMenuItem.cs index 4c99fc3f..b4423a1b 100644 --- a/Yubico.YubiKey/examples/PivSampleCode/Run/PivMainMenuItem.cs +++ b/Yubico.YubiKey/examples/PivSampleCode/Run/PivMainMenuItem.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.PivSampleCode { public enum PivMainMenuItem diff --git a/Yubico.YubiKey/examples/PivSampleCode/Run/SampleStart.cs b/Yubico.YubiKey/examples/PivSampleCode/Run/SampleStart.cs index 6aee3b22..e24a2a2d 100644 --- a/Yubico.YubiKey/examples/PivSampleCode/Run/SampleStart.cs +++ b/Yubico.YubiKey/examples/PivSampleCode/Run/SampleStart.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.PivSampleCode { internal sealed class StartProgram diff --git a/Yubico.YubiKey/examples/PivSampleCode/YubiKeyOperations/PinOnlyMode.cs b/Yubico.YubiKey/examples/PivSampleCode/YubiKeyOperations/PinOnlyMode.cs index c3c67e4e..81cf6702 100644 --- a/Yubico.YubiKey/examples/PivSampleCode/YubiKeyOperations/PinOnlyMode.cs +++ b/Yubico.YubiKey/examples/PivSampleCode/YubiKeyOperations/PinOnlyMode.cs @@ -14,7 +14,6 @@ using System; using Yubico.YubiKey.Piv; -using Yubico.YubiKey.Sample.SharedCode; namespace Yubico.YubiKey.Sample.PivSampleCode { diff --git a/Yubico.YubiKey/examples/SharedSampleCode/Menu/MessageType.cs b/Yubico.YubiKey/examples/SharedSampleCode/Menu/MessageType.cs index 818e0a7e..b835ee86 100644 --- a/Yubico.YubiKey/examples/SharedSampleCode/Menu/MessageType.cs +++ b/Yubico.YubiKey/examples/SharedSampleCode/Menu/MessageType.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.SharedCode { // When calling SampleMenu.WriteMessage, pass in one of these enum values as diff --git a/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ChooseYubiKey.cs b/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ChooseYubiKey.cs index 072e4199..669dcd35 100644 --- a/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ChooseYubiKey.cs +++ b/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ChooseYubiKey.cs @@ -14,7 +14,6 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; namespace Yubico.YubiKey.Sample.SharedCode diff --git a/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ListYubiKeys.cs b/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ListYubiKeys.cs index ff0b8004..008b26d2 100644 --- a/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ListYubiKeys.cs +++ b/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ListYubiKeys.cs @@ -15,7 +15,6 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using Yubico.YubiKey; namespace Yubico.YubiKey.Sample.SharedCode { diff --git a/Yubico.YubiKey/examples/U2fSampleCode/KeyCollector/U2fKeyCollectorOperation.cs b/Yubico.YubiKey/examples/U2fSampleCode/KeyCollector/U2fKeyCollectorOperation.cs index 22bab72f..52ff895b 100644 --- a/Yubico.YubiKey/examples/U2fSampleCode/KeyCollector/U2fKeyCollectorOperation.cs +++ b/Yubico.YubiKey/examples/U2fSampleCode/KeyCollector/U2fKeyCollectorOperation.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.U2fSampleCode { public enum U2fKeyCollectorOperation diff --git a/Yubico.YubiKey/examples/U2fSampleCode/Run/SampleStart.cs b/Yubico.YubiKey/examples/U2fSampleCode/Run/SampleStart.cs index 646b6f63..3dab1ae2 100644 --- a/Yubico.YubiKey/examples/U2fSampleCode/Run/SampleStart.cs +++ b/Yubico.YubiKey/examples/U2fSampleCode/Run/SampleStart.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.U2fSampleCode { internal sealed class StartProgram diff --git a/Yubico.YubiKey/examples/U2fSampleCode/Run/U2fMainMenuItem.cs b/Yubico.YubiKey/examples/U2fSampleCode/Run/U2fMainMenuItem.cs index a1202927..b7b4a9e5 100644 --- a/Yubico.YubiKey/examples/U2fSampleCode/Run/U2fMainMenuItem.cs +++ b/Yubico.YubiKey/examples/U2fSampleCode/Run/U2fMainMenuItem.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.U2fSampleCode { public enum U2fMainMenuItem diff --git a/Yubico.YubiKey/examples/U2fSampleCode/YubiKeyOperations/U2fReset.cs b/Yubico.YubiKey/examples/U2fSampleCode/YubiKeyOperations/U2fReset.cs index bc4362d7..ab9af48e 100644 --- a/Yubico.YubiKey/examples/U2fSampleCode/YubiKeyOperations/U2fReset.cs +++ b/Yubico.YubiKey/examples/U2fSampleCode/YubiKeyOperations/U2fReset.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Diagnostics; using System.Globalization; using System.Threading; using System.Threading.Tasks; diff --git a/Yubico.YubiKey/tests/sandbox/Converters/Base16Bytes.cs b/Yubico.YubiKey/tests/sandbox/Converters/Base16Bytes.cs index 7054ce2a..acbb7dc0 100644 --- a/Yubico.YubiKey/tests/sandbox/Converters/Base16Bytes.cs +++ b/Yubico.YubiKey/tests/sandbox/Converters/Base16Bytes.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Buffers; namespace Yubico.YubiKey.TestApp.Converters diff --git a/Yubico.YubiKey/tests/sandbox/Converters/ModHexBytes.cs b/Yubico.YubiKey/tests/sandbox/Converters/ModHexBytes.cs index 4f70883a..daee9b4d 100644 --- a/Yubico.YubiKey/tests/sandbox/Converters/ModHexBytes.cs +++ b/Yubico.YubiKey/tests/sandbox/Converters/ModHexBytes.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Buffers; namespace Yubico.YubiKey.TestApp.Converters diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/DavidPlugin.cs b/Yubico.YubiKey/tests/sandbox/Plugins/DavidPlugin.cs index e882c37b..7d4b52c6 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/DavidPlugin.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/DavidPlugin.cs @@ -15,7 +15,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Net.Security; using System.Text; using Yubico.YubiKey.YubiHsmAuth; using Yubico.YubiKey.YubiHsmAuth.Commands; diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs b/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs index 00c97bf0..01293b04 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Threading; using Microsoft.Extensions.Logging; using Serilog; using Serilog.Core; diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/OathPlugin.cs b/Yubico.YubiKey/tests/sandbox/Plugins/OathPlugin.cs index 036d82fa..8f42eff2 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/OathPlugin.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/OathPlugin.cs @@ -15,11 +15,9 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Threading; using Microsoft.Extensions.Logging; using Yubico.Core.Logging; using Yubico.YubiKey.Oath; -using Yubico.YubiKey.Oath.Commands; namespace Yubico.YubiKey.TestApp.Plugins { diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Delete.cs b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Delete.cs index 297be176..d2dc3cd1 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Delete.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Delete.cs @@ -14,7 +14,6 @@ using System; using Yubico.YubiKey.Otp; -using Yubico.YubiKey.Otp.Operations; namespace Yubico.YubiKey.TestApp.Plugins.Otp { diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Static.cs b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Static.cs index ab6e909b..4e6ecc20 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Static.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Static.cs @@ -14,7 +14,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Yubico.YubiKey.Otp; using Yubico.YubiKey.Otp.Commands; using Yubico.YubiKey.Otp.Operations; diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/UpdateSlot.cs b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/UpdateSlot.cs index a0d5f79a..57b5e0c5 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/UpdateSlot.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/UpdateSlot.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using Yubico.YubiKey.Otp; namespace Yubico.YubiKey.TestApp.Plugins.Otp diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/Scp03Plugin.cs b/Yubico.YubiKey/tests/sandbox/Plugins/Scp03Plugin.cs index 96811f9f..1bc52904 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/Scp03Plugin.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/Scp03Plugin.cs @@ -15,7 +15,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using Yubico.YubiKey.Piv; using Yubico.YubiKey.Scp03; diff --git a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/BadAttestationPairs.cs b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/BadAttestationPairs.cs index 4fb74279..dd3f474b 100644 --- a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/BadAttestationPairs.cs +++ b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/BadAttestationPairs.cs @@ -12,9 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Security.Cryptography.X509Certificates; - namespace Yubico.YubiKey.TestUtilities { public static class BadAttestationPairs diff --git a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/DeviceReset.cs b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/DeviceReset.cs index b32a4ea9..6e2d6cfa 100644 --- a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/DeviceReset.cs +++ b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/DeviceReset.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Linq; using Yubico.YubiKey.Oath; using Yubico.YubiKey.Piv; using Yubico.YubiKey.YubiHsmAuth; diff --git a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SelectSupport.cs b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SelectSupport.cs index ff14692f..262108a2 100644 --- a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SelectSupport.cs +++ b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SelectSupport.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using System.Globalization; using System.Linq; diff --git a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SimpleIntegrationTestConnection.cs b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SimpleIntegrationTestConnection.cs index 571ebb65..b3dee85d 100644 --- a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SimpleIntegrationTestConnection.cs +++ b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SimpleIntegrationTestConnection.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using Yubico.YubiKey; namespace Yubico.YubiKey.TestUtilities {