aboutsummaryrefslogtreecommitdiff
path: root/internal/cryptocore/cryptocore.go
diff options
context:
space:
mode:
authorFrank Denis2025-03-12 01:05:33 +0100
committerJakob Unterwurzacher2025-03-12 20:43:23 +0100
commit48c8538a70e7904df0b17685bb2b277fbd92a7ae (patch)
treee3b347943cdac185023c0eda48e7f6923712e028 /internal/cryptocore/cryptocore.go
parent10e489eca31f631fb68e53f3049de000946f65f6 (diff)
Fix aegis available checks
Diffstat (limited to 'internal/cryptocore/cryptocore.go')
-rw-r--r--internal/cryptocore/cryptocore.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/cryptocore/cryptocore.go b/internal/cryptocore/cryptocore.go
index e2991d7..93fbe91 100644
--- a/internal/cryptocore/cryptocore.go
+++ b/internal/cryptocore/cryptocore.go
@@ -188,7 +188,7 @@ func New(key []byte, aeadType AEADTypeEnum, IVBitLen int, useHKDF bool) *CryptoC
log.Panic(err)
}
} else if aeadType == BackendAegis {
- if common.Available == false {
+ if !common.Available {
log.Panic("AEGIS is not available")
}
if IVBitLen != aegis256x2.NonceSize*8 {