Skip to content
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

Fix trailing whitespace preventing rustfmt formatting #34

Merged
merged 1 commit into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ tarpaulin:

.PHONY: vpicc-example
vpicc-example:
cargo run --example vpicc --features vpicc
cargo run --example vpicc --features vpicc

.PHONY: ci
ci: lint tarpaulin
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PIV-Authenticator
Supported features
------------------

`piv-authenticator` is still under heavy development.
`piv-authenticator` is still under heavy development.
See the [tracking issue for command support](https://github.com/Nitrokey/piv-authenticator/issues/1) for more information.

License
Expand Down
2 changes: 1 addition & 1 deletion src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub const YUBICO_DEFAULT_MANAGEMENT_KEY_ALG: AdministrationAlgorithm =
AdministrationAlgorithm::Tdes;

pub const DISCOVERY_OBJECT: [u8; 18] = hex!(
"
"
4f 0b // PIV AID
a000000308000010000100
5f2f 02 // PIN usage Policy
Expand Down
4 changes: 2 additions & 2 deletions src/reply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ impl<'v, const R: usize> Reply<'v, R> {
///
/// Input:
/// AAAAAAAAAABBBBBBB
/// ↑
/// ↑
/// offset
///
///
/// Output:
///
/// AAAAAAAAAA 7 BBBBBBB
Expand Down
4 changes: 2 additions & 2 deletions tests/command_response.ron
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
)
),
IoData(
input: "00 47 009A 05
AC 03
input: "00 47 009A 05
AC 03
80 01 11",
output: Len(70),
)
Expand Down
9 changes: 4 additions & 5 deletions tests/command_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,19 +511,18 @@ impl IoCmd {

// URL = b\"https://github.com/Nitrokey/piv-authenticator\"
5f50 2d 68747470733a2f2f6769746875622e636f6d2f4e6974726f6b65792f7069762d61757468656e74696361746f72

// Cryptographic Algorithm Identifier Template
ac 15
ac 15
80 01 03 // TDES - ECB
80 01 0c // AES256 - ECB
80 01 11 // P-256
80 01 e2 // Ed25519
80 01 e3 // X25519
80 01 07 // RSA 2048
06 01 00
// Coexistent Tag Allocation Authority Template
79 07
4f 05 a000000308
// Coexistent Tag Allocation Authority Template
79 07
4f 05 a000000308
"
)));
Self::run_bytes(
Expand Down