Commit Graph

174 Commits

Author SHA1 Message Date
Roman Zeyde
0bbb52f24e age: fix verbosity setting 2022-12-26 19:53:32 +02:00
Roman Zeyde
91e7970d53 Fix pycodestyle issue 2022-12-16 20:46:48 +02:00
Roman Zeyde
8322cf455e Chunkify 'base64' format for age plugin 2022-10-28 11:42:53 +03:00
Jamie C. Driver
7c01789529 Update setup.py for jade-agent 2022-08-17 15:55:08 +01:00
Roman Zeyde
8c5a9bfe02 Fixup pylint issues 2022-07-10 19:53:35 +03:00
afreakk
54e670c7ee fix: provide buf argument to unsupported_extension function 2022-05-22 14:09:40 +02:00
Roman Zeyde
8d4536b37a Fixup linting issues 2022-05-21 12:09:00 +03:00
Roman Zeyde
b1b3e4b7ea Don't fail if not all request is parsed
https://www.openssh.com/agent-restrict.html

266678e19e
2022-05-21 12:07:07 +03:00
Igor Yanchenko
a8f2d74d02 Handle usupported extesions, fixes #383 2022-03-14 17:18:39 +02:00
Roman Zeyde
df84c4c15f Small style fixes following #382
Tested with `tox`.
2022-03-11 09:24:16 +02:00
Jamie C. Driver
471d0e03e7 Add support for the Blockstream Jade hww
Supports ssh and gpg, incl. ecdh/decryption.
Initially only supports curve 'nist256p1'.
2022-03-10 17:24:11 +00:00
Senjuu
23f8ef09a5 Add Support for NIST256 ssh-certificates
Adopt suggested naming scheme

Adding new unit tests
2021-12-21 19:38:44 +02:00
Roman Zeyde
f0769655ad Add age plugin support
See https://github.com/str4d/rage/tree/main/age-plugin.

Example usage:

	RAGE_DIR=$PWD/../Rust/rage
	(cd $RAGE_DIR; cargo build --all)
	export PATH=$PATH:$RAGE_DIR/target/debug

	age-plugin-trezor -i "John Doe" | tee trezor.id
	R=$(grep recipient trezor.id | cut -f 3 -d ' ')

	date | tee msg.txt
	rage -er $R < msg.txt > enc.txt
	rage -di trezor.id < enc.txt
2021-12-14 20:43:04 +02:00
Roman Zeyde
2a6a47f400 Support SSH signatures
https://www.agwa.name/blog/post/ssh_signatures

See here for more details:
https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.sshsig
https://github.com/openssh/openssh-portable/blob/master/sshsig.c
2a9c9f7272
2021-12-13 10:58:15 +02:00
Roman Zeyde
8107e6378c Don't use sys.argv for device name parsing 2021-11-05 10:03:22 +02:00
Roman Zeyde
69c5c57489 Support "fast-path" key listing
https://dev.gnupg.org/rG40da61b89b62dcb77847dc79eb159e885f52f817#change-o4DEJvEV1Dx2

Also, refactor decoding and add a few tests.
2021-11-02 09:22:19 +02:00
Roman Zeyde
b9db213912 Use Popen.communicate to get stdout from subprocess 2021-11-01 14:07:02 +02:00
Roman Zeyde
6c2b880b7d Support daemonization of GPG agent 2021-11-01 14:07:02 +02:00
Roman Zeyde
37510a2d75 Fix FakeDevice close() and pubkey() 2021-10-25 21:15:20 +03:00
Roman Zeyde
ee4b1fcdb6 Multiple style fixes 2021-10-22 19:47:15 +03:00
Roman Zeyde
338a075ed5 Allow looking TREZOR by path prefix 2021-06-21 21:32:43 +03:00
Roman Zeyde
a0e7aae1d2 Enable isort check in tox 2021-05-22 21:54:20 +03:00
Roman Zeyde
7f4269ab88 Add GitHub CI
Fixup a few pylint comments
2021-05-22 21:51:45 +03:00
Roman Zeyde
020572ef5f Support Signify-based signatures
http://www.openbsd.org/papers/bsdcan-signify.html
2020-12-29 09:14:06 +02:00
Roman Zeyde
dbae284487 Short-circuit calling tty if stdin is redirected 2020-12-25 16:30:22 +02:00
onlykey
fd182e744f Add OnlyKey support 2020-09-24 22:29:21 +03:00
Roman Zeyde
a12202d809 Move decompression into device.pubkey() 2020-09-24 14:41:50 +03:00
onlykey
e1bbdb4bcc Replace 'ed25519' by 'pynacl' 2020-08-05 08:51:40 +03:00
Michael Parks
362ddcc707 Quote PATH when writing agent invocation script
If the PATH contains spaces, the agent invocation script will fail parsing. This quotes the variable so that spaces don't break the script.
2020-05-17 00:41:56 -06:00
Roman Zeyde
52d840cbbb Initialize passphrase cache at UI c-tor 2020-04-29 22:01:06 +03:00
Roman Zeyde
d103ebee6f Fix pylint warning 2020-04-17 14:28:50 +03:00
matejcik
d8bcca3ccb support trezorlib 0.12 2020-04-09 14:41:56 +02:00
Eric Siegel
0f627e8322 Clean up code... 2020-03-16 15:26:15 -04:00
Eric Siegel (Rocket Hazmat)
7bdfa7609d Upgrade KeepKey for new libagent code
Add get_public_node for KeepKey
2020-03-13 13:50:09 -04:00
Eric Siegel (Rocket Hazmat)
53b08f4968 Fix detecting KeepKey USB device
The new KeepKey firmware uses WebUSB instead of HID
2020-03-13 13:05:08 -04:00
Roman Zeyde
15b0218bf2 Default GPG key creation time to 0 (i.e. Jan 1 1970) 2019-10-29 09:14:26 +02:00
Roman Zeyde
ab6892f42f Fix pylint warnings 2019-10-26 13:47:29 +03:00
Roman Zeyde
e437591dd5 Fix prompt for symmetric encryption passphrase 2019-03-03 22:51:15 +02:00
André Vitor de Lima Matos
94ad9648f8 Fix passphrase cache
Broken since 2cb64991c3
Fix #284
2019-02-23 17:42:08 -03:00
Roman Zeyde
995fba3e93 Drop compatibility with <0.11 trezorlib 2018-12-13 00:05:47 +02:00
matejcik
5cfdc7734b fix style complaints 2018-12-10 16:30:56 +01:00
matejcik
2cb64991c3 Trezor: restructure code to support python-trezor 0.11 2018-12-10 16:10:55 +01:00
matejcik
b30e6a8408 Allow devices to override connection closing 2018-12-10 16:10:55 +01:00
Roman Zeyde
fec84288be gpg: --homedir should come before --list-secret-keys 2018-10-27 18:15:29 +03:00
Roman Zeyde
7a351acf15 Merge remote-tracking branch 'matejcik/master' 2018-08-02 22:01:31 +03:00
Roman Zeyde
eed168341c Don't inheric from 'object' (after deprecating Python 2.x support) 2018-07-25 13:44:55 +03:00
matejcik
8708b1e16d trezor: use TREZOR_PATH environment variable to specify device path 2018-07-17 16:45:09 +02:00
Roman Zeyde
4968ca7ff3 Merge branch 'master' into neopg-wip 2018-07-01 13:52:37 +03:00
Roman Zeyde
36cbba6c57 Fix a few lint issues 2018-07-01 12:49:39 +03:00
Roman Zeyde
6afe20350b Simplify GPG command generation 2018-07-01 12:12:16 +03:00