Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions willow/proto/willow/decryptor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ package secure_aggregation.willow;

option java_multiple_files = true;

message GenerateKeyRequest {}
message GenerateKeyRequest {
// The key ID to use for the generated key. If the key with the given ID
// already exists, it will be returned instead.
bytes key_id = 1;
}

message GenerateKeyResponse {
// The serialized bytes of the public key.
Expand All @@ -28,8 +32,10 @@ message GenerateKeyResponse {
message DecryptRequest {
// The serialized bytes of the message to decrypt.
bytes decryption_request = 1;
// The serialized bytes of the public key as returned by GenerateAheKeyPair
bytes public_key = 2;
// The serialized bytes of the public key as returned by GenerateKey.
bytes public_key = 2 [deprecated = true];
// The key ID of the public key that was used in the GenerateKey call.
bytes key_id = 3;
}

message DecryptResponse {
Expand Down