From ea3e258610340de0dd585c221f4e18a199f16bca Mon Sep 17 00:00:00 2001 From: "Joe Richey joerichey@google.com" Date: Thu, 8 Jun 2017 10:51:04 -0700 Subject: 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 --- crypto/crypto.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crypto/crypto.go') 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") -- cgit v1.2.3