diff options
author | Tink Team <tink-dev@google.com> | 2023-03-29 23:58:48 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-03-30 00:00:15 -0700 |
commit | 247033dd6cdf7532e06f87fc8af88df9ec5f7eae (patch) | |
tree | e8aa426b9e1a60146513fe121992532ac655b9b8 /cc/experimental | |
parent | c24631e71bc514d20ba2dde674df59100d0cbcb3 (diff) | |
download | tink-247033dd6cdf7532e06f87fc8af88df9ec5f7eae.tar.gz |
Internal Code Change
PiperOrigin-RevId: 520553966
Diffstat (limited to 'cc/experimental')
9 files changed, 12 insertions, 12 deletions
diff --git a/cc/experimental/pqcrypto/signature/dilithium_key_template.cc b/cc/experimental/pqcrypto/signature/dilithium_key_template.cc index adbaf9449..14f52a36f 100644 --- a/cc/experimental/pqcrypto/signature/dilithium_key_template.cc +++ b/cc/experimental/pqcrypto/signature/dilithium_key_template.cc @@ -40,7 +40,7 @@ using google::crypto::tink::DilithiumSeedExpansion; using google::crypto::tink::KeyTemplate; using google::crypto::tink::OutputPrefixType; -KeyTemplate* NewDilithiumKeyTemplate(int32 key_size, +KeyTemplate* NewDilithiumKeyTemplate(int32_t key_size, DilithiumSeedExpansion seed_expansion) { KeyTemplate* key_template = new KeyTemplate; key_template->set_type_url( diff --git a/cc/experimental/pqcrypto/signature/dilithium_key_template_test.cc b/cc/experimental/pqcrypto/signature/dilithium_key_template_test.cc index 09e947f40..ac8c9c848 100644 --- a/cc/experimental/pqcrypto/signature/dilithium_key_template_test.cc +++ b/cc/experimental/pqcrypto/signature/dilithium_key_template_test.cc @@ -51,7 +51,7 @@ using ::google::crypto::tink::OutputPrefixType; struct DilithiumKeyTemplateTestCase { std::string test_name; - int32 key_size; + int32_t key_size; DilithiumSeedExpansion seed_expansion; KeyTemplate key_template; }; diff --git a/cc/experimental/pqcrypto/signature/dilithium_sign_key_manager_test.cc b/cc/experimental/pqcrypto/signature/dilithium_sign_key_manager_test.cc index 36ff2bf86..bca0d2613 100644 --- a/cc/experimental/pqcrypto/signature/dilithium_sign_key_manager_test.cc +++ b/cc/experimental/pqcrypto/signature/dilithium_sign_key_manager_test.cc @@ -71,7 +71,7 @@ using DilithiumSignKeyManagerTest = testing::TestWithParam<DilithiumTestCase>; // Helper function that returns a valid dilithium key format. StatusOr<DilithiumKeyFormat> CreateValidKeyFormat( - int32 private_key_size, DilithiumSeedExpansion seed_expansion) { + int32_t private_key_size, DilithiumSeedExpansion seed_expansion) { DilithiumKeyFormat key_format; DilithiumParams* params = key_format.mutable_params(); params->set_key_size(private_key_size); diff --git a/cc/experimental/pqcrypto/signature/dilithium_verify_key_manager_test.cc b/cc/experimental/pqcrypto/signature/dilithium_verify_key_manager_test.cc index 9f489af5a..a093fea31 100644 --- a/cc/experimental/pqcrypto/signature/dilithium_verify_key_manager_test.cc +++ b/cc/experimental/pqcrypto/signature/dilithium_verify_key_manager_test.cc @@ -71,7 +71,7 @@ using DilithiumVerifyKeyManagerTest = testing::TestWithParam<DilithiumTestCase>; // Helper function that returns a valid dilithium private key. StatusOr<DilithiumPrivateKey> CreateValidPrivateKey( - int32 private_key_size, DilithiumSeedExpansion seed_expansion) { + int32_t private_key_size, DilithiumSeedExpansion seed_expansion) { DilithiumKeyFormat key_format; DilithiumParams* params = key_format.mutable_params(); params->set_key_size(private_key_size); @@ -82,7 +82,7 @@ StatusOr<DilithiumPrivateKey> CreateValidPrivateKey( // Helper function that returns a valid dilithium public key. StatusOr<DilithiumPublicKey> CreateValidPublicKey( - int32 private_key_size, DilithiumSeedExpansion seed_expansion) { + int32_t private_key_size, DilithiumSeedExpansion seed_expansion) { StatusOr<DilithiumPrivateKey> private_key = CreateValidPrivateKey(private_key_size, seed_expansion); diff --git a/cc/experimental/pqcrypto/signature/falcon_sign_key_manager_test.cc b/cc/experimental/pqcrypto/signature/falcon_sign_key_manager_test.cc index efdc5df4b..06ff16aff 100644 --- a/cc/experimental/pqcrypto/signature/falcon_sign_key_manager_test.cc +++ b/cc/experimental/pqcrypto/signature/falcon_sign_key_manager_test.cc @@ -55,7 +55,7 @@ struct FalconTestCase { using FalconSignKeyManagerTest = testing::TestWithParam<FalconTestCase>; // Helper function that returns a valid falcon key format. -StatusOr<FalconKeyFormat> CreateValidKeyFormat(int32 private_key_size) { +StatusOr<FalconKeyFormat> CreateValidKeyFormat(int32_t private_key_size) { FalconKeyFormat key_format; key_format.set_key_size(private_key_size); diff --git a/cc/experimental/pqcrypto/signature/falcon_verify_key_manager_test.cc b/cc/experimental/pqcrypto/signature/falcon_verify_key_manager_test.cc index ac1df106c..3f89de5ed 100644 --- a/cc/experimental/pqcrypto/signature/falcon_verify_key_manager_test.cc +++ b/cc/experimental/pqcrypto/signature/falcon_verify_key_manager_test.cc @@ -55,7 +55,7 @@ struct FalconTestCase { using FalconVerifyKeyManagerTest = testing::TestWithParam<FalconTestCase>; // Helper function that returns a valid falcon private key. -StatusOr<FalconPrivateKey> CreateValidPrivateKey(int32 private_key_size) { +StatusOr<FalconPrivateKey> CreateValidPrivateKey(int32_t private_key_size) { FalconKeyFormat key_format; key_format.set_key_size(private_key_size); @@ -63,7 +63,7 @@ StatusOr<FalconPrivateKey> CreateValidPrivateKey(int32 private_key_size) { } // Helper function that returns a valid falcon public key. -StatusOr<FalconPublicKey> CreateValidPublicKey(int32 private_key_size) { +StatusOr<FalconPublicKey> CreateValidPublicKey(int32_t private_key_size) { StatusOr<FalconPrivateKey> private_key = CreateValidPrivateKey(private_key_size); diff --git a/cc/experimental/pqcrypto/signature/sphincs_key_template.cc b/cc/experimental/pqcrypto/signature/sphincs_key_template.cc index 038b9c2c5..fb07ad934 100644 --- a/cc/experimental/pqcrypto/signature/sphincs_key_template.cc +++ b/cc/experimental/pqcrypto/signature/sphincs_key_template.cc @@ -72,7 +72,7 @@ using ::google::crypto::tink::SphincsPrivateKey; using ::google::crypto::tink::SphincsSignatureType; using ::google::crypto::tink::SphincsVariant; -KeyTemplate* NewSphincsKeyTemplate(int32 private_key_size, +KeyTemplate* NewSphincsKeyTemplate(int32_t private_key_size, SphincsHashType hash_type, SphincsVariant variant, SphincsSignatureType type) { diff --git a/cc/experimental/pqcrypto/signature/sphincs_sign_key_manager_test.cc b/cc/experimental/pqcrypto/signature/sphincs_sign_key_manager_test.cc index ee6895928..4b15c60f6 100644 --- a/cc/experimental/pqcrypto/signature/sphincs_sign_key_manager_test.cc +++ b/cc/experimental/pqcrypto/signature/sphincs_sign_key_manager_test.cc @@ -105,7 +105,7 @@ struct SphincsTestCase { using SphincsSignKeyManagerTest = testing::TestWithParam<SphincsTestCase>; // Helper function that returns a valid sphincs key format. -StatusOr<SphincsKeyFormat> CreateValidKeyFormat(int32 private_key_size, +StatusOr<SphincsKeyFormat> CreateValidKeyFormat(int32_t private_key_size, SphincsHashType hash_type, SphincsVariant variant, SphincsSignatureType type) { diff --git a/cc/experimental/pqcrypto/signature/sphincs_verify_key_manager_test.cc b/cc/experimental/pqcrypto/signature/sphincs_verify_key_manager_test.cc index ded561594..f8b8d565c 100644 --- a/cc/experimental/pqcrypto/signature/sphincs_verify_key_manager_test.cc +++ b/cc/experimental/pqcrypto/signature/sphincs_verify_key_manager_test.cc @@ -103,7 +103,7 @@ struct SphincsTestCase { using SphincsVerifyKeyManagerTest = testing::TestWithParam<SphincsTestCase>; // Helper function that returns a valid sphincs private key. -StatusOr<SphincsPrivateKey> CreateValidPrivateKey(int32 private_key_size, +StatusOr<SphincsPrivateKey> CreateValidPrivateKey(int32_t private_key_size, SphincsHashType hash_type, SphincsVariant variant, SphincsSignatureType type) { @@ -118,7 +118,7 @@ StatusOr<SphincsPrivateKey> CreateValidPrivateKey(int32 private_key_size, } // Helper function that returns a valid sphincs public key. -StatusOr<SphincsPublicKey> CreateValidPublicKey(int32 private_key_size, +StatusOr<SphincsPublicKey> CreateValidPublicKey(int32_t private_key_size, SphincsHashType hash_type, SphincsVariant variant, SphincsSignatureType type) { |