bootloader
$ lsusb -v -d 534c:0001
Bus 001 Device 052: ID 534c:0001 SatoshiLabs Bitcoin Wallet [TREZOR]
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenSSL enabled | |
cli args: &main.argContainer{debug:true, init:false, zerokey:false, fusedebug:true, openssl:true, passwd:false, fg:true, version:false, plaintextnames:false, quiet:false, nosyslog:true, wpanic:false, longnames:true, allow_other:false, reverse:false, aessiv:false, nonempty:false, raw64:true, noprealloc:false, speed:false, hkdf:true, serialize_reads:false, forcedecode:false, hh:false, info:false, sharedstorage:false, devrandom:false, fsck:false, trezor:false, dev:false, nodev:false, suid:false, nosuid:false, exec:false, noexec:false, rw:false, ro:false, masterkey:"", mountpoint:"/tmp/tmp.mLggyxBble/b", cipherdir:"/tmp/tmp.mLggyxBble/a", cpuprofile:"", extpass:"echo test", memprofile:"", ko:"", passfile:"", ctlsock:"", fsname:"", force_owner:"", trace:"", exclude:main.multipleStrings(nil), config:"/tmp/tmp.mLggyxBble/a/gocryptfs.conf", notifypid:0, scryptn:16, idle:0, _configCustom:false, _ctlsockFd:net.Listener(nil), _forceOwner:(*fuse.Owner)(nil)} | |
Reading password from extpass program | |
Decryptin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019/01/20 17:51:49 rx 83920: LOOKUP i1 ["sub_42"] 7b | |
2019/01/20 17:51:49 rx 83925: FLUSH i172 {Fh 46} | |
2019/01/20 17:51:49 tx 83925: OK | |
2019/01/20 17:51:49 rx 83968: FLUSH i894 {Fh 146} | |
2019/01/20 17:51:49 tx 83968: OK | |
2019/01/20 17:51:49 rx 83969: RELEASE i711 {Fh 185 0x8000 L0} | |
2019/01/20 17:51:49 tx 83969: OK | |
2019/01/20 17:51:49 rx 83970: WRITE i328 8192b | |
2019/01/20 17:51:49 rx 83924: OPEN i692 {O_RDONLY,0x8000} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo ./check-gocryptfs | |
[sudo] password for jakob: | |
gocryptfs v1.7-rc1-36-g99e8b6d; go-fuse v20170619-75-gf520193; 2019-01-13 go1.11.4 | |
fuse-xfstests gocryptfs-2018-08-18/d8111119 | |
Sun Jan 13 10:03:45 UTC 2019 | |
FSTYP -- fuse.gocryptfs | |
PLATFORM -- Linux/x86_64 brikett 4.19.12-301.fc29.x86_64 | |
MKFS_OPTIONS -- /var/tmp/check-gocryptfs/scratchdev | |
MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /var/tmp/check-gocryptfs/scratchdev /var/tmp/check-gocryptfs/scratchdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /home/jakob.donotbackup/code/fuse-xfstests/results//generic/273.full | |
/var/tmp/check-gocryptfs/scratchdev is a mountpoint | |
cp: cp: cannot open '/var/tmp/check-gocryptfs/scratchdir/origin/file_9' for readingcannot open '/var/tmp/check-gocryptfs/scratchdir/origin/file_9' for reading: No such file or directory: No such file or directory | |
cp: cannot open '/var/tmp/check-gocryptfs/scratchdir/origin/file_9' for reading: No such file or directory | |
cp: cannot open '/var/tmp/check-gocryptfs/scratchdir/origin/file_9' for reading: No such file or directory | |
cp: cannot open '/var/tmp/check-gocryptfs/scratchdir/origin/file_9' for reading: No such file or directory | |
cp: cannot open '/var/tmp/check-gocryptfs/scratchdir/origin/file_9' for reading: No such file or directory | |
cp: cannot open '/var/tmp/check-gocryptfs/scratchdir/origin/file_9' for reading: No such file or directory | |
cp: cannot open '/var/tmp/check-gocryptfs/scratchdir/origin/file_9' for reading: No such file or directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gocryptfs v1.6.1; go-fuse v20170619-66-g6df8ddc; 2019-01-04 go1.11.4 | |
$ ./extractloop.bash | |
Testing gocryptfs | |
Test dir: /tmp/extractloop_tmpdir/1qe | |
'/tmp/extractloop.csv' -> '/tmp/extractloop_tmpdir/1qe.csv' | |
[looper 1] Starting | |
[looper 2] Starting | |
[looper 2] Iteration 1 done, 40 seconds, RSS 107112 kiB | |
[looper 1] Iteration 1 done, 40 seconds, RSS 107112 kiB | |
[looper 2] Iteration 2 done, 38 seconds, RSS 117948 kiB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 jakob@brikett:~/go/src/github.com/rfjakob/gocryptfs$ ./benchmark.bash | |
Testing gocryptfs at /tmp/benchmark.bash.OQy: gocryptfs v1.7-beta1-19-gc0a7a14; go-fuse v20170619-66-g6df8ddc; 2019-01-04 go1.11.4 | |
WRITE: 262144000 bytes (262 MB, 250 MiB) copied, 1.15804 s, 226 MB/s | |
READ: 262144000 bytes (262 MB, 250 MiB) copied, 0.905767 s, 289 MB/s | |
UNTAR: 17.573 | |
MD5: 8.866 | |
LS: 1.678 | |
RM: 2.892 | |
0 jakob@brikett:~/go/src/github.com/rfjakob/gocryptfs$ ./benchmark.bash | |
Testing gocryptfs at /tmp/benchmark.bash.GXf: gocryptfs v1.7-beta1-18-gc1a2a36; go-fuse v20170619-66-g6df8ddc; 2019-01-04 go1.11.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 jakob@brikett:~/code/fuse-xfstests$ sudo time ./check-gocryptfs | |
[sudo] password for jakob: | |
gocryptfs v1.6.1-114-g1c9fb70; go-fuse v20170619-66-g6df8ddc; 2019-01-03 go1.11.4 | |
fuse-xfstests gocryptfs-2018-08-18/267e32d5 | |
Thu Jan 3 17:34:37 UTC 2019 | |
FSTYP -- fuse.gocryptfs | |
PLATFORM -- Linux/x86_64 brikett 4.19.12-301.fc29.x86_64 | |
MKFS_OPTIONS -- /var/tmp/check-gocryptfs/scratchdev | |
MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /var/tmp/check-gocryptfs/scratchdev /var/tmp/check-gocryptfs/scratchdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/internal/readpassword/trezor.go b/internal/readpassword/trezor.go | |
index c0cc450..ab35005 100644 | |
--- a/internal/readpassword/trezor.go | |
+++ b/internal/readpassword/trezor.go | |
@@ -1,6 +1,7 @@ | |
package readpassword | |
import ( | |
+ "fmt" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REPOS="github.com/rfjakob/gocryptfs\ | |
github.com/xaionaro-go/cryptoWallet\ | |
github.com/zserge/hid\ | |
github.com/conejoninja/tesoro\ | |
github.com/conejoninja/hid" | |
SRC=$(go env GOPATH)/src | |
for i in $REPOS |