blob: efd665c34487536a79c6ed077e2a04107ef44b1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
//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
}
|