mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 23:16:52 +01:00
* apply `go fix` for Go 1.26 This applies the `go fix` recommendations for go1.26 * for all of ./...
19 lines
399 B
Go
19 lines
399 B
Go
//go:build boringcrypto
|
|
|
|
package noiseutil
|
|
|
|
import (
|
|
"crypto/boring"
|
|
|
|
"github.com/flynn/noise"
|
|
)
|
|
|
|
var CipherAESGCM noise.CipherFunc = CipherAESGCMFIPS140
|
|
|
|
// EncryptLockNeeded indicates if calls to Encrypt need a lock
|
|
// This is true for boringcrypto because the Seal function verifies that the
|
|
// nonce is strictly increasing.
|
|
const EncryptLockNeeded = true
|
|
|
|
var boringEnabled = boring.Enabled()
|