Commit graph

  • a9bf175ed6 Add architecture diagram and some notes on architecture Heiko Schaefer 2021-08-27 22:30:21 +0200
  • a55f0f6621 Use check_card_algo_ecc() when uploading keys: if algo_list is available and oid is not listed, error out of upload_key(). Heiko Schaefer 2021-08-27 21:42:18 +0200
  • cb2269c761 Remove redundant check_card_algo_e*() fn. Heiko Schaefer 2021-08-27 21:29:23 +0200
  • 7748a7b1e0 Improve documentation of determining algorithm attributes for key import. Implement setting of default RSA values when neither algo info nor algo attrs for import of an RSA key are available. Heiko Schaefer 2021-08-27 21:12:36 +0200
  • ea8e33b6d5 Return Err for unexpected cases. Heiko Schaefer 2021-08-27 19:24:15 +0200
  • 0e37967200 Handle Attestation KeyType as a type of signing key. Heiko Schaefer 2021-08-27 19:23:21 +0200
  • e4eff705af Make AlgoSimple, Algo, Curve non_exhaustive. Heiko Schaefer 2021-08-27 19:22:22 +0200
  • fdac0de34f Add a CI job to run 'cargo test' with rustc/cargo from debian stable. Minor fixes so that the code compiles with rustc 1.48 Heiko Schaefer 2021-08-27 14:15:56 +0200
  • 454d50eb45 Make KeyType non_exhaustive. Heiko Schaefer 2021-08-27 14:49:28 +0200
  • 64f05e93f5 Implement From/TryFrom for conversions of Historical and its members. Heiko Schaefer 2021-08-27 13:55:55 +0200
  • 73829a6b27 Make handling of Historical Bytes more robust. Add unit tests. Heiko Schaefer 2021-08-27 13:39:30 +0200
  • 9b321c5232 Don't fail when the card doesn't support algo information. Heiko Schaefer 2021-08-26 20:57:50 +0200
  • 3d1b166911 Add comments Heiko Schaefer 2021-08-26 20:40:36 +0200
  • 36cf10cbad Tests need to use RsaAttrs::new(). Heiko Schaefer 2021-08-26 20:03:24 +0200
  • 7c8c72339b Use KeyGenerationTime in openpgp-card APIs (instead of u32 or SystemTime) Heiko Schaefer 2021-08-26 19:27:08 +0200
  • 794b04725f Remove redundant import. Heiko Schaefer 2021-08-26 19:25:13 +0200
  • 38c701187d Fix clippy warnings Heiko Schaefer 2021-08-26 18:23:34 +0200
  • eaf46e6bbb Make fields private, add accessor methods. Heiko Schaefer 2021-08-26 17:59:54 +0200
  • fadd327e7c Release pcsc, scdc. Heiko Schaefer 2021-08-26 15:05:40 +0200
  • 9f3ebe8972 Release openpgp-card. Heiko Schaefer 2021-08-26 15:01:59 +0200
  • 6001eacfa1 Make placeholder fn private, for now. Heiko Schaefer 2021-08-26 14:47:41 +0200
  • 7e03ea5642 Use sequoia-ipc release. Heiko Schaefer 2021-08-26 14:23:14 +0200
  • faba8f6ca0 Fix comment Heiko Schaefer 2021-08-26 14:11:16 +0200
  • 5df81dd464 Rename Fingerprint::from() -> to_keyset() Heiko Schaefer 2021-08-25 21:27:28 +0200
  • f3bfecd185 Use the openpgp_card::card_do::Fingerprint type instead of [u8; 20]. Add a TryFrom<&[u8]> implementation to Fingerprint. Heiko Schaefer 2021-08-25 21:25:20 +0200
  • c6ba204293 Move debug prints for key generation from keys.rs to tests.rs Heiko Schaefer 2021-08-25 21:18:13 +0200
  • 786515a7f4 Make fields of Command private. Heiko Schaefer 2021-08-25 17:29:21 +0200
  • 833a22f8f0 Add test to explore cardholder cert functionality Heiko Schaefer 2021-08-25 16:42:18 +0200
  • 39f48bf13b Add get_data() method to Response. Heiko Schaefer 2021-08-25 16:42:00 +0200
  • 780b6e724c Implement get_cardholder_certificate()/set_cardholder_certificate() and select_data(). Heiko Schaefer 2021-08-25 13:59:53 +0200
  • 20cfcead02 Adjust ExtendedCap field names Heiko Schaefer 2021-08-25 13:32:30 +0200
  • 159af0d98c Explicitly depend on sequoia with branch="main", for the time being Heiko Schaefer 2021-08-25 13:29:45 +0200
  • f9bad31d63 Explicitly limit size of data. Heiko Schaefer 2021-08-25 13:07:25 +0200
  • 6d08b34a87 Make mod test more readable. Heiko Schaefer 2021-08-25 12:34:46 +0200
  • 5a766b78a4 Fix for older rust versions (std::array::IntoIter was only stabilized in 1.51.0) Heiko Schaefer 2021-08-25 12:20:31 +0200
  • 02987a86e4 Add links to rustdoc. Heiko Schaefer 2021-08-24 09:58:41 +0200
  • 013af97c23 Implement get_private() and set_private(). Heiko Schaefer 2021-08-22 18:59:54 +0200
  • cb8f3c7cb1 Elaborate "PW status bytes", fix broken naming of members. Implement set_pw_status_bytes(). Add test code to card-functionality. Heiko Schaefer 2021-08-22 01:20:14 +0200
  • c14664b9d5 Implement get_security_support_template() Heiko Schaefer 2021-08-21 20:22:03 +0200
  • 09ee8f4792 Add a get_data() helper fn Heiko Schaefer 2021-08-21 19:38:17 +0200
  • 84cd586b18 Remove public visibility for unimplemented fn. Heiko Schaefer 2021-08-21 19:01:44 +0200
  • 5109ac5445 Rename card_data -> card_do Heiko Schaefer 2021-08-21 18:45:13 +0200
  • b075ad5908 Clean up imports Heiko Schaefer 2021-08-21 18:01:58 +0200
  • 0d27352520 Move tlv test to tlv.rs Heiko Schaefer 2021-08-21 17:48:09 +0200
  • f28c9c2204 Adjust visibility and add accessors to CardCaps. Heiko Schaefer 2021-08-21 17:45:11 +0200
  • a8c53056f0 Limit visibility of KeyType methods Heiko Schaefer 2021-08-21 17:44:25 +0200
  • 6ad4231d16 Minor doc edits Heiko Schaefer 2021-08-21 17:42:46 +0200
  • d599471be5 Refactor: move cryptographic data structures to the module crypto_data Heiko Schaefer 2021-08-21 17:35:21 +0200
  • 44e915d3e0 Refactor: move OpenPGP card data structures (and parsing) into the module card_data Heiko Schaefer 2021-08-21 15:59:31 +0200
  • 0e0602f3d5 Move ResponseLength to OpenpgpCardError Heiko Schaefer 2021-08-21 15:51:15 +0200
  • dac30e268e Break out encode_len() fn Heiko Schaefer 2021-08-21 12:42:08 +0200
  • 4d19cc0dbe Fix typo Heiko Schaefer 2021-08-21 12:32:47 +0200
  • 89fda362d1 Add documentation. Heiko Schaefer 2021-08-21 01:19:49 +0200
  • c3ef90638d Add documentation, remove unused TryFrom implementation. Heiko Schaefer 2021-08-21 01:19:14 +0200
  • 7a7db8a131 Rename get_cards->into_cardapps; Fix get_card_app() [doesn't need &mut] Heiko Schaefer 2021-08-20 22:09:32 +0200
  • c872e46e80 Refactor: move accessor fn for "Application Related Data" into the struct ApplicationRelatedData. Heiko Schaefer 2021-08-20 21:41:11 +0200
  • 50499dc15d Expand top-level README Heiko Schaefer 2021-08-20 19:32:25 +0200
  • d62f73e84c Add panic message. Heiko Schaefer 2021-08-20 13:23:48 +0200
  • 191c6221b4 Print human readable card name. Heiko Schaefer 2021-08-20 13:23:25 +0200
  • 8aae0a357e Split the Response type into an internal RawResponse type which also contains the status bytes, and an external Response type that can only be generated from a RawResponse with status "ok". Heiko Schaefer 2021-08-20 13:17:08 +0200
  • 4959307b1f Limit visibilities. Heiko Schaefer 2021-08-20 10:45:30 +0200
  • a3f2c930f2 Documentation. Heiko Schaefer 2021-08-20 10:43:43 +0200
  • 421ffe3599 Add documentation, limit visibilities. Heiko Schaefer 2021-08-20 00:04:56 +0200
  • cc16e7976b Add documentation. Heiko Schaefer 2021-08-19 17:39:44 +0200
  • 73cb298361 Adjust crate name to be in the same "namespace" as the other openpgp-card-* crates. Heiko Schaefer 2021-08-19 17:39:24 +0200
  • f4b90dc4e7 Bump version for release Heiko Schaefer 2021-08-18 20:14:30 +0200
  • a35ba66784 Minor edit of README Heiko Schaefer 2021-08-18 20:10:48 +0200
  • b8e3fc4816 Set version numbers for crates.io releases Heiko Schaefer 2021-08-18 19:57:54 +0200
  • 85a05167d1 Refactor, Document API. (Moved algorithm-related data structures to algorithm.rs) Heiko Schaefer 2021-08-18 19:19:22 +0200
  • 6be4daa690 Switch back to using the PCSC backend in the test code. Heiko Schaefer 2021-08-18 15:02:15 +0200
  • bf8ab84668 Documentation. Heiko Schaefer 2021-08-18 15:01:38 +0200
  • 0b0e9c48fc Refactor: - Move high-level API from openpgp-card to openpgp-card-sequoia - Move the pcsc backend into the separate crate openpgp-card-pcsc Heiko Schaefer 2021-08-18 14:03:54 +0200
  • b5ebc6b43c Print card name from config in test output Heiko Schaefer 2021-08-17 14:24:54 +0200
  • 413e464cff Remove ciphertexts from the test data directory (ciphertext is now computed on the fly in import tests) Heiko Schaefer 2021-08-15 17:16:15 +0200
  • 404d6dce3f Configure private-key-data for import tests in the toml configuration Heiko Schaefer 2021-08-15 17:12:50 +0200
  • 5237c1af85 Make the config.keygen optional in the configuration file Heiko Schaefer 2021-08-13 21:28:10 +0200
  • 83d9a703db Simplify Heiko Schaefer 2021-08-13 21:27:59 +0200
  • 3361c8b79d Extend Test configuration file format. Run key generation tests for the algorithms specified in the configuration. Heiko Schaefer 2021-08-13 19:49:11 +0200
  • 2ef6e0442d Add an AlgoSimple enum as a simplified way to select an algorithm on a card. Heiko Schaefer 2021-08-13 19:29:20 +0200
  • 765b4e8fdc Move "make_cert" into openpgp-card-sequoia Heiko Schaefer 2021-08-12 15:50:37 +0200
  • f1add02672 Lint fix Heiko Schaefer 2021-08-12 15:22:04 +0200
  • df4b4bdabb Fix: set_fingerprint doesn't expect a reply (failed on FLOSS Card 3.4, after refactoring set_fingerprint) Heiko Schaefer 2021-08-11 21:09:44 +0200
  • a0370c5c53 WIP: more testing in the context of on-card key generation. Heiko Schaefer 2021-08-11 19:46:10 +0200
  • 6904551c7d Set key flags while generating a Cert from card information. Heiko Schaefer 2021-08-11 19:44:23 +0200
  • e9f1256309 Remove/adjust debug prints Heiko Schaefer 2021-08-11 19:40:40 +0200
  • ca5dd61001 Assemble information from the card into a Cert. Heiko Schaefer 2021-08-11 14:33:20 +0200
  • 9e5bb9b5a6 Make CardSigner accessible (for use in card-functionality crate) Heiko Schaefer 2021-08-11 14:12:42 +0200
  • 27b6d686d9 Refactor card-functionality crate, tentatively breaking tests into groups. Heiko Schaefer 2021-08-10 14:49:55 +0200
  • 44d5abd7ed WIP: Handling of public key material from cards Heiko Schaefer 2021-08-10 14:38:29 +0200
  • 3edadb8607 Add a "test" fn that prints algorithm information for cards. Heiko Schaefer 2021-08-09 19:21:33 +0200
  • 608e6533a6 Move 'Algo' and related data structures to lib.rs. Heiko Schaefer 2021-08-09 13:17:19 +0200
  • 99be1fb7da Cleanup field naming in EccAttrs: t->ecc_type. Heiko Schaefer 2021-08-08 09:38:46 +0200
  • a0d92d2dc4 Refactor: add a set_fingerprint() method to CardApp. Use that method instead of manually calling the apdu command. Change type of fingerprint in CardUploadableKey to [u8; 20]. Heiko Schaefer 2021-08-07 19:27:24 +0200
  • 260c38ef25 Adjust tests to changes in Algo struct Heiko Schaefer 2021-08-07 18:24:37 +0200
  • 8bc7ffd940 Refactor code for set_algorithm_attributes() Heiko Schaefer 2021-08-07 17:44:35 +0200
  • 5e0ee12e17 Simplify unwrapping Error Heiko Schaefer 2021-08-07 17:15:22 +0200
  • d9a25c23c9 Remove printlns Heiko Schaefer 2021-08-07 00:54:01 +0200
  • feb6f7be51 Implement get_pub_key() Heiko Schaefer 2021-08-07 00:18:13 +0200
  • 7acc1deb98 - Implement key generation (without specifying an algorithm so the current algo is used. only supports RSA for now) - Refactor: rename key_upload.rs -> keys.rs - Fix handling of key timestamps Heiko Schaefer 2021-08-06 20:14:02 +0200
  • 538bfb51d4 Sort imports. Heiko Schaefer 2021-08-06 16:44:48 +0200