aboutsummaryrefslogtreecommitdiff
path: root/metadata/metadata.pb.go
diff options
context:
space:
mode:
authorJoe Richey <joerichey@google.com>2017-03-02 11:22:43 -0800
committerJoe Richey joerichey@google.com <joerichey@google.com>2017-05-02 13:39:18 -0700
commit20924ca06efba5a50356bdb5abb1f7b87f34f817 (patch)
treefa72ee02796db8cd6e3ffd477ae98f61bf1a1c3c /metadata/metadata.pb.go
parenta683ab55245aa44ada5059f8e9816adbd94198ff (diff)
crypto: Key struct for secure buffers
This commit adds in the crypto package, which will hold all of the security primitives for fscrypt. This first component deals with securely handling keys in memory. To do this in a consistent way across fscrypt, we introduce the Key struct. Any sensitive memory (like keys, passwords, or recovery tokens) in fscrypt will be held in a Key. No code outside of the crypto package should access the Key's data directly. Convenience functions and methods are provided to construct keys from io.Readers (either with fixed length or with variable length) and to access information about the Keys. The most important property of Keys is that the data is locked in memory on construction, and the data is unlocked and wiped when Wipe is called. This happens either by something like "defer key.Wipe()" or through the finalizer. Change-Id: Ice76335f3975efb439b3f1ab605ef34cb7fcb4d6
Diffstat (limited to 'metadata/metadata.pb.go')
0 files changed, 0 insertions, 0 deletions