diff options
author | Will Drewry <wad@chromium.org> | 2014-06-10 15:08:37 -0500 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-06-13 22:42:09 +0000 |
commit | 795c7f30df3dcde767764d69e7d1c6dda0e41076 (patch) | |
tree | df828c4bd40735c09fc862a9d2cae2f84febcb46 /dbus/cryptohome | |
parent | ba73627b396a7773203a6c554ae2cc759d52eb2b (diff) | |
download | system_api-795c7f30df3dcde767764d69e7d1c6dda0e41076.tar.gz |
cryptohome/rpc.proto: Add GetKeyRequest/Reply interface
Provide a mechanism for clients to request the public KeyData for a
key using its per-account unique label.
TEST=builds,unit+manual with cryptohome CL
BUG=chromium:367847
Change-Id: Ie63ac4a65e176dd8faca7bfa5741cd720348e343
Reviewed-on: https://chromium-review.googlesource.com/203155
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
Commit-Queue: Will Drewry <wad@chromium.org>
Diffstat (limited to 'dbus/cryptohome')
-rw-r--r-- | dbus/cryptohome/rpc.proto | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dbus/cryptohome/rpc.proto b/dbus/cryptohome/rpc.proto index 7c28263..78f9a7e 100644 --- a/dbus/cryptohome/rpc.proto +++ b/dbus/cryptohome/rpc.proto @@ -153,3 +153,18 @@ message VerifyBootLockboxRequest { message FinalizeBootLockboxRequest { } +message GetKeyDataRequest { + // |key| must supply at least one attribute and all others will be treated as + // wildcards. Currently only |key.data().label()| may be supplied. Like + // AuthorizationRequest, support can be added for queries by + // |key.data().type()| to return all keys of a certain class, testing + // |key.secret()|, or |key.data().provider_data()| entries. + optional Key key = 1; +} + +message GetKeyDataReply { + extend BaseReply { + optional GetKeyDataReply reply = 1002; + } + repeated KeyData key_data = 1; +} |