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
Heiko Schaefer
7c42ec4d5e
openpgp-card-sequoia: add Card<Open>::into_card()
2023-08-04 15:09:38 +02:00
Heiko Schaefer
06cb246a79
ci: allow failure for debian job
2023-08-04 15:09:38 +02:00
Heiko Schaefer
1be9cea119
ci: allow clippy job to fail
2023-08-04 15:09:38 +02:00
Heiko Schaefer
822b7f3b55
clippy lint fix
2023-08-04 15:09:38 +02:00
Heiko Schaefer
6e20b9bde4
openpgp-card: release 0.3.6
2023-08-04 14:24:34 +02:00
Heiko Schaefer
b852393039
openpgp-card: add OpenPgp::into_card()
2023-08-04 14:24:34 +02:00
Heiko Schaefer
d0fc4b5725
ci: Add tests against canokey virtual card
...
(see https://github.com/canokeys/canokey-core )
Fixes #4 .
2023-05-19 16:30:45 +02:00
Heiko Schaefer
4ef4291b53
ci: manually downgrade lalrpop on debian bookworm-based images
...
This is a workaround to run tests on debian bookworm (with Rust 1.63).
2023-05-19 16:30:45 +02:00
Heiko Schaefer
ff8554de3b
ci: manually add "$HOME/.cargo/bin" to PATH
2023-05-19 16:30:45 +02:00
Heiko Schaefer
5e96cb6f07
ci: fix opgpcard-rs test image
...
There is currently no opcard-rs-builddeps image, use opcard-rs-tools instead.
2023-05-19 15:55:50 +02:00
Heiko Schaefer
321258ec06
pcsc: Release 0.3.1
2023-05-01 19:07:48 +02:00
Heiko Schaefer
cf5090bbc6
pcsc: add fn PcscBackend::activate_terminated_card()
2023-05-01 19:07:48 +02:00
Heiko Schaefer
806918b939
openpgp-card: Release 0.3.5
2023-05-01 19:07:48 +02:00
Heiko Schaefer
50e3d12f26
openpgp-card: Add activate_file() to CardTransaction
2023-05-01 19:07:48 +02:00
Heiko Schaefer
81ef12ffb2
ci: set PATH for smartpgp-builddeps image
2023-05-01 19:07:48 +02:00
Heiko Schaefer
4a042d703f
Don't panic if a long command is sent and the backend reports no support for extended length
...
This case should not happen during normal operation with the pcsc backend. But the condition was triggered in tests with an alternate CardBackend implementation (see: https://gitlab.com/openpgp-card/openpgp-card/-/issues/69 ).
2023-04-13 18:20:16 +02:00
Heiko Schaefer
629eecd510
Add a comment about the interaction between CardTransaction::init_card_caps and CardTransaction::initialize
2023-04-13 18:07:02 +02:00
Heiko Schaefer
a85d3164d7
openpgp-card-sequoia: Release 0.1.2
2023-04-08 13:52:54 +02:00
Heiko Schaefer
365670041f
openpgp-card-sequoia: fix padding for Curve 25519 private key material.
...
Importing 25519 keys with leading zero bytes led to failures on at least Gnuk and Nitrokey's opgpcard-rs implementation.
Reported by Wiktor Kwapisiewicz, also see https://codeberg.org/wiktor/broken-nitro
2023-04-08 13:49:01 +02:00
Heiko Schaefer
7a28d36e93
openpgp-card-tools moved to https://codeberg.org/openpgp-card/openpgp-card-tools
2023-03-17 15:16:27 +01:00
Heiko Schaefer
971a19b4f2
Release openpgp-card 0.3.4, openpgp-card-tools 0.9.2
2023-03-13 18:48:00 +01:00
Heiko Schaefer
c460904925
opgpcard: Add a parameter '--key-only' to the ssh command.
...
This outputs only one line, containing the ssh public key string, which is useful in scripts (e.g. in CI).
2023-03-13 18:47:24 +01:00
Heiko Schaefer
8b9e921db7
Adjust README and subplot test to fix previously wrong application ID format.
2023-03-06 14:41:54 +01:00