Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions willow/proto/willow/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,13 @@ cc_proto_library(
name = "decryptor_cc_proto",
deps = [":decryptor_proto"],
)

proto_library(
name = "key_proto",
srcs = ["key.proto"],
)

cc_proto_library(
name = "key_cc_proto",
deps = [":key_proto"],
)
2 changes: 1 addition & 1 deletion willow/proto/willow/decryptor.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
31 changes: 31 additions & 0 deletions willow/proto/willow/key.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

edition = "2023";

package secure_aggregation.willow;

option java_multiple_files = true;

// A simple container for a Willow public cryptographic key that embeds the key
// ID and the "raw" key material.
message Key {
// A short identifier for the key to allow decryption or verification to find
// the corresponding key from a list.
bytes key_id = 1;

// The raw key material. This is the serialized bytes of the key material
// returned by the key generation service.
bytes key_material = 2;
}