summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-23 22:14:20 +0200
committerJakob Unterwurzacher2021-08-23 22:14:20 +0200
commit20ca63cdbc3d55e013a883e9ec57d82331ce90ce (patch)
tree6ef3f4972e0b1628d0c787b85122ce43a2609fa4
parentdfb7fae52a65872db5b361e3b18f8d2ff80b3bcd (diff)
contentenc: remove unused NonceMode constants
Looks like these are part of an abandoned plan.
-rw-r--r--internal/contentenc/content.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/internal/contentenc/content.go b/internal/contentenc/content.go
index 01cabb8..8e7ca04 100644
--- a/internal/contentenc/content.go
+++ b/internal/contentenc/content.go
@@ -17,9 +17,6 @@ import (
"github.com/rfjakob/gocryptfs/v2/internal/tlog"
)
-// NonceMode determines how nonces are created.
-type NonceMode int
-
const (
// DefaultBS is the default plaintext block size
DefaultBS = 4096
@@ -28,15 +25,6 @@ const (
// master key in the config file is encrypted with a 96-bit IV for
// gocryptfs v1.2 and earlier. v1.3 switched to 128 bit.
DefaultIVBits = 128
-
- _ = iota // skip zero
- // RandomNonce chooses a random nonce.
- RandomNonce NonceMode = iota
- // ReverseDeterministicNonce chooses a deterministic nonce, suitable for
- // use in reverse mode.
- ReverseDeterministicNonce NonceMode = iota
- // ExternalNonce derives a nonce from external sources.
- ExternalNonce NonceMode = iota
)
// ContentEnc is used to encipher and decipher file content.