Heiko Schaefer
2b0111b923
openpgp-card: rustdoc
2023-09-06 01:16:32 +02:00
Heiko Schaefer
ff1afee7c5
openpgp-card: rename RsaAttrs->RsaAttributes, EccAttrs->EccAttributes
2023-09-06 01:16:32 +02:00
Heiko Schaefer
423c9d23ee
openpgp-card: add Curve::Unknown variant
2023-09-06 01:16:32 +02:00
Heiko Schaefer
da776bc4cf
openpgp-card: rename AlgorithmInformation::filter_by_keytype -> for_keytype
2023-09-06 01:16:32 +02:00
Heiko Schaefer
f7f7a1dd3c
openpgp-card: rename AlgoInfo->AlgorithmInformation
2023-09-06 01:16:32 +02:00
Heiko Schaefer
32c59a15b1
openpgp-card: move setting of AlgorithmAttributes out of gen_key_with_metadata()
2023-09-06 01:16:32 +02:00
Heiko Schaefer
11ce179c00
openpgp-card: lint fix (replace deprecated chrono call)
2023-09-06 01:16:32 +02:00
Heiko Schaefer
9761e0e664
openpgp-card: internal API cleanup, continued
2023-09-06 01:16:32 +02:00
Heiko Schaefer
315aa7a94c
openpgp-card: Transaction::card_caps doesn't need to be mut
2023-09-06 01:16:32 +02:00
Heiko Schaefer
f659a623d2
openpgp-card: handle backend capability hints in Card::new
2023-09-06 01:16:32 +02:00
Heiko Schaefer
b88caa2471
openpgp-card: rename UIF -> UserInteractionFlag
2023-09-06 01:16:32 +02:00
Heiko Schaefer
58facac819
openpgp-card: fix rustdoc markup
2023-09-06 01:16:32 +02:00
Heiko Schaefer
2d1bf919d4
openpgp-card: rename Openpgp and OpenpgpTransaction, restructure modules
2023-09-06 01:16:32 +02:00
Heiko Schaefer
01ef1ec4d1
openpgp-card: internal API tweaks
...
Reduce unnecessary use of ApplicationRelatedData.
2023-09-06 01:16:32 +02:00
Heiko Schaefer
e6658713cb
openpgp-card: rename Algo -> AlgorithmAttributes
2023-09-06 01:16:32 +02:00
Heiko Schaefer
8e4ee08802
openpgp-card: minor cleanup
2023-09-06 01:16:32 +02:00
Heiko Schaefer
308bd804ae
openpgp-card-sequoia: rustdoc
2023-09-06 01:16:32 +02:00
Heiko Schaefer
d3e30d5c4c
openpgp-card-sequoia: re-export Fingerprint
2023-09-06 01:16:32 +02:00
Heiko Schaefer
566fd6f9a0
card-functionality: Perform the full set of tests in a single Card<Transaction>
2023-09-06 01:16:32 +02:00
Heiko Schaefer
746f2f647d
card-functionality: adjust to backend and openpgp-card-sequoia API changes
2023-09-06 01:16:32 +02:00
Heiko Schaefer
ccf605f086
openpgp-card-sequoia: make Card<Transaction>::new private
2023-09-06 01:16:31 +02:00
Heiko Schaefer
dcf98c512c
openpgp-card-sequoia: add Card<Admin>::set_pw_status_bytes
2023-09-06 01:16:31 +02:00
Heiko Schaefer
2601e58fe3
openpgp-card-sequoia: rename Card<Admin>::as_open to ::as_transaction
2023-09-06 01:16:31 +02:00
Heiko Schaefer
212e7f335f
openpgp-card-sequoia: Transaction::to_*_card() methods
...
Allow more ergonomic switching to User/Sign/Admin states by directly providing a PIN, while also allowing a `None` parameter if verification has already happened.
2023-09-06 01:16:31 +02:00
Heiko Schaefer
8d5b1c0563
openpgp-card-example: adjust to card-backend refactor
2023-09-06 01:16:31 +02:00
Heiko Schaefer
7de74d702e
openpgp-card-sequoia: adjust example
2023-09-05 19:08:37 +02:00
Heiko Schaefer
15646bc50b
openpgp-card-sequoia: adjust to card-backend refactor
...
Note that a `open_by_ident` fn was added here: the backend now doesn't have knowledge of applications (like OpenPGP) anymore, so it can't select a card by OpenPGP card ident anymore.
2023-09-05 19:08:34 +02:00
Heiko Schaefer
4fda5d800a
scdc: remove redundant log output
2023-08-31 13:26:23 +02:00
Heiko Schaefer
0c07021043
pcsc: store reader name internally
...
The reader name could later be used as a source of information to signal reader limitations to callers (via CardCaps, e.g. readers that don't support extended length commands)
2023-08-29 09:56:50 +02:00
Heiko Schaefer
625df59c86
pcsc: Don't return an error if no reader is found
...
Fixes #68
2023-08-28 17:28:22 +02:00
Heiko Schaefer
f4cc72c37b
card-backend: Add CardTransaction::was_reset()
...
This can signal to consumers that state on the card may have been reset (e.g. PIN verification state)
2023-08-28 17:19:59 +02:00
Heiko Schaefer
84ee2a64f1
openpgp-card: explicitly limit command chunk size to 255 if extended length is unsupported
2023-08-28 12:00:52 +02:00
Heiko Schaefer
61175dd646
openpgp-card: add terminate_df(), activate_file() to OpenPgpTransaction
2023-08-27 22:30:59 +02:00
Heiko Schaefer
9c41ab2286
openpgp-card: add trace log for "Import key material" command
2023-08-27 22:30:59 +02:00
Heiko Schaefer
fac3ac6468
README
2023-08-27 22:30:59 +02:00
Heiko Schaefer
0e89c4baa6
Move backend traits to new card-backend crate
...
- Move CardBackend, CardTransation traits to card-backend
- Break SmartcardErrors out from openpgp-card to card-backend
- CardCaps are (mostly) openpgp-card specific, move them (mostly) to openpgp-card
- Rename pcsc and scdc backend crates: card-backend-pcsc, card-backend-scdc
2023-08-27 22:24:16 +02:00
Heiko Schaefer
a2232ebf86
fix lint
2023-08-26 15:49:59 +02:00
Heiko Schaefer
c6518b91e2
ci: disable hardware tests; run udeps independently
...
udeps takes relatively long to run, and shouldn't block the other stages.
2023-08-24 21:52:51 +02:00
Heiko Schaefer
ce1e0e0bc4
ci: fix dependencies for rust 1.63-based jobs
2023-08-24 21:48:43 +02:00
Heiko Schaefer
0b5281b56a
ci: patch dependencies for rust 1.63-based jobs
2023-08-24 06:30:36 +02:00
Heiko Schaefer
bf41ab4316
release openpgp-card 0.3.7, openpgp-card-sequoia 0.1.5
2023-08-19 17:24:12 +02:00
Heiko Schaefer
99ca7f4882
openpgp-card: adjust debug hex format for easier re-use of the output
...
Thanks to @sosthene-nitrokey for the suggestion :)
2023-08-17 14:27:12 +02:00
Heiko Schaefer
b19d6ca305
card-functionality: also test RSA3k in opcard-rs
...
New feature since opcard-rs v0.4.0:
https://github.com/Nitrokey/opcard-rs/releases/tag/v0.4.0
2023-08-17 13:44:36 +02:00
Heiko Schaefer
00345fff2c
openpgp-card-sequoia: expose login_data getter/setter
2023-08-17 12:57:32 +02:00
Heiko
5f00bc87aa
Merge branch 'Prezu/login_data' into 'main'
...
Added login data
See merge request openpgp-card/openpgp-card!37
2023-08-17 09:03:33 +00:00
Patryk Cisek
61ab492d9c
Added login data
...
Added ability to read and set login data field.
2023-08-16 18:41:27 -07:00
Heiko Schaefer
5a77950f85
openpgp-card-sequoia: Release 0.1.4
2023-08-16 09:56:01 +02:00
Heiko Schaefer
379a41f4eb
openpgp-card-sequoia: fix dependency on openpgp-card
...
openpgp-card 0.3.6 is needed for OpenPgp::into_card().
2023-08-16 09:55:33 +02:00
Heiko Schaefer
bf62541b48
openpgp-card-sequoia: Release 0.1.3
2023-08-04 15:09:38 +02:00
Heiko Schaefer
da60687e25
openpgp-card-sequoia: update dependency
2023-08-04 15:09:38 +02:00