aboutsummaryrefslogtreecommitdiff
path: root/internal/stupidgcm/openssl.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/stupidgcm/openssl.go')
-rw-r--r--internal/stupidgcm/openssl.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/stupidgcm/openssl.go b/internal/stupidgcm/openssl.go
index 8e1357b..cb9845e 100644
--- a/internal/stupidgcm/openssl.go
+++ b/internal/stupidgcm/openssl.go
@@ -15,7 +15,7 @@ import "C"
func openSSLSeal(a *stupidAEADCommon, dst, iv, in, authData []byte) []byte {
if a.Wiped() {
- panic("BUG: tried to use wiped key")
+ log.Panic("BUG: tried to use wiped key")
}
if len(iv) != a.NonceSize() {
log.Panicf("Only %d-byte IVs are supported, you passed %d bytes", a.NonceSize(), len(iv))
@@ -59,7 +59,7 @@ func openSSLSeal(a *stupidAEADCommon, dst, iv, in, authData []byte) []byte {
func openSSLOpen(a *stupidAEADCommon, dst, iv, in, authData []byte) ([]byte, error) {
if a.Wiped() {
- panic("BUG: tried to use wiped key")
+ log.Panic("BUG: tried to use wiped key")
}
if len(iv) != a.NonceSize() {
log.Panicf("Only %d-byte IVs are supported, you passed %d bytes", a.NonceSize(), len(iv))