]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
crypto: insert key into keyring from go
authorJoe Richey <joerichey@google.com>
Thu, 2 Mar 2017 19:47:07 +0000 (11:47 -0800)
committerJoe Richey joerichey@google.com <joerichey@google.com>
Tue, 2 May 2017 20:39:18 +0000 (13:39 -0700)
commit53d15f466a665e4e564af3afdcbcfe9ff1c91331
treef154df351d4a1df8c277015db7acd20517292f01
parent20924ca06efba5a50356bdb5abb1f7b87f34f817
crypto: insert key into keyring from go

This commit adds in the ability to insert Keys into the kernel keyring
from go code. This is done via a patched version of x/sys/unix. We
also expose the specific requirements for keys that will be placed in
the keyring, namely PolicyKeyLen. The legacy services are also exposed.

Change-Id: I177928c9aa676cae13b749042b9a3996e7490f68
crypto/crypto_test.go
crypto/key.go
metadata/policy.go
metadata/policy_test.go