diff options
author | Pavol Rusnak | 2019-12-27 22:27:57 +0100 |
---|---|---|
committer | rfjakob | 2019-12-28 19:50:49 +0100 |
commit | 1364b44ae356da31e24e5605fe73a307e9d6fb03 (patch) | |
tree | 22042a87f6a24f6768b3c6cd0ea319db26124d63 /internal/readpassword/trezor_disabled.go | |
parent | 7dda2363e1f8d30d5ebce5b6279452a2cf1bb77a (diff) |
remove Trezor support
Diffstat (limited to 'internal/readpassword/trezor_disabled.go')
-rw-r--r-- | internal/readpassword/trezor_disabled.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/internal/readpassword/trezor_disabled.go b/internal/readpassword/trezor_disabled.go deleted file mode 100644 index 96a6082..0000000 --- a/internal/readpassword/trezor_disabled.go +++ /dev/null @@ -1,25 +0,0 @@ -// +build !enable_trezor - -package readpassword - -import ( - "os" - - "github.com/rfjakob/gocryptfs/internal/tlog" -) - -const ( - // TrezorPayloadLen is the length of the payload data passed to Trezor's - // CipherKeyValue function. - TrezorPayloadLen = 32 - // TrezorSupport is true when gocryptfs has been compile with -tags enable_trezor - TrezorSupport = false -) - -// Trezor determinitically derives 32 bytes from the payload and the connected -// USB security module. -func Trezor(payload []byte) []byte { - tlog.Fatal.Printf("This binary has been compiled without Trezor support") - os.Exit(1) - return nil -} |