Commit Graph

  • a61a6fd94b Define more YubiKey-recognized status words Jack Grigg 2019-11-30 15:34:14 +00:00
  • cfef291ad9 Use u16 for raw StatusWords Jack Grigg 2019-11-30 15:24:10 +00:00
  • 4b5cd8dd45 Make PIN verification failure a StatusWord case Jack Grigg 2019-11-30 15:22:14 +00:00
  • 9fe363661e verify_pin: Don't set APDU data for empty PIN Jack Grigg 2019-11-30 14:28:02 +00:00
  • 4af95edc74 Merge pull request #39 from iqlusioninc/safety-dance-and-other-readme-badge-fixups Tony Arcieri 2019-11-29 10:18:25 -08:00
  • 7f3d821df2 Add #![forbid(unsafe_code)]; fix up README.md badges and links Tony Arcieri 2019-11-29 10:06:52 -08:00
  • 2f963a15d0 Merge pull request #37 from str4d/safety-rails Tony Arcieri 2019-11-29 09:56:54 -08:00
  • 4210571da3 Change CHUID struct to hold complete CHUID value. Add getters for subcomponents. Add additional consts to support this. Modified CCCID struct to be public (as prelude to similar treatment). Carl Wallace 2019-11-29 09:31:24 -05:00
  • 1db929c10f Mark excluded nested match branches as unreachable Jack Grigg 2019-11-29 00:09:08 +00:00
  • 8240575bb4 Rewrite YubiKey::import_private_key without unsafe Jack Grigg 2019-11-28 23:44:16 +00:00
  • 1935216cf3 Rewrite MsRoots::read without unsafe Jack Grigg 2019-11-28 18:13:19 +00:00
  • 7c08674fac Use slice::copy_within in metadata::read Jack Grigg 2019-11-28 17:58:19 +00:00
  • 8b86a0f578 Rewrite metadata::get_item without unsafe Jack Grigg 2019-11-28 17:55:51 +00:00
  • bd5669d9ef Rewrite metadata::set_item without unsafe Jack Grigg 2019-11-28 17:49:17 +00:00
  • afb6a9479e Use slice::copy_within in read_certificate Jack Grigg 2019-11-28 17:14:36 +00:00
  • 48d0a2ab04 Use slice::copy_from_slice in Transaction::change_pin Jack Grigg 2019-11-28 17:09:37 +00:00
  • 82b4bbb35d Merge pull request #36 from carl-wallace/develop Tony Arcieri 2019-11-27 12:37:06 -08:00
  • 13b350f822 change length comparison to is_empty check per clippy Carl Wallace 2019-11-27 15:26:13 -05:00
  • 0f1ef2f519 Make anonymous field of CHUID struct public. Remove spurious -2 instances inside Transaction::transfer_data (the Response object is already eating the status words) Carl Wallace 2019-11-27 15:09:53 -05:00
  • d799e9c35b Merge pull request #34 from tarcieri/have-encrypt-sign-return-buffer Tony Arcieri 2019-11-26 11:21:38 -08:00
  • 5bf27f5422 Have sign_data and decrypt_data return a Buffer Tony Arcieri 2019-11-26 11:06:11 -08:00
  • ecea0081b5 Merge pull request #33 from tarcieri/ins-enum Tony Arcieri 2019-11-26 10:05:35 -08:00
  • debde6e765 Ins (APDU instruction codes) enum Tony Arcieri 2019-11-26 09:52:19 -08:00
  • 3fa5555943 Merge pull request #32 from tarcieri/factor-responses-into-apdu-module Tony Arcieri 2019-11-26 09:26:55 -08:00
  • d3af2f2d80 Factor Response into apdu module; improved debugging Tony Arcieri 2019-11-26 09:06:54 -08:00
  • 5fab09e54d Merge pull request #31 from tarcieri/v0.0.2 Tony Arcieri 2019-11-25 16:59:02 -08:00
  • 77d9dd6e97 v0.0.2 yubikey-piv/v0.0.2 Tony Arcieri 2019-11-25 15:27:04 -08:00
  • aeb4e6c3fc Merge pull request #30 from tarcieri/untested-feature Tony Arcieri 2019-11-25 15:16:56 -08:00
  • a23af7dc31 Add untested Cargo feature for untested functionality Tony Arcieri 2019-11-25 15:02:22 -08:00
  • 9083194c3b Merge pull request #29 from tarcieri/document-project-status Tony Arcieri 2019-11-25 13:57:41 -08:00
  • cf8f3c88cf Document project status in README.md and lib.rs Tony Arcieri 2019-11-25 13:42:22 -08:00
  • eb399cbecc Merge pull request #19 from tarcieri/tests Tony Arcieri 2019-11-25 10:32:30 -08:00
  • fd77e9f844 tests: Initial connect test and docs Tony Arcieri 2019-11-25 09:45:02 -08:00
  • 4039560d97 Merge pull request #17 from tarcieri/pcsc Tony Arcieri 2019-11-25 09:17:51 -08:00
  • 63d7a21c9d transaction: Fix fetch_object result slicing Tony Arcieri 2019-11-25 08:58:19 -08:00
  • 79b1142f21 Remove usages of YKPIV_OBJ_MAX_SIZE Tony Arcieri 2019-11-25 08:49:29 -08:00
  • 67ed32cbf9 msroots: Use clippy's suggested logic simplification Tony Arcieri 2019-11-25 08:36:30 -08:00
  • c54f66acb4 transaction: Always require padded PIN for verify_pin Tony Arcieri 2019-11-25 08:27:54 -08:00
  • 6e4819bad1 msroots: Match original C logic for MSROOTS tag matching Tony Arcieri 2019-11-25 08:26:05 -08:00
  • a9d7996aa6 metadata: Re-add check that we're not at end-of-buffer Tony Arcieri 2019-11-25 08:22:12 -08:00
  • 9367218c7d Apply suggestions from code review Tony Arcieri 2019-11-25 07:38:33 -08:00
  • e18828d048 Apply suggestions from code review Tony Arcieri 2019-11-25 07:19:20 -08:00
  • ebbf043bc9 Rewrite translated code to use the pcsc crate Tony Arcieri 2019-11-24 15:57:39 -08:00
  • 96cd5d080b Merge pull request #15 from tarcieri/apdu-cleanups Tony Arcieri 2019-11-21 09:18:30 -08:00
  • bd485eb912 Clean up APDU construction with builder API Tony Arcieri 2019-11-21 09:05:32 -08:00
  • 64bf135f6c Merge pull request #14 from tarcieri/yubikey-struct-methods Tony Arcieri 2019-11-21 08:37:31 -08:00
  • b5bee1aa2f Factor yubikey module fns into struct methods Tony Arcieri 2019-11-21 08:20:08 -08:00
  • 7b1d98f695 Merge pull request #13 from tarcieri/rename-errorkind Tony Arcieri 2019-11-21 07:50:13 -08:00
  • f372cfc2a7 Rename ErrorKind to Error Tony Arcieri 2019-11-21 07:37:51 -08:00
  • 9b6fb7a39c Merge pull request #12 from str4d/internal-cleanups Tony Arcieri 2019-11-21 06:50:14 -08:00
  • d01d2dec84 Minor internal cleanups Jack Grigg 2019-11-21 13:14:53 +00:00
  • 7412c02892 Remove dead code from internals Jack Grigg 2019-11-21 13:12:46 +00:00
  • 6e24660a80 Clean up internal::setting_get_bool Jack Grigg 2019-11-21 13:08:24 +00:00
  • ad21eaea81 Merge pull request #10 from str4d/3des Tony Arcieri 2019-11-20 17:07:02 -08:00
  • a71389a820 Remove completed TODO Jack Grigg 2019-11-21 00:48:48 +00:00
  • 35cc1bbf72 Address clippy lints Jack Grigg 2019-11-21 00:44:49 +00:00
  • 86fde50c2d Use des crate for 3DES operations Jack Grigg 2019-11-21 00:19:34 +00:00
  • 634740d751 Merge pull request #9 from str4d/pbkdf2 Tony Arcieri 2019-11-20 13:44:26 -08:00
  • c5a486cb4b Replace PKCS5_PBKDF2_HMAC_SHA1 with crates Jack Grigg 2019-11-20 21:18:03 +00:00
  • 87c00a9b61 Merge pull request #8 from str4d/getrandom Tony Arcieri 2019-11-20 13:17:06 -08:00
  • c0bbf9aa06 Replace RAND_bytes with getrandom crate Jack Grigg 2019-11-20 21:02:28 +00:00
  • ffdb114ae5 Merge pull request #7 from tarcieri/log Tony Arcieri 2019-11-20 11:42:21 -08:00
  • c3d5df1643 Use log crate for logging Tony Arcieri 2019-11-20 11:28:43 -08:00
  • f25eed1a86 Merge pull request #6 from str4d/1-replace-ok-with-result Tony Arcieri 2019-11-20 07:11:05 -08:00
  • 683e463824 Silence _ykpiv_end_transaction "unused Result" clippy warnings Jack Grigg 2019-11-20 12:38:38 +00:00
  • ce55e08af8 Explicitly ignore _cache_pin errors Jack Grigg 2019-11-20 12:35:38 +00:00
  • 88ec6bcb32 Remove redundant Result from ykpiv_disconnect Jack Grigg 2019-11-20 12:32:19 +00:00
  • b23ed1d48a Pass response to ykpiv_auth_verifyresponse by value Jack Grigg 2019-11-20 12:32:04 +00:00
  • 6324f7a75d Document tries field of ErrorKind::WrongPin Jack Grigg 2019-11-20 12:26:33 +00:00
  • 9252765940 Fix bug in ykpiv_util_block_puk Jack Grigg 2019-11-20 12:25:23 +00:00
  • a43bddb531 Pointers -> refs in ykpiv_auth_verifyresponse Jack Grigg 2019-11-20 12:21:42 +00:00
  • 71a334a9b8 fn ykpiv_auth_getchallenge() -> Result<[u8; 8], ErrorKind> Jack Grigg 2019-11-20 12:16:23 +00:00
  • b750b9cbbb Convert tries pointers into Result elements Jack Grigg 2019-11-20 12:06:49 +00:00
  • 31ef465571 fn _ykpiv_get_version() -> Result<Version, ErrorKind> Jack Grigg 2019-11-20 11:44:13 +00:00
  • 90bdda85cb fn _ykpiv_get_serial() -> Result<u32, ErrorKind> Jack Grigg 2019-11-20 11:39:58 +00:00
  • c394511c60 Convert APDU pointer into mutable reference Jack Grigg 2019-11-20 11:31:23 +00:00
  • 4e710da32c Remove ErrorKind::Ok Jack Grigg 2019-11-20 11:17:17 +00:00
  • 7add9bfa41 Convert remaining APIs to Result<(), ErrorKind> Jack Grigg 2019-11-20 11:16:44 +00:00
  • 6c03ea89ec Return Result<(), ErrorKind> from most internal APIs Jack Grigg 2019-11-20 11:09:59 +00:00
  • 5733d0b0af Convert Yubikey pointers into mutable references Jack Grigg 2019-11-20 01:07:15 +00:00
  • 943dd6f146 Return Result<(), ErrorKind> from most APIs Jack Grigg 2019-11-19 20:22:20 +00:00
  • 65ec5aad63 Merge pull request #3 from tarcieri/gitter-badge Tony Arcieri 2019-11-19 08:36:45 -08:00
  • 012d164e12 README.md: Update Gitter badge URLs Tony Arcieri 2019-11-18 20:38:26 -08:00
  • 9bcd85bce0 Merge pull request #2 from tarcieri/v0.0.1 Tony Arcieri 2019-11-18 19:20:58 -08:00
  • cccdd8dfa9 v0.0.1 yubikey-piv/v0.0.1 Tony Arcieri 2019-11-18 19:10:04 -08:00
  • 9195d5efd0 Merge pull request #1 from tarcieri/actions-rs Tony Arcieri 2019-11-18 19:05:06 -08:00
  • 6beb077f25 actions-rs configuration Tony Arcieri 2019-11-18 18:20:05 -08:00
  • 7e2cafd0c4 Project boilerplate (metadata, docs, code of conduct) Tony Arcieri 2019-11-18 17:58:54 -08:00
  • 4b0ad478b3 Reformat Cargo.toml Tony Arcieri 2019-11-18 17:04:42 -08:00
  • bf5cda9af9 Remove legacy C implementation Tony Arcieri 2019-11-18 15:47:04 -08:00
  • 7d40a9917e oxidize: Fix second pass of compile errors and commented-out code Tony Arcieri 2019-11-17 09:02:18 -08:00
  • 1d86885ab1 oxidize: Fix first pass of compile errors Tony Arcieri 2019-11-17 08:21:48 -08:00
  • 4cd59cb992 oxidize: Add pub mod directives and run rustfmt Tony Arcieri 2019-08-10 14:53:25 -07:00
  • 5e0e0fe0c2 oxidize: Fix or note any translation errata Tony Arcieri 2019-08-10 14:50:36 -07:00
  • 29fe670896 oxidize: Factor into standard Rust crate structure Tony Arcieri 2019-08-10 11:14:18 -07:00
  • 45ba342f57 oxidize: Initial corrode translation Tony Arcieri 2019-08-10 10:48:02 -07:00
  • a226b56696 oxidize: Prep directory structure for Rust translation Tony Arcieri 2019-08-10 10:02:26 -07:00
  • f794d02392 Merge PR #201 Alessio Di Mauro 2019-07-17 09:29:30 +02:00
  • 48e310c33f lib: Implemented change pin for the puk key Tharsan Ponnampalam 2019-07-16 16:04:39 -04:00
  • cd2acd3ee5 Merge PR #198 Alessio Di Mauro 2019-07-15 09:19:44 +02:00