diff --git a/Makefile b/Makefile index 5a3d1b8..146c00b 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 6a6141f..fd2827f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/constants.rs b/src/constants.rs index dda9c24..495706d 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -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 diff --git a/src/reply.rs b/src/reply.rs index 4ecdcd0..d2a8946 100644 --- a/src/reply.rs +++ b/src/reply.rs @@ -55,9 +55,9 @@ impl<'v, const R: usize> Reply<'v, R> { /// /// Input: /// AAAAAAAAAABBBBBBB - /// ↑ + /// ↑ /// offset - /// + /// /// Output: /// /// AAAAAAAAAA 7 BBBBBBB diff --git a/tests/command_response.ron b/tests/command_response.ron index 993d79d..453eb0a 100644 --- a/tests/command_response.ron +++ b/tests/command_response.ron @@ -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), ) diff --git a/tests/command_response.rs b/tests/command_response.rs index 16b5f30..71c0dde 100644 --- a/tests/command_response.rs +++ b/tests/command_response.rs @@ -511,9 +511,8 @@ 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 @@ -521,9 +520,9 @@ impl IoCmd { 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(