diff options
Diffstat (limited to 'internal/stupidgcm/without_aegis.go')
-rw-r--r-- | internal/stupidgcm/without_aegis.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/internal/stupidgcm/without_aegis.go b/internal/stupidgcm/without_aegis.go deleted file mode 100644 index efd665c..0000000 --- a/internal/stupidgcm/without_aegis.go +++ /dev/null @@ -1,28 +0,0 @@ -//go:build without_aegis || !cgo -// +build without_aegis !cgo - -package stupidgcm - -import ( - "fmt" - "os" - - "crypto/cipher" - - "github.com/rfjakob/gocryptfs/v2/internal/exitcodes" -) - -const ( - // BuiltWithoutAegis indicates if openssl been disabled at compile-time - BuiltWithoutAegis = true -) - -type stupidAegis struct { - aead cipher.AEAD -} - -func NewAegis(_ []byte) cipher.AEAD { - fmt.Fprintln(os.Stderr, "I have been compiled without aegis support but you are still trying to use aegis") - os.Exit(exitcodes.Aegis) - return nil -} |