Roman Zeyde
|
79b6d31dfe
|
gpg: raise proper exception when keygrip mismatch is detected
|
2016-10-17 11:08:06 +03:00 |
|
Roman Zeyde
|
7de88a3980
|
gpg: add comment for stopping current gpg-agent
|
2016-10-16 22:40:16 +03:00 |
|
Roman Zeyde
|
d236f4667e
|
gpg: allow Curve25519 for ECDH
|
2016-10-15 16:10:16 +03:00 |
|
Roman Zeyde
|
42813ddbb4
|
gpg: parse curve OID from public key to select curve name
|
2016-10-15 16:10:16 +03:00 |
|
Roman Zeyde
|
8f19690943
|
gpg: support Curve25519 for creating encryption subkeys
|
2016-10-15 16:10:16 +03:00 |
|
Roman Zeyde
|
5047805385
|
gpg: move HardwareSigner to device module
|
2016-10-15 16:10:16 +03:00 |
|
Roman Zeyde
|
915b326da7
|
gpg: simplify AgentSigner and move to keyring module
|
2016-10-15 15:57:45 +03:00 |
|
Roman Zeyde
|
e7b8379a97
|
factory: explicitly only the first interface
|
2016-10-14 20:58:42 +03:00 |
|
Roman Zeyde
|
26435130d7
|
factory: emit warning (instead of exception) when an import fails
|
2016-10-12 21:15:21 +03:00 |
|
Cédric Félizard
|
3082d61deb
|
Fix typo (#48)
|
2016-10-11 21:29:54 +03:00 |
|
Roman Zeyde
|
e3286a4510
|
gpg: don't clear the session after PIN is entered
This would allow single PIN entry when running multiple GPG commands.
|
2016-10-11 08:43:39 +03:00 |
|
Roman Zeyde
|
fcd5671626
|
Handle keyinfo request (#44)
gpg: handle KEYINFO request
See https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=agent/command.c;h=9522f898997e95207d59122d056f0f0be03ccecb;hb=6bee88dd067e03e7767ceacf6a849d9ba38cc11d#l1027 for more details.
|
2016-10-04 23:11:12 +03:00 |
|
Roman Zeyde
|
18be290bd6
|
Merge branch 'fix_agent' of https://github.com/Solution4Future/trezor-agent into Solution4Future-fix_agent
|
2016-10-04 11:16:56 +03:00 |
|
Roman Zeyde
|
784e14647a
|
Merge branch 'master' into HEAD
Conflicts:
trezor_agent/factory.py
|
2016-10-04 10:37:52 +03:00 |
|
Dominik Kozaczko
|
7d2c649e83
|
don't stop polling for more devices as having more than one inserted raises more problems and we need to keep the check
|
2016-10-01 12:38:16 +02:00 |
|
Dominik Kozaczko
|
cf27b345f6
|
better handling of keepkey dependency; fixes #36
|
2016-10-01 12:30:00 +02:00 |
|
Dominik Kozaczko
|
3aebd137b0
|
removed .decode('ascii') and added missing bytestrings
|
2016-10-01 10:02:46 +02:00 |
|
Roman Zeyde
|
96eede9c83
|
Merge branch 'np-encode-subpackets'
|
2016-09-28 17:27:48 +03:00 |
|
Roman Zeyde
|
91146303a3
|
Follow GPG implementation for subpacket prefix encoding.
Conflicts:
trezor_agent/gpg/protocol.py
|
2016-09-28 17:26:50 +03:00 |
|
Roman Zeyde
|
bf598435fb
|
client: keep the session open (doesn't forget PIN)
|
2016-09-26 22:27:47 +03:00 |
|
Roman Zeyde
|
459b882b89
|
ledger: don't use debug=True
|
2016-09-14 23:07:27 +03:00 |
|
Roman Zeyde
|
17c8bd0e92
|
gpg: add experimental warning
|
2016-09-11 23:06:47 +03:00 |
|
Nicolas Pouillard
|
016e864503
|
Attempt at fixing issue #32
|
2016-09-06 00:45:51 +02:00 |
|
Roman Zeyde
|
57e09248db
|
Merge pull request #31 from romanz/master
Update ledger branch with the latest changes from master branch
|
2016-09-05 22:28:07 +03:00 |
|
Nicolas Pouillard
|
adcbe6e7b2
|
gpg/decode/parse_subpackets: parse subpacket length according to RFC
|
2016-09-05 17:13:33 +02:00 |
|
Roman Zeyde
|
73bdf417e4
|
factory: require TREZOR firmware v1.4.0+ for GPG signatures and decryption
|
2016-09-02 11:38:59 +03:00 |
|
Roman Zeyde
|
05fada91d2
|
gpg: use gpgconf to get correct GPG agent UNIX socket path
|
2016-08-15 21:54:01 +03:00 |
|
Roman Zeyde
|
27a3fddfa2
|
gpg: add a note about restoring GPG keys with --time command-line flag
|
2016-08-15 21:39:34 +03:00 |
|
Roman Zeyde
|
030ae4c3f6
|
gpg: include unsupport hash algorithm ID in exception message
|
2016-08-13 10:06:52 +03:00 |
|
Roman Zeyde
|
4897b70888
|
factory: fix pylint import-error warnings
|
2016-08-11 22:38:12 +03:00 |
|
Roman Zeyde
|
f4ecd47ed6
|
factory: fix pep8 and pylint warnings
|
2016-08-11 22:31:24 +03:00 |
|
Roman Zeyde
|
c4bbac0e77
|
util: move BIP32 address related functions
|
2016-08-11 22:30:59 +03:00 |
|
BTChip
|
33747592ca
|
Fix eddsa, SSH optimization with signature + key, cleanup
|
2016-08-09 13:01:57 +02:00 |
|
BTChip
|
adb09cd8ca
|
Ledger integration
|
2016-08-09 13:01:57 +02:00 |
|
Roman Zeyde
|
45f6f1a3d8
|
gpg: allow setting GPG home directory via $GNUPGHOME
|
2016-08-05 13:48:47 +03:00 |
|
Roman Zeyde
|
c4c56b9faf
|
gpg: no support for empty user_id
|
2016-08-05 11:57:12 +03:00 |
|
Roman Zeyde
|
82e08d073b
|
gpg: rename proto -> protocol
|
2016-07-26 19:37:42 +03:00 |
|
Roman Zeyde
|
8ab0908388
|
proto: don't hardcode name length
|
2016-07-26 17:59:06 +03:00 |
|
Roman Zeyde
|
295d52ef10
|
gpg: move 'iterlines' to keyring
|
2016-07-26 17:50:49 +03:00 |
|
Roman Zeyde
|
8a51099488
|
gpg: remove unused "sign_message"
|
2016-07-26 17:42:14 +03:00 |
|
Roman Zeyde
|
f4dd1eacdd
|
gpg: allow parsing multiple keys
|
2016-07-26 17:35:07 +03:00 |
|
Roman Zeyde
|
b9b7b8dafd
|
gpg: re-structure public key packets for easier parsing
|
2016-07-22 23:14:25 +03:00 |
|
Roman Zeyde
|
744696fdee
|
gpg: decode user_attribute packets
|
2016-07-22 22:44:54 +03:00 |
|
Roman Zeyde
|
ccdbc7abfc
|
gpg: parse_packets() should get file-like stream
and wrap it with util.Reader()
|
2016-07-22 21:46:38 +03:00 |
|
Roman Zeyde
|
e70f0ec681
|
gpg: refactor hash algorithm handling
|
2016-07-09 12:25:05 +03:00 |
|
Roman Zeyde
|
aeaf978d8e
|
gpg: add mulitple GPG public keys as test vectors
|
2016-07-09 12:08:07 +03:00 |
|
Roman Zeyde
|
d60fff202a
|
gpg: don't validate non-ECDSA signatures
|
2016-07-09 11:26:48 +03:00 |
|
Jochen Hoenicke
|
a2e46048a1
|
Use TREZOR_GPG_USER_ID in agent
|
2016-06-22 02:31:57 +02:00 |
|
Jochen Hoenicke
|
e66b0f47ed
|
More robust gpg key parsing
Handle new packet format.
Ignore unknown packets.
Handle packets that are not immediately followed by signature.
Handle other hash algorithms.
|
2016-06-22 02:31:22 +02:00 |
|
Roman Zeyde
|
db874ad98f
|
README: add GPG part
|
2016-06-20 22:43:13 +03:00 |
|
Roman Zeyde
|
75f879edbb
|
gpg: update README.md
|
2016-06-20 22:18:03 +03:00 |
|
Roman Zeyde
|
45a85a317b
|
gpg: allow setting UNIX socket from command-line
|
2016-06-18 20:10:52 +03:00 |
|
Roman Zeyde
|
7b3874e6f7
|
gpg: fixup logging during key creation
|
2016-06-17 22:05:13 +03:00 |
|
Roman Zeyde
|
6c96cc37b9
|
gpg: add support for adding subkeys to EdDSA primary GPG keys
|
2016-06-17 21:59:13 +03:00 |
|
Roman Zeyde
|
c98cb22ba4
|
gpg: use separate derivations for GPG keys
|
2016-06-17 19:51:49 +03:00 |
|
Roman Zeyde
|
d9fbfccd35
|
gpg: load correct key if ECDH is requested
|
2016-06-17 19:51:49 +03:00 |
|
Roman Zeyde
|
fe4d9ed3c8
|
gpg: add SLIP-0017 support for ECDH session key generation
|
2016-06-17 09:29:53 +03:00 |
|
Roman Zeyde
|
092445af71
|
agent: handle connection errors
|
2016-06-11 20:26:10 +03:00 |
|
Roman Zeyde
|
602e867c7d
|
gpg: add test for keygrip
|
2016-06-11 20:18:07 +03:00 |
|
Roman Zeyde
|
16de8cdabc
|
agent: refactor signature and ECDH
|
2016-06-11 15:06:35 +03:00 |
|
Roman Zeyde
|
7bbf11b631
|
gpg: refactor key creation
|
2016-06-11 14:46:24 +03:00 |
|
Roman Zeyde
|
3e41fddcef
|
gpg: add test for ECDH pubkey generation
|
2016-06-11 14:02:12 +03:00 |
|
Roman Zeyde
|
8108e5400d
|
gpg: support TREZOR-based primary key
|
2016-06-11 13:47:56 +03:00 |
|
Roman Zeyde
|
a1659e0f0d
|
gpg: add preferred symmetric algo
|
2016-06-11 10:34:59 +03:00 |
|
Roman Zeyde
|
3b139314b6
|
gpg: refactor sign_message method
|
2016-06-06 23:02:14 +03:00 |
|
Roman Zeyde
|
a05cff5079
|
gpg: use "gpg2" for 'git config --local gpg.program'
|
2016-06-06 23:02:14 +03:00 |
|
Roman Zeyde
|
694cee17ac
|
gpg: refactor create_* methods
|
2016-06-04 20:54:07 +03:00 |
|
Roman Zeyde
|
bc281d4411
|
gpg: use local version
|
2016-06-04 19:45:03 +03:00 |
|
Roman Zeyde
|
04af6b737b
|
gpg: remove extra param from Factory.from_public_key()
|
2016-06-04 09:53:43 +03:00 |
|
Roman Zeyde
|
171c746c7e
|
gpg: move agent main code to __main__
|
2016-06-04 09:53:23 +03:00 |
|
Roman Zeyde
|
8b5ac14150
|
gpg: add docstrings
|
2016-06-03 22:44:25 +03:00 |
|
Roman Zeyde
|
d2167cd4ff
|
gpg: check keygrip on ECDH
|
2016-06-03 22:39:31 +03:00 |
|
Roman Zeyde
|
10cbe67c9a
|
gpg: add TODO
|
2016-06-03 21:53:31 +03:00 |
|
Roman Zeyde
|
29a984eebb
|
gpg: improve flags selection
|
2016-06-03 20:17:53 +03:00 |
|
Roman Zeyde
|
a6660fd5c5
|
gpg: handle BYE command
|
2016-06-03 17:43:46 +03:00 |
|
Roman Zeyde
|
2acd0bf3b7
|
gpg: fix keygrip computation
|
2016-06-03 17:41:31 +03:00 |
|
Roman Zeyde
|
e9f7894d62
|
ecdh: fixup pubkey ID
|
2016-06-03 15:05:45 +03:00 |
|
Roman Zeyde
|
56e9d7c776
|
gpg: allow graceful exit via Ctrl+C
|
2016-06-03 14:42:40 +03:00 |
|
Roman Zeyde
|
e7bacf829c
|
gpg: refactor ecdh case
|
2016-06-03 14:39:16 +03:00 |
|
Roman Zeyde
|
c1c679b541
|
HACK: support ECDH in agent - note keygrip and ID errors.
|
2016-06-02 23:24:36 +03:00 |
|
Roman Zeyde
|
49c343df94
|
HACK: create subkey with ECDH support
|
2016-06-02 22:54:08 +03:00 |
|
Roman Zeyde
|
7da7f5c256
|
HACK: fixup tests
|
2016-06-02 22:25:44 +03:00 |
|
Roman Zeyde
|
39cb5565bf
|
HACK: better line iteration
|
2016-06-02 21:39:48 +03:00 |
|
Roman Zeyde
|
f89c5bb125
|
HACK: better logging
|
2016-06-02 21:38:48 +03:00 |
|
Roman Zeyde
|
92649b290f
|
HACK: add preliminary gpg support
|
2016-05-30 21:57:10 +03:00 |
|
Roman Zeyde
|
d9b07e2ac6
|
gpg: hack agent prototype
|
2016-05-28 23:02:45 +03:00 |
|
Roman Zeyde
|
f0ea568bb8
|
gpg: add more UTs for decode
|
2016-05-27 22:07:50 +03:00 |
|
Roman Zeyde
|
34c614db6e
|
gpg: add more UTs for decode
|
2016-05-27 21:52:00 +03:00 |
|
Roman Zeyde
|
af8ad99c7a
|
gpg: add UTs for decode
|
2016-05-27 16:59:10 +03:00 |
|
Roman Zeyde
|
313271ac06
|
gpg: move signer.py to __main__.py
|
2016-05-27 14:38:38 +03:00 |
|
Roman Zeyde
|
969e08140b
|
gpg: add more tests for keyring
|
2016-05-27 13:43:55 +03:00 |
|
Roman Zeyde
|
39f00af65d
|
gpg: add help for sign arguments
|
2016-05-27 12:20:33 +03:00 |
|
Roman Zeyde
|
272759e907
|
gpg: allow dependency injection for subprocess module
|
2016-05-27 12:20:33 +03:00 |
|
Roman Zeyde
|
4be55156ed
|
gpg: refactor pubkeys' parsing code
|
2016-05-27 11:28:23 +03:00 |
|
Roman Zeyde
|
80a5ea0f2a
|
gpg: add UTs for keyring
|
2016-05-26 23:16:08 +03:00 |
|
Roman Zeyde
|
dcf35c4267
|
decode: split _remove_armor() from verify()
|
2016-05-26 22:29:19 +03:00 |
|
Roman Zeyde
|
7570861765
|
gpg: fixup signer docstring
|
2016-05-26 22:29:19 +03:00 |
|
Roman Zeyde
|
339f61c071
|
gpg: better __repr__ and logging for public keys
|
2016-05-26 22:29:19 +03:00 |
|
Roman Zeyde
|
3c4fb7a17b
|
gpg: allow pinentry UI via "display=" option
|
2016-05-25 18:52:20 +03:00 |
|
Roman Zeyde
|
a6a0c05f57
|
keyring: fix more Python 2/3 issues
|
2016-05-23 23:03:02 +03:00 |
|