mirror of
https://github.com/slackhq/nebula.git
synced 2026-07-01 19:10:29 +02:00
14 lines
323 B
Go
14 lines
323 B
Go
//go:build !boringcrypto
|
|
|
|
package noiseutil
|
|
|
|
import (
|
|
"crypto/fips140"
|
|
)
|
|
|
|
// EncryptLockNeeded indicates if calls to Encrypt need a lock
|
|
var EncryptLockNeeded = fips140.Enabled()
|
|
|
|
// CipherAESGCM is the standard noise.CipherAESGCM when boringcrypto is not enabled
|
|
// var CipherAESGCM noise.CipherFunc = noise.CipherAESGCM
|