aboutsummaryrefslogtreecommitdiff
path: root/metadata
diff options
context:
space:
mode:
authorJoe Richey joerichey@google.com <joerichey@google.com>2017-05-23 18:57:13 -0700
committerJoe Richey joerichey@google.com <joerichey@google.com>2017-05-31 12:41:30 -0700
commita14724d335a87c3f7a12f7f0837cfc01ec995b82 (patch)
treee07adb93c5ef912be98f861a139acf924235a946 /metadata
parentf4f4f606718497a2f660cdb737b812e035f55311 (diff)
actions: generate a config file for fscrypt
This commit adds in the actions package. This package will be the highest-level interface to the fscrypt packages. The public functions in this package will be called directly from cmd/fscrypt. The actions added in this commit pertain to creating and reading the fscrypt global config file "fscrypt.conf". The challenging part about creating this file is finding the correct hashing parameters for the desired time target. The getHashingCosts() function finds the desired costs by doubling the costs and running the passphrase hash until the target is exceeded. Then, a cost estimate is obtained using a linear interpolation between the last two costs (and their time results). Change-Id: I4a0eaf4856ec4ff49eb4360da3267f7caa9d07b2
Diffstat (limited to 'metadata')
0 files changed, 0 insertions, 0 deletions