]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
crypto: tests, errors, and descriptor computation
authorJoe Richey joerichey@google.com <joerichey@google.com>
Wed, 24 May 2017 01:41:36 +0000 (18:41 -0700)
committerJoe Richey joerichey@google.com <joerichey@google.com>
Wed, 31 May 2017 19:37:35 +0000 (12:37 -0700)
commitbc66b8a56ee7ae4f703cf30502aff8b7d68953d0
treeed58e8e175e3edb86234df5772858adaffe9cab2
parent44c2c7aeda3de09a405ed06aadacbc2c0c7f2a67
crypto: tests, errors, and descriptor computation

This changes the crypto package so it now builds in light of the changes
to the util and metadata package. This commit also improves the error
handling, adds tests, and makes it so recovery keys now correspond to
Policy keys (as they are used to recover a directory in the absence of
any metadata).

The only feature addition here is the ability to compute descriptors.
For backwards compatibility, we keep the same descriptor algorithm used
before (double SHA512).

Change-Id: Ia2b53c6e85ce65c57595e6823d3c4c92219bc8dc
crypto/crypto.go
crypto/crypto_test.go
crypto/key.go
crypto/rand.go
crypto/recovery_test.go