aboutsummaryrefslogtreecommitdiff
path: root/crypto/crypto.go
diff options
context:
space:
mode:
authorJoe Richey <joerichey94@gmail.com>2017-08-29 11:17:10 -0700
committerJoe Richey <joerichey94@gmail.com>2017-08-29 11:17:10 -0700
commit7568ca2aab4a3266eb95cbda64298e2292743c7b (patch)
tree03f215c30237515f897c773fe7fbace4634bc48d /crypto/crypto.go
parenta14c0e8b896a1986bbd807ea60e3d7d05f5f6dfc (diff)
crypto: Handle when "ulimit -l" is too low
Diffstat (limited to 'crypto/crypto.go')
-rw-r--r--crypto/crypto.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/crypto.go b/crypto/crypto.go
index 62226b9..a85d345 100644
--- a/crypto/crypto.go
+++ b/crypto/crypto.go
@@ -62,6 +62,7 @@ var (
ErrGetrandomFail = util.SystemError("getrandom() failed")
ErrKeyAlloc = util.SystemError("could not allocate memory for key")
ErrKeyFree = util.SystemError("could not free memory of key")
+ ErrKeyLock = errors.New("could not lock key in memory")
)
// panicInputLength panics if "name" has invalid length (expected != actual)