aboutsummaryrefslogtreecommitdiff
path: root/crypto/crypto.go
diff options
context:
space:
mode:
authorJoe Richey joerichey@google.com <joerichey@google.com>2017-06-08 10:51:04 -0700
committerJoe Richey joerichey@google.com <joerichey@google.com>2017-06-15 22:32:35 -0700
commitea3e258610340de0dd585c221f4e18a199f16bca (patch)
tree6619b0564b988803346d09e211ea400d02b3161d /crypto/crypto.go
parentd5f89f8fcc5172be183fb02b802fa23ed3e9f8fa (diff)
crypto: add in additional keyring functionality
This commit adds in the FindPolicyKey and RemovePolicyKey functions to complement the InsertPolicyKey function. The existing functions were also refactored slightly. Change-Id: Iabd275f2186a9e3023d5efd44c772966123e3657
Diffstat (limited to 'crypto/crypto.go')
-rw-r--r--crypto/crypto.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/crypto.go b/crypto/crypto.go
index a226f26..c6d6619 100644
--- a/crypto/crypto.go
+++ b/crypto/crypto.go
@@ -63,6 +63,8 @@ var (
ErrKeyFree = util.SystemError("could not free memory of key")
ErrKeyringLocate = util.SystemError("could not locate the session keyring")
ErrKeyringInsert = util.SystemError("could not insert key into the session keyring")
+ ErrKeyringSearch = util.SystemError("could not find key in the session keyring")
+ ErrKeyringDelete = util.SystemError("could not delete key from the session keyring")
ErrRecoveryCode = errors.New("provided recovery code had incorrect format")
ErrLowEntropy = util.SystemError("insufficient entropy in pool to generate random bytes")
ErrRandNotSupported = util.SystemError("getrandom() not implemented; kernel must be v3.17 or later")