diff options
author | juerg <juerg@google.com> | 2021-08-20 00:37:09 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2021-08-20 00:37:53 -0700 |
commit | a6298b2dcea3e9d0a1885192a94de6848688c2b5 (patch) | |
tree | f161654f4703fd8aa71474f6b2d9c37f8d8d8492 /proto | |
parent | 8a6e3931fee77809d693cb145b3d0a7b88498783 (diff) | |
download | tink-a6298b2dcea3e9d0a1885192a94de6848688c2b5.tar.gz |
Add a function to the testing_api that maps names to key templates.
This function will allow us to implement cross-language tests for key templates, and we can remove the key templates in testdata.
PiperOrigin-RevId: 391934203
Diffstat (limited to 'proto')
-rw-r--r-- | proto/testing/testing_api.proto | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/proto/testing/testing_api.proto b/proto/testing/testing_api.proto index 39f4ac83e..72eb742b3 100644 --- a/proto/testing/testing_api.proto +++ b/proto/testing/testing_api.proto @@ -35,6 +35,8 @@ message ServerInfoResponse { // Service for Keyset operations. service Keyset { + // Generates a key template from a key template name. + rpc GetTemplate(KeysetTemplateRequest) returns (KeysetTemplateResponse) {} // Generates a new keyset from a template. rpc Generate(KeysetGenerateRequest) returns (KeysetGenerateResponse) {} // Generates a public-key keyset from a private-key keyset. @@ -45,6 +47,17 @@ service Keyset { rpc FromJson(KeysetFromJsonRequest) returns (KeysetFromJsonResponse) {} } +message KeysetTemplateRequest { + string template_name = 1; // template name used by Tinkey +} + +message KeysetTemplateResponse { + oneof result { + bytes key_template = 1; // serialized google.crypto.tink.KeyTemplate. + string err = 2; + } +} + message KeysetGenerateRequest { bytes template = 1; // serialized google.crypto.tink.KeyTemplate. } |