From 20ca63cdbc3d55e013a883e9ec57d82331ce90ce Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 23 Aug 2021 22:14:20 +0200 Subject: contentenc: remove unused NonceMode constants Looks like these are part of an abandoned plan. --- internal/contentenc/content.go | 12 ------------ 1 file changed, 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. -- cgit v1.2.3