Skip to content

Commit

Permalink
Merge pull request #34 from Nitrokey/fmt-fixes
Browse files Browse the repository at this point in the history
Fix trailing whitespace preventing rustfmt formatting
  • Loading branch information
sosthene-nitrokey authored Jun 12, 2023
2 parents c576c8a + ca97511 commit 824b7aa
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
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

0 comments on commit 824b7aa

Please sign in to comment.