mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-09 00:53:58 +01:00
This will replace boring crypto at some point. We should modify our protocol a bit and instead change to NewGCMWithRandomNonce.
15 lines
363 B
Go
15 lines
363 B
Go
//go:build !boringcrypto && !fips140
|
|
// +build !boringcrypto,!fips140
|
|
|
|
package noiseutil
|
|
|
|
import (
|
|
"github.com/flynn/noise"
|
|
)
|
|
|
|
// EncryptLockNeeded indicates if calls to Encrypt need a lock
|
|
const EncryptLockNeeded = false
|
|
|
|
// CipherAESGCM is the standard noise.CipherAESGCM when boringcrypto is not enabled
|
|
var CipherAESGCM noise.CipherFunc = noise.CipherAESGCM
|