Commit graph

  • 1d4f058858 add comment about Gnuk pin change precondition Heiko Schaefer 2021-10-27 12:07:59 +0200
  • 3407cd3a39 Add reset_user_pin() fn for Open and for Admin, as well as set_resetting_code() to Admin. Heiko Schaefer 2021-10-26 21:56:22 +0200
  • 2c0c19502f Add change_user_pin() and change_admin_pin() Heiko Schaefer 2021-10-26 14:45:05 +0200
  • 77c7a90daf sq_util::get_subkey() now returns an Option. Not finding any subkey is not an error. Heiko Schaefer 2021-10-23 19:59:45 +0200
  • 5d8b547158 Build and run card-functionality tests against two JavaCard images (SmartPGP and YubiKey NEO) Heiko Schaefer 2021-10-19 20:11:48 +0200
  • dfca788e2f Yet more documentation edits. Heiko Schaefer 2021-10-13 16:44:37 +0200
  • f2b65e7880 Some more edits for documentation. Heiko Schaefer 2021-10-11 12:11:56 +0200
  • 63576de817 Add documentation, in particular for running the tests against emulated Gnuk. Heiko Schaefer 2021-10-11 11:53:41 +0200
  • 73593e66e7 Add "list-cards" tool. Heiko Schaefer 2021-10-08 00:51:01 +0200
  • a4c04de09c Add notes about using Protected memory for private key material. Heiko Schaefer 2021-10-05 17:38:08 +0200
  • ddf62dbfe2 Use the MPI::value_padded() method for left-padding. Heiko Schaefer 2021-10-05 17:11:52 +0200
  • 40c52c7f3a Merge branch 'add-more-examples' into 'main' Heiko 2021-10-01 15:35:33 +0000
  • 1ec7fc97dc
    Add decrypt and detach-sign examples Wiktor Kwapisiewicz 2021-09-27 12:29:38 +0200
  • 1ce74ab8c6 Pad private key scalars of ECC keys. Heiko Schaefer 2021-09-23 20:54:33 +0200
  • c73a4fa2f8 Adjust card name to the shop's naming. Heiko Schaefer 2021-09-22 16:42:43 +0200
  • 6d24054e1e Normalize capitalization to "OpenPGP card" Heiko Schaefer 2021-09-22 16:41:53 +0200
  • 6de3901c12 Add a NIST384 key for testing. Heiko Schaefer 2021-09-22 13:22:45 +0200
  • 43e57ffc7a Make password exploration-test more robust. Heiko Schaefer 2021-09-21 19:54:43 +0200
  • 10ddb8918d Add an RSA1k key for testing (with older cards). Heiko Schaefer 2021-09-21 17:18:43 +0200
  • cf8fb05210 Don't set a policy implicitly. Heiko Schaefer 2021-09-21 16:57:55 +0200
  • dbbe4ed4c1 Fix comparison of card ident (the test config shouldn't be case sensitive) Heiko Schaefer 2021-09-21 16:49:47 +0200
  • 5417fde8ca Implement support for alternate ECC import format (which includes public key data) Heiko Schaefer 2021-09-21 09:47:11 +0200
  • 200d7e60d1 Algo attributes for key generation should be checked if we can't set them. Heiko Schaefer 2021-09-20 21:50:38 +0200
  • c0088c4eae Hack for SmartPGP applet (use the last of the suitable algorithm variants from the Algorithm Information list). Heiko Schaefer 2021-09-20 20:36:37 +0200
  • 56e3845ea4 Explicitly set policy when calling util::upload_subkeys() Heiko Schaefer 2021-09-19 19:27:37 +0200
  • 773117965c Add RSA1k/17 and RSA1k/32 to AlgoSimple Heiko Schaefer 2021-09-19 19:25:37 +0200
  • 332360cbbb Implement additional import formats for RSA key import. Heiko Schaefer 2021-09-19 19:15:39 +0200
  • 256690d97c Print RSA import format in Display for Algo Heiko Schaefer 2021-09-19 19:13:51 +0200
  • 0bf59c7e51 In key generation: don't set algo attributes if the card doesn't support that feature. Heiko Schaefer 2021-09-17 13:56:28 +0200
  • a39f25d8a3 Handle SW_EXACT_LENGTH (0x6c??) in send_command() Heiko Schaefer 2021-09-17 13:36:20 +0200
  • 60c67d3ebe Print status bytes as hex, for UnknownStatus Heiko Schaefer 2021-09-16 17:17:19 +0200
  • 5e92f4ee25 Adjust to changed extended_capabilities types. Heiko Schaefer 2021-09-16 02:38:25 +0200
  • e1af08646a Add comment Heiko Schaefer 2021-09-16 02:07:05 +0200
  • 39df280d70 Fix comment type Heiko Schaefer 2021-09-16 02:05:28 +0200
  • cdb72e271c Fix existing test, add test for v2 card Heiko Schaefer 2021-09-16 01:52:34 +0200
  • 3cc9a09290 Implement discrete handling of v2 and v3 ExtendedCapabilities. Heiko Schaefer 2021-09-15 17:39:47 +0200
  • f2e5fea0fc extended capabilities: restructure, to prepare for different versions of this DO Heiko Schaefer 2021-09-14 01:50:56 +0200
  • 245740febc More precise debug output. Heiko Schaefer 2021-09-13 19:45:17 +0200
  • d5651e96bb Reorganize key uploading API Heiko Schaefer 2021-09-11 16:54:20 +0200
  • 1b9d860adf Minor edits on doc comments. Heiko Schaefer 2021-09-11 16:51:57 +0200
  • 0d249a47fd sq_util::get_subkey() is now the central helper fn for picking a (sub)key from a Cert. Heiko Schaefer 2021-09-11 16:27:31 +0200
  • d020d5a8c5 Add authentication subkeys to example keys. Heiko Schaefer 2021-09-11 13:44:06 +0200
  • fe06db3510 Release pcsc and -sequoia Heiko Schaefer 2021-09-11 13:02:54 +0200
  • 3b3a3b5064 More documentation Heiko Schaefer 2021-09-11 12:57:29 +0200
  • 77b2ca98b0 Misc cleanup: Simplify verify_foo() calls. More orderly output. Remove Scdc for now. Heiko Schaefer 2021-09-10 23:01:14 +0200
  • be95b9de43 Normalize fn names: remove 'get_' prefixes, and adjust to naming in the spec. Heiko Schaefer 2021-09-10 22:16:57 +0200
  • 0e2b53feb4 Fix the assumptions about authorization underlying the card::* types: Heiko Schaefer 2021-09-10 21:59:02 +0200
  • 1613f23ecc Minor adjustments to output formatting. Adjust path to example-data. Heiko Schaefer 2021-09-10 21:55:48 +0200
  • a5b6ce468d Add high level crate documentation. Heiko Schaefer 2021-09-10 17:02:04 +0200
  • 93fa9d9650 Make naming consistent. Heiko Schaefer 2021-09-10 17:01:25 +0200
  • 936f04663c Rename list_cards() -> cards(). Remove open_yolo() from the openpgp-card-pcsc API (it's easy enough to approximate by using cards()) Heiko Schaefer 2021-09-10 14:34:33 +0200
  • 55e7a2c794 Re-ordering the -sequoia crate, as a first step towards defining its API. Heiko Schaefer 2021-09-10 13:51:28 +0200
  • e261d4d041 Fix refactoring mistake in rustdoc. Heiko Schaefer 2021-09-09 18:17:46 +0200
  • 8814dbd766 Add test_change_pw() and test_resetting(), both of which are still in an exploratory stage. Heiko Schaefer 2021-09-09 01:04:13 +0200
  • 0302387bea Releases Heiko Schaefer 2021-09-09 00:46:52 +0200
  • 62b7b35ab0 Clean up Command, simplify serialization. Heiko Schaefer 2021-09-08 23:56:18 +0200
  • 52bdf4cffd Implement change_pw1(), change_pw3(), reset_retry_counter_pw1(). Heiko Schaefer 2021-09-08 11:18:18 +0200
  • 891b57df06 Throw error for unexpected input length for Fingerprint. Heiko Schaefer 2021-09-07 15:00:22 +0200
  • 6cfe340d2b Clippy lints Heiko Schaefer 2021-09-07 14:44:37 +0200
  • 5a49b578f9 Throw errors for unexpected values while processing ExtendedCapabilities from the card. (Note: observed mse_command_support values were 0/1/255, so checks for that field have been disabled for now) Heiko Schaefer 2021-09-07 14:26:29 +0200
  • 6a7cb7287a Remove obsolete FIXME comments (this case is now handled upstream) Heiko Schaefer 2021-09-07 13:59:33 +0200
  • 2e7ee82a58 Use StatusBytes in RawResponse (instead of a pair of u8). Replace status bytes constants in the code with StatusBytes enum variants. Heiko Schaefer 2021-09-07 13:28:01 +0200
  • c5d03bd677 Rename StatusByte -> StatusBytes Heiko Schaefer 2021-09-07 11:50:20 +0200
  • a52f3a648e Check for OK status code in chained replies. Heiko Schaefer 2021-09-06 22:34:06 +0200
  • bc7dede0ac Move the code that creates a DO for setting algorithm attributes into Algo. Heiko Schaefer 2021-09-06 17:07:47 +0200
  • 5fcb454b9c Remove FIXMEs; add panic to match branches that should not happen Heiko Schaefer 2021-09-06 12:30:56 +0200
  • 5ccd6be1bb Remove asserts for password lengths (running the command and returning the card's error, if any, seems more appropriate) Heiko Schaefer 2021-09-06 12:27:44 +0200
  • ad929598ce Rename Features -> ExCapFeatures Heiko Schaefer 2021-09-03 20:03:50 +0200
  • 48803eb454 Break apart key import function. Heiko Schaefer 2021-09-03 18:49:35 +0200
  • 7a78271211 Rename decrypt() to decipher(), to correspond with naming in spec. Add a note to investigate PKCS#1 formatting of the command input. Heiko Schaefer 2021-09-03 13:45:19 +0200
  • 17ee12566f Minor edits to comments Heiko Schaefer 2021-09-02 22:13:15 +0200
  • 8b5894e961 Rename get_app_data() to get_application_related_data() to correspond with naming in spec. Heiko Schaefer 2021-09-02 22:09:46 +0200
  • f5b31aac26 Move KeySet from card_do.rs to lib.rs (It is not a DO, only a container to conveniently handle triples of DO) Heiko Schaefer 2021-09-02 21:59:05 +0200
  • 6b3ae2cf62 Adjust DO struct names to correspond to naming in the spec Heiko Schaefer 2021-09-02 21:54:44 +0200
  • a415ec9a50 Minor edit in comment Heiko Schaefer 2021-09-02 21:54:19 +0200
  • ee349d9083 impl From instead of Into Heiko Schaefer 2021-09-02 21:44:35 +0200
  • 393e58d489 Add simple unit tests for all card_do Heiko Schaefer 2021-09-02 20:04:30 +0200
  • c7751ff4ce Implement TryFrom (instead of offering that functionality without implementing the trait) Heiko Schaefer 2021-09-02 18:00:55 +0200
  • b560d4eb5a Add assert to hacky decryption case Heiko Schaefer 2021-09-02 17:58:10 +0200
  • c377f37a9b Rename "foo/mod.rs => foo.rs" Heiko Schaefer 2021-09-02 16:55:31 +0200
  • 18819c65d9 Edit comment Heiko Schaefer 2021-09-02 16:52:47 +0200
  • 316ca7eb3a Rename error types and re-export them at the crate top level. Heiko Schaefer 2021-09-01 23:59:56 +0200
  • f501c09d2f Add #[non_exhaustive] to error and crypto_data enums. Heiko Schaefer 2021-09-01 22:46:04 +0200
  • 84a7f0060d Fix problem in test on debian stable Rust. Heiko Schaefer 2021-09-01 22:35:26 +0200
  • b6cc237f61 Make low level signing and decryption fn private. Adjust docs. Heiko Schaefer 2021-09-01 22:27:37 +0200
  • f8d998b3a6 Implement From<CardClientBox>, Into<CardClientBox> for CardApp and adjust client code. Heiko Schaefer 2021-09-01 22:26:25 +0200
  • 88c924c7d9 Add documentation, normalize fn names. Heiko Schaefer 2021-09-01 20:45:18 +0200
  • 65780cf352 Explicitly handle RSA keysizes that are not in the card's algorithm list as an error. Heiko Schaefer 2021-08-29 18:21:38 +0200
  • 5a6a5754e1 Add an RSA3k private key for import tests Heiko Schaefer 2021-08-29 18:00:23 +0200
  • a89a106d20 Print ApplicationId in test_print_caps Heiko Schaefer 2021-08-28 19:59:23 +0200
  • 935c77f59a Rename ApplicationRelatedData::get_aid() to get_application_id() Heiko Schaefer 2021-08-28 19:58:34 +0200
  • c25c8b55b8 Cleanup Tlv, Tag, Value: - Make Tlv/Tag fields private. - Rename TlvEntry to Value. - impl TryFrom<&[u8]> for Tlv Heiko Schaefer 2021-08-28 18:02:08 +0200
  • 821b5f0dae Make error messages easier to read. Heiko Schaefer 2021-08-28 17:54:39 +0200
  • 4ba7a4707f Adjust graph details, add some more detail to the backends section. Heiko Schaefer 2021-08-28 14:00:49 +0200
  • 0cdf5ce2a4 Added more text about architecture. Heiko Schaefer 2021-08-28 13:47:20 +0200
  • 6583c160eb Edit comment Heiko Schaefer 2021-08-28 11:58:42 +0200
  • 889ac234c6 Clean up AlgoSimple::get_algo(). Heiko Schaefer 2021-08-28 11:57:04 +0200
  • 139f3116f2 Document known limitations of scdc Heiko Schaefer 2021-08-27 23:05:58 +0200
  • d766a1c474 markdown fix Heiko Schaefer 2021-08-27 22:33:19 +0200
  • 75c0bae206 clarify Heiko Schaefer 2021-08-27 22:32:20 +0200