Debian Codegraph @

keymanager/km_common/proto/payload.proto

raw
1 syntax = "proto3";
2
3 package keymanager;
4
5 import "keymanager/km_common/proto/algorithms.proto";
6
7 option go_package = "github.com/google/go-tpm-tools/keymanager/km_common/proto;keymanager";
8
9 // The results of an Encaps operation.
10 message KemCiphertext {
11 KemAlgorithm algorithm = 1;
12 bytes ciphertext = 2; // `Nenc` bytes long.
13 }
14
15 // The results of a Decaps operation.
16 message KemSharedSecret {
17 KemAlgorithm algorithm = 1;
18 bytes secret = 2; // `Nsecret` bytes long.
19 }
20
21 message HpkePayload {
22 HpkeAlgorithm algorithm = 1;
23 bytes kem_ciphertext = 2; // `Nenc` bytes long.
24 bytes payload_ciphertext = 3; // Encrypted data.
25 bytes authentication_tag = 4; // `Nt` bytes long.
26 }