From e3e76e275d8edf294a4a64897f44a5ef0b70bfeb Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 12 Mar 2025 00:44:56 +0100 Subject: Revert a few more things --- internal/stupidgcm/without_aegis.go | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 internal/stupidgcm/without_aegis.go (limited to 'internal/stupidgcm/without_aegis.go') 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 -} -- cgit v1.2.3