Commit graph

758 commits

Author SHA1 Message Date
Heiko Schaefer
8b9e921db7
Adjust README and subplot test to fix previously wrong application ID format. 2023-03-06 14:41:54 +01:00
Heiko Schaefer
2427708f97
Don't print application ID twice.
Fixes #67.
2023-02-24 00:49:26 +01:00
Heiko Schaefer
8e13ac99ac
opgpcard: Release 0.9.1
Don't hard-depend on nettle and allow explicitly choosing sequoia's cryptographic backend.

Make release builds reproducible.
2023-02-17 20:00:20 +01:00
Heiko Schaefer
89bb29c73a
opgpcard: Make release builds reproducible (by setting "codegen-units = 1"). 2023-02-17 20:00:15 +01:00
Heiko Schaefer
8579919f03
opgpcard: Allow building with different sequoia crypto-backends.
E.g.:

cargo build --no-default-features --features sequoia-openpgp/crypto-rust --features sequoia-openpgp/allow-experimental-crypto --features sequoia-openpgp/allow-variable-time-crypto
2023-02-17 20:00:03 +01:00
Heiko Schaefer
05dc5af9b5
Release openpgp-card-sequoia 0.1.1 2023-02-14 17:52:34 +01:00
Heiko
85874218d8 Merge branch 'allow-feature-selection' into 'main'
openpgp-card-sequoia: Allow selecting crypto backend.

See merge request openpgp-card/openpgp-card!35
2023-02-14 16:46:03 +00:00
Wiktor Kwapisiewicz
6c3163da4b
CI: Install cargo-udeps in a more straightforward way 2023-02-14 16:22:07 +01:00
Wiktor Kwapisiewicz
3c3051e31e
openpgp-card-sequoia: Allow disabling default crypto backend.
Previously the list of features of `sequoia-openpgp` unconditionally
included `crypto-nettle`. That was preventing the use of this crate in
pure Rust setups.

This commit allows disabling crypto backends and it is up to the
crate user to explicitly include `sequoia_openpgp` features that they
want.

See: https://gitlab.com/sequoia-pgp/sequoia/-/blob/main/README.md#note
2023-02-14 16:21:29 +01:00
Heiko
d2db840645 Merge branch 'switch-rsa-to-pure-rust' into 'main'
Replace nettle with pure-rust RSA for conversions

Closes #66

See merge request openpgp-card/openpgp-card!34
2023-02-10 12:32:29 +00:00
Wiktor Kwapisiewicz
5bd73d81fc
Replace nettle with pure-rust RSA for conversions
Fixes: https://gitlab.com/openpgp-card/openpgp-card/-/issues/66
2023-02-10 12:52:47 +01:00
Wiktor Kwapisiewicz
c80e549cc4
Add test for verifying SqRSA conversions 2023-02-10 12:24:51 +01:00
Heiko
bb5f495a5c Merge branch 'update-to-rust' into 'main'
Update to newer Rust

See merge request openpgp-card/openpgp-card!33
2023-02-02 12:16:27 +00:00
Wiktor Kwapisiewicz
c81f3ba6a9 Fix clippy warnings: remove explicit lifetime and unneeded Deref impl 2023-02-02 09:26:21 +01:00
Wiktor Kwapisiewicz
4510c34cdc Fix clippy lints: directly use variables in format! strings
The source has been reformatted using `cargo +nightly fmt`.
2023-02-02 09:09:47 +01:00
Heiko Schaefer
f40f2ffbfb
clippy: new lints 2022-12-25 13:50:19 +01:00
Heiko Schaefer
49b2e95f56
CI: Enable RSA tests for opcard-rs 2022-12-25 00:52:29 +01:00
Heiko Schaefer
e001d9bdba
Don't use deprecated chrono fn. 2022-12-05 15:36:36 +01:00
Heiko Schaefer
65789b0470
opgpcard: Make status output clearer for empty keyslots, in text output mode 2022-12-05 11:30:15 +01:00
Heiko Schaefer
79117415de
Fix dependency version 2022-12-05 11:28:20 +01:00
Heiko
20b5a45e8b Merge branch 'liw/examples' into 'main'
add an example Python script to prepare a card for some organization

Closes #44

See merge request openpgp-card/openpgp-card!24
2022-11-07 20:16:49 +00:00
Lars Wirzenius
3a241a107f add an example Python script to prepare a card for some organization
This is a fairly simplistic example, but shows how to use opgpcard via
its JSON API to set up a card with a specific configuration, for a
specific user. It's meant to show how to get started, and hopefully
can be a base for a custom tool for an organization with specific
needs.

It won't modify a card that already has an OpenPGP key on it, unless
--force is used.

Sponsored-by: author
2022-11-07 21:11:15 +02:00
Heiko Schaefer
4d94386b82
Fix new clippy lints for Rust 1.65 2022-11-07 17:32:28 +01:00
Heiko Schaefer
b80b86b201
opgpcard: simplify directory hierarchy 2022-11-03 16:11:37 +01:00
Heiko Schaefer
a1d6d8cad2
openpgp-card-sequoia: add comments to url fns 2022-11-03 15:10:15 +01:00
Heiko Schaefer
a4dff1ecb8
rustfmt: enable format_code_in_doc_comments 2022-11-03 14:43:28 +01:00
Heiko Schaefer
5e039204d5
remove "use sequoia_openpgp as openpgp;" pattern 2022-11-03 14:43:28 +01:00
Heiko Schaefer
fd07f6b6b9
ci: work around confusing cargo-fmt problem with CARGO_HOME 2022-11-03 14:43:28 +01:00
Heiko Schaefer
27697cb2c5
add rustfmt.toml and set group_imports = "StdExternalCrate" 2022-11-03 14:32:00 +01:00
Heiko Schaefer
87a80a4797
opgpcard: rename "key_status" to "additional_key_status".
This field will only contain data in rare cases (I don't know of a card where it will) when a card has key information for unusual key types (also see OpenPGP card spec 3.4.1 pg.43)
2022-11-03 11:57:20 +01:00
Heiko Schaefer
bfaff6b9bf
opgpcard: handle "key status" information for attestation key. 2022-11-03 11:57:20 +01:00
Heiko Schaefer
80659f71bd
opgpcard: bump version to 0.9.0 2022-10-31 15:50:04 +01:00
Heiko Schaefer
876c22997a
opgpcard: edit README.md
- move text about non-interactive use to its own section
- add a brief introduction to JSON output
- edits to adjust output to changed output format
- minor edits for clarity
2022-10-31 15:50:04 +01:00
Heiko Schaefer
abd2bae179
opgpcard: edits to scripting.md
- use standard example card ident
- slightly generalize manufacturer section
- move copyright information to header (like in other markdown documents)
- minor edits
2022-10-31 15:50:03 +01:00
Heiko Schaefer
7fe693ab98
opgpcard: re-add newlines in text output for 'ssh' 2022-10-31 15:50:03 +01:00
Heiko Schaefer
001bbd4412
opgpcard: tweak 'info' text output; add FIXME to re-work the form of algorithm information output 2022-10-31 15:50:03 +01:00
Heiko Schaefer
ae25e6b608
opgpcard: move creation time up in text output for 'status', and adjust printed field name 2022-10-31 15:50:03 +01:00
Heiko Schaefer
3a9d40454f
opgpcard: in 'status', handle 'pkm' parameter analogously to 'verbose' 2022-10-31 15:50:03 +01:00
Heiko Schaefer
5f715647c9
opgpcard: rename/reorder 'status' fields to reflect common terminology and logical structure of the fields.
Temporarily remove key_statuses and ca_fingerprints from machine-readable output. These fields should be stabilized before adding them to JSON.
2022-10-31 15:50:03 +01:00
Heiko Schaefer
535c9e6e0a
openpgp-card: add algorithm to PublicKeyMaterial Display for EccPub 2022-10-31 12:39:06 +01:00
Heiko Schaefer
fe0a8565e8
openpgp-card-sequoia: bump version to 0.1.0 2022-10-28 19:29:22 +02:00
Heiko
04b875754d Merge branch 'heiko/openpgp-card-sequoia-api' into 'main'
Reorganize openpgp-card-sequoia API

See merge request openpgp-card/openpgp-card!30
2022-10-28 17:28:57 +00:00
Heiko Schaefer
fd441dbd14
adjust to changed openpgp-card-sequoia API 2022-10-28 18:55:42 +02:00
Heiko Schaefer
db682c45db
openpgp-card-sequoia: restructure code, api; add more documentation 2022-10-28 18:55:42 +02:00
Heiko Schaefer
819f213ec4
openpgp-card: bump version to 0.3.3 2022-10-28 16:21:54 +02:00
Heiko
9ab55545f2 Merge branch 'nora/43' into 'main'
opgpcard: Add error handling for PIN file

Closes #43

See merge request openpgp-card/openpgp-card!29
2022-10-28 14:16:14 +00:00
Nora Widdecke
3169855e5c
opgpcard: Add error handling for PIN file
- If a PIN file could not be read, there is no error and the program
    proceeds as if no PIN file argument was given.

  - Add error handling for read errors of the PIN file.

  Fixes #43
2022-10-28 13:58:19 +02:00
Nora Widdecke
538dc16165 Merge branch 'heiko/pin-validity' into 'main'
opgpcard: only the SIG slot has configurable validity mechanism for PIN verification

See merge request openpgp-card/openpgp-card!28
2022-10-28 11:56:46 +00:00
Heiko Schaefer
f98ea9d0aa
opgpcard: only the SIG slot has configurable validity mechanism for PIN verification 2022-10-28 12:46:44 +02:00
Nora Widdecke
19d7aa94bf Merge branch 'heiko/attestation-key-status' into 'main'
opgpcard: Move attestation key metatdata into a separate KeySlotInfo struct

See merge request openpgp-card/openpgp-card!27
2022-10-28 10:29:50 +00:00