Heiko Schaefer
|
d4f7b8d1b0
|
Update copyright headers
|
2022-07-26 09:42:03 +02:00 |
|
Heiko Schaefer
|
6e630254fa
|
Don't use Cert to build signer and decryptor.
Rename decryptor/signer/authenticator getters.
Add alternatives that don't require PublicKey parameter.
|
2022-07-25 18:12:03 +02:00 |
|
Heiko Schaefer
|
43a9abdabd
|
Implement signing for auth slot
|
2022-06-22 21:50:07 +02:00 |
|
Heiko Schaefer
|
079cc32427
|
Add callback Fn for touch confirmation prompt for signing operations.
|
2022-06-11 09:55:05 +02:00 |
|
Heiko Schaefer
|
0b4a18b136
|
Fix clippy lints
|
2022-03-06 16:15:13 +01:00 |
|
Heiko Schaefer
|
8ab3a43d6e
|
Use Error::InternalError less, introduce additional specific error variants.
|
2022-02-24 21:25:47 +01:00 |
|
Heiko Schaefer
|
96167f6530
|
Move OpenPGP card functionality into OpenPgp/OpenPgpTransaction.
This separates backend access (implemented in CardBackend and CardTransaction) from OpenPGP card operations.
Fixes #7
|
2022-02-24 21:25:47 +01:00 |
|
Heiko Schaefer
|
636813279b
|
Reformatted to conform to vanilla rustfmt.
|
2022-02-24 21:25:47 +01:00 |
|
Heiko Schaefer
|
5133051626
|
Rename CardClient -> CardTransaction.
|
2022-02-18 15:06:31 +01:00 |
|
Heiko Schaefer
|
53c8609f05
|
Remove unused imports
|
2022-02-14 17:46:16 +01:00 |
|
Heiko Schaefer
|
2480745088
|
Move implementation of low-level OpenPGP functionality from CardApp to CardClient.
|
2022-02-14 17:46:16 +01:00 |
|
Heiko Schaefer
|
5e7fcd079b
|
Change CardApp API: take &mut CardClient parameter for all calls (instead of owning a CardClientBox).
This way, clients can exert control over the state of the CardClient, e.g. to combine CardApp operations in a PCSC transaction.
|
2022-02-14 17:43:07 +01:00 |
|
Heiko Schaefer
|
383f592865
|
Don't apply Policy when picking (sub)key from Cert for sign/decrypt.
|
2021-12-11 23:36:36 +01:00 |
|
Heiko Schaefer
|
ecd862e23f
|
Remove "get_" prefix from getter function names (to better conform with Rust API Guidelines https://rust-lang.github.io/api-guidelines).
|
2021-12-01 19:11:22 +01:00 |
|
Heiko Schaefer
|
7413b5c062
|
Don't check cert revocation status when decrypting.
|
2021-11-22 16:33:15 +01:00 |
|
Heiko Schaefer
|
af673f537c
|
Adjust error handling in CardSigner and CardDecryptor (for better error messages in tools, such as opgpcard).
Refactor sq_utils, rename some fn for clarity.
|
2021-11-21 15:21:43 +01:00 |
|
Heiko Schaefer
|
55e7a2c794
|
Re-ordering the -sequoia crate, as a first step towards defining its API.
|
2021-09-11 12:42:01 +02:00 |
|
Heiko Schaefer
|
8b5894e961
|
Rename get_app_data() to get_application_related_data() to correspond with naming in spec.
|
2021-09-02 22:09:46 +02:00 |
|
Heiko Schaefer
|
316ca7eb3a
|
Rename error types and re-export them at the crate top level.
|
2021-09-01 23:59:56 +02:00 |
|
Heiko Schaefer
|
d599471be5
|
Refactor: move cryptographic data structures to the module crypto_data
|
2021-08-21 17:43:44 +02:00 |
|
Heiko Schaefer
|
c872e46e80
|
Refactor: move accessor fn for "Application Related Data" into the struct ApplicationRelatedData.
|
2021-08-20 22:19:39 +02:00 |
|
Heiko Schaefer
|
9e5bb9b5a6
|
Make CardSigner accessible (for use in card-functionality crate)
|
2021-08-13 20:02:53 +02:00 |
|
Heiko Schaefer
|
2b221fa76b
|
Truncate digest length for ECDSA.
This fixes signing for nistp256 keys with Gnuk (Gnuk expects a 32 byte hash for nistp256)
|
2021-07-19 14:18:09 +02:00 |
|
Heiko Schaefer
|
c85d006887
|
Support ECDSA signatures
|
2021-07-18 21:12:22 +02:00 |
|
Heiko Schaefer
|
97d4880118
|
Signing
|
2021-07-18 12:00:00 +02:00 |
|
Heiko Schaefer
|
da51f27173
|
Simplify code.
|
2021-07-16 16:31:14 +02:00 |
|
Heiko Schaefer
|
01126aabdf
|
Support scdaemon as an alternative backend for interaction with OpenPGP cards.
|
2021-07-16 16:30:56 +02:00 |
|
Heiko Schaefer
|
8e3c6c0046
|
Add an abstraction layer (CardClient) for access to the card, in preparation for scdaemon client mode.
|
2021-07-09 20:37:52 +02:00 |
|
Heiko Schaefer
|
920da0442b
|
Rename structs that represent different verification states of the OpenPGP card.
|
2021-07-02 19:47:34 +02:00 |
|
Heiko Schaefer
|
f00865ab75
|
rustfmt
|
2021-07-01 23:46:12 +02:00 |
|
Heiko Schaefer
|
88f0598eab
|
Initial commit
|
2021-06-30 22:29:23 +02:00 |
|