-
Notifications
You must be signed in to change notification settings - Fork 60
fix,tests: Fixed bug where attest cert could not be RSA3072 or RSA4096, removed obsolete tests and consolidated Piv tests #230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
2472f0e
tests: added ability to select usbcbio
DennisDyallo 3f735f2
wip: remake tests
DennisDyallo f5ef846
samples: fix sample project
DennisDyallo 3d1dbc6
Remove incorrect auth token truncation from various commands
AaFortner 1971953
commits from PR204
equijano21 1f51a6b
typos, other minor fixes
equijano21 74838b0
misc: add comments, clarify return type
DennisDyallo fcd00ff
tests: remove bio requirement on fido tests
DennisDyallo 59ea863
tests: improved usability of TestKeys
DennisDyallo 30b3db7
docs: fix wording
DennisDyallo 4131d0e
misc: separate into files
DennisDyallo 4dea521
tests: wording, misc
DennisDyallo 836635d
tests: added tests for RSA keys
DennisDyallo 0ec46e1
tests: refactor
DennisDyallo 3c1632f
change: EncodeToSubjectPublicKeyInfo will throw on missing public key…
DennisDyallo 07ea148
tests: refactor CryptoSupport.cs
DennisDyallo c3a6621
tests: refactored tests
DennisDyallo 23b6ee9
tests: update cert data to include CA extensions
DennisDyallo 46295ec
tests: remove obsolete class
DennisDyallo 9b82282
tests: piv test use reusable base class and all pass
DennisDyallo 37fe763
misc: removed comments
DennisDyallo 0e0d65b
misc: Rename comment
DennisDyallo 745b9b1
tests: fixed some tests
DennisDyallo 80f09a9
tests: refactor piv tests to reuse base class
DennisDyallo 279fd05
tests: improved PivSession tests
DennisDyallo 3465c0a
refactor: PivSession
DennisDyallo 8c52f4e
tests: misc Scp test changes
DennisDyallo c268c1d
tests:
DennisDyallo 32256bf
tests: PivSession
DennisDyallo 96196da
tests: Fix PinOnlyWithResetTests.cs for devices gt v5.7
DennisDyallo a7b54cc
refactor: PivSession
DennisDyallo abf8c71
fix: bug where SDK would print a failure log even though we were succ…
DennisDyallo 32f35d8
tests: minor refactor for tests in PivSession
DennisDyallo d307713
misc: added logging for changing pin / puk
DennisDyallo ace1a0a
refactor: reuse logic for GetMetadata (PivSession)
DennisDyallo 46999f0
tests:
DennisDyallo 5c5e93a
refactor: minor work on Piv Attestation and RSAPublicKey
DennisDyallo 7bca86e
misc: code cleanup
DennisDyallo 78b1f2c
misc: remove add default management key
DennisDyallo 2705379
tests: PivSessionIntegrationTestBase.cs can now manage Fips credentials
DennisDyallo 3eea339
tests: rename class
DennisDyallo 4e3aade
misc: added logging when generate key
DennisDyallo 9b2a69f
tests: added FIPS tests for generate
DennisDyallo 68fecf7
test: comments, restructure
DennisDyallo b3f5446
Merge branch 'develop' into dennisdyallo/tests
DennisDyallo dbb6718
Merge branch 'develop' into dennisdyallo/tests
DennisDyallo 92da903
misc: pr feedback
DennisDyallo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
Yubico.YubiKey/src/Yubico/YubiKey/Cryptography/PublicKey.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2024 Yubico AB | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"). | ||
// You may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
namespace Yubico.YubiKey.Cryptography; | ||
|
||
public abstract class PublicKey : IPublicKey | ||
{ | ||
/// <inheritdoc /> | ||
public abstract KeyType KeyType { get; } | ||
|
||
/// <inheritdoc /> | ||
public abstract byte[] ExportSubjectPublicKeyInfo(); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.