xref: /aosp_15_r20/external/tink/cc/experimental/pqcrypto/kem/util/test_util.h (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
1 // Copyright 2021 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 
17 #ifndef TINK_EXPERIMENTAL_PQCRYPTO_KEM_UTIL_TEST_UTIL_H_
18 #define TINK_EXPERIMENTAL_PQCRYPTO_KEM_UTIL_TEST_UTIL_H_
19 
20 #include "proto/experimental/pqcrypto/cecpq2_aead_hkdf.pb.h"
21 
22 namespace crypto {
23 namespace tink {
24 namespace test {
25 
26 google::crypto::tink::Cecpq2AeadHkdfPrivateKey GetCecpq2AeadHkdfTestKey(
27     google::crypto::tink::EllipticCurveType curve_type,
28     google::crypto::tink::EcPointFormat ec_point_format,
29     google::crypto::tink::HashType hash_type);
30 
31 google::crypto::tink::Cecpq2AeadHkdfPrivateKey GetCecpq2AesGcmHkdfTestKey(
32     google::crypto::tink::EllipticCurveType curve_type,
33     google::crypto::tink::EcPointFormat ec_point_format,
34     google::crypto::tink::HashType hash_type, uint32_t aes_gcm_key_size);
35 
36 google::crypto::tink::Cecpq2AeadHkdfPrivateKey GetCecpq2AesCtrHmacHkdfTestKey(
37     google::crypto::tink::EllipticCurveType curve_type,
38     google::crypto::tink::EcPointFormat ec_point_format,
39     google::crypto::tink::HashType hash_type, uint32_t aes_ctr_key_size,
40     uint32_t aes_ctr_iv_size, google::crypto::tink::HashType hmac_hash_type,
41     uint32_t hmac_tag_size, uint32_t hmac_key_size);
42 
43 google::crypto::tink::Cecpq2AeadHkdfPrivateKey
44 GetCecpq2XChaCha20Poly1305HkdfTestKey(
45     google::crypto::tink::EllipticCurveType curve_type,
46     google::crypto::tink::EcPointFormat ec_point_format,
47     google::crypto::tink::HashType hash_type);
48 
49 }  // namespace test
50 }  // namespace tink
51 }  // namespace crypto
52 
53 #endif  // TINK_EXPERIMENTAL_PQCRYPTO_KEM_UTIL_TEST_UTIL_H_
54