aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Richey <joerichey94@gmail.com>2017-10-24 13:19:08 -0700
committerJoseph Richey <joerichey94@gmail.com>2017-10-24 13:21:36 -0700
commitf7b99a39152694f72104b95e6a30e245248c75d7 (patch)
treed020baa01807d8e0e73ac7cbb2bc5edbc0c7b55e
parent6de6b14a09b3695fe797e5fd59a04b3c3834641a (diff)
crypto: Merge with security packagerefactor
-rw-r--r--crypto/cache.go (renamed from security/cache.go)2
-rw-r--r--crypto/key.go3
-rw-r--r--crypto/keyring.go (renamed from security/keyring.go)2
-rw-r--r--crypto/privileges.go (renamed from security/privileges.go)7
4 files changed, 4 insertions, 10 deletions
diff --git a/security/cache.go b/crypto/cache.go
index d0c60b1..1e7bb60 100644
--- a/security/cache.go
+++ b/crypto/cache.go
@@ -17,7 +17,7 @@
* the License.
*/
-package security
+package crypto
import (
"log"
diff --git a/crypto/key.go b/crypto/key.go
index 9bf9098..19fb30c 100644
--- a/crypto/key.go
+++ b/crypto/key.go
@@ -41,7 +41,6 @@ import (
"golang.org/x/sys/unix"
"github.com/google/fscrypt/metadata"
- "github.com/google/fscrypt/security"
"github.com/google/fscrypt/util"
)
@@ -267,7 +266,7 @@ func InsertPolicyKey(key *Key, description string, target *user.User) error {
fscryptKey.Size = metadata.PolicyKeyLen
copy(fscryptKey.Raw[:], key.data)
- return security.InsertKey(payload.data, description, target)
+ return InsertKey(payload.data, description, target)
}
var (
diff --git a/security/keyring.go b/crypto/keyring.go
index 7ce163e..9a82f80 100644
--- a/security/keyring.go
+++ b/crypto/keyring.go
@@ -17,7 +17,7 @@
* the License.
*/
-package security
+package crypto
import (
"fmt"
diff --git a/security/privileges.go b/crypto/privileges.go
index 7d69da9..c57fd30 100644
--- a/security/privileges.go
+++ b/crypto/privileges.go
@@ -17,12 +17,7 @@
* the License.
*/
-// Package security manages:
-// - Cache clearing (cache.go)
-// - Keyring Operations (keyring.go)
-// - Privilege manipulation (privileges.go)
-// - Maintaining the link between the root and user keyrings.
-package security
+package crypto
import (
"log"