xref: /aosp_15_r20/external/tink/proto/hkdf_prf.proto (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
1// Copyright 2019 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15////////////////////////////////////////////////////////////////////////////////
16
17syntax = "proto3";
18
19package google.crypto.tink;
20
21import "proto/common.proto";
22
23option java_package = "com.google.crypto.tink.proto";
24option java_multiple_files = true;
25option go_package = "github.com/google/tink/go/proto/hkdf_prf_proto";
26
27message HkdfPrfParams {
28  HashType hash = 1;
29  // Optional.
30  //
31  // An unspecified or zero-length value is equivalent to a sequence of zeros
32  // (0x00) with a length equal to the output size of hash.
33  //
34  // See https://rfc-editor.org/rfc/rfc5869.
35  bytes salt = 2;
36}
37
38message HkdfPrfKey {
39  uint32 version = 1;
40  HkdfPrfParams params = 2;
41  bytes key_value = 3;
42}
43
44message HkdfPrfKeyFormat {
45  HkdfPrfParams params = 1;
46  uint32 key_size = 2;
47  uint32 version = 3;
48}
49