Skip to content

Commit af82247

Browse files
SecAgg Teamcopybara-github
authored andcommitted
Add key ID to GenerateKey and Decrypt requests.
PiperOrigin-RevId: 828004880
1 parent 92638c2 commit af82247

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

willow/proto/willow/decryptor.proto

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ package secure_aggregation.willow;
1818

1919
option java_multiple_files = true;
2020

21-
message GenerateKeyRequest {}
21+
message GenerateKeyRequest {
22+
// The key ID to use for the generated key. If the key with the given ID
23+
// already exists, it will be returned instead.
24+
bytes key_id = 1;
25+
}
2226

2327
message GenerateKeyResponse {
2428
// The serialized bytes of the public key.
@@ -28,8 +32,10 @@ message GenerateKeyResponse {
2832
message DecryptRequest {
2933
// The serialized bytes of the message to decrypt.
3034
bytes decryption_request = 1;
31-
// The serialized bytes of the public key as returned by GenerateAheKeyPair
32-
bytes public_key = 2;
35+
// The serialized bytes of the public key as returned by GenerateKey.
36+
bytes public_key = 2 [deprecated = true];
37+
// The key ID of the public key that was used in the GenerateKey call.
38+
bytes key_id = 3;
3339
}
3440

3541
message DecryptResponse {

0 commit comments

Comments
 (0)