aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-11-27 11:28:14 -0800
committerEric Biggers <ebiggers@google.com>2019-11-27 11:28:14 -0800
commit82d01438a66212ce802721397a62c18a0b71b7ea (patch)
treebf9f99dbde27c9fc6cd3e8ab06f42afda5aaa307 /crypto
parent13bc8a6a344c6bfbf685f9e6a3e55f87cef066e4 (diff)
Use latest fscrypt declarations from sys/unix
Use the new name for fscrypt constants and structures which have been given a new name. Also use the named constant for the DIRECT_KEY fscrypt policy flag. No change in behavior. This is just preparing for future work.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/crypto_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crypto_test.go b/crypto/crypto_test.go
index a8d9830..6f973ef 100644
--- a/crypto/crypto_test.go
+++ b/crypto/crypto_test.go
@@ -56,7 +56,7 @@ var (
fakeValidDescriptor = "0123456789abcdef"
fakeSalt = bytes.Repeat([]byte{'a'}, metadata.SaltLen)
fakePassword = []byte("password")
- defaultService = unix.FS_KEY_DESC_PREFIX
+ defaultService = unix.FSCRYPT_KEY_DESC_PREFIX
fakeValidPolicyKey, _ = makeKey(42, metadata.PolicyKeyLen)
fakeInvalidPolicyKey, _ = makeKey(42, metadata.PolicyKeyLen-1)