aboutsummaryrefslogtreecommitdiff
path: root/metadata/constants.go
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 /metadata/constants.go
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 'metadata/constants.go')
-rw-r--r--metadata/constants.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/metadata/constants.go b/metadata/constants.go
index 344f955..8855ae3 100644
--- a/metadata/constants.go
+++ b/metadata/constants.go
@@ -28,7 +28,7 @@ import (
// Lengths for our keys, buffers, and strings used in fscrypt.
const (
// DescriptorLen is the length of all Protector and Policy descriptors.
- DescriptorLen = 2 * unix.FS_KEY_DESCRIPTOR_SIZE
+ DescriptorLen = 2 * unix.FSCRYPT_KEY_DESCRIPTOR_SIZE
// We always use 256-bit keys internally (compared to 512-bit policy keys).
InternalKeyLen = 32
IVLen = 16
@@ -36,7 +36,7 @@ const (
// We use SHA256 for the HMAC, and len(HMAC) == len(hash size).
HMACLen = sha256.Size
// PolicyKeyLen is the length of all keys passed directly to the Keyring
- PolicyKeyLen = unix.FS_MAX_KEY_SIZE
+ PolicyKeyLen = unix.FSCRYPT_MAX_KEY_SIZE
)
var (