aboutsummaryrefslogtreecommitdiff
path: root/cc/mac/mac_factory_test.cc
AgeCommit message (Collapse)Author
2022-12-16Remove unused `using` declarationswiktorg
PiperOrigin-RevId: 495839092
2022-03-21Change crypto::tink::util::StatusOr::ValueOrDie() to value() in /tink/cc. ↵lizatretyakova
Part of Tink migration to absl::Status{,Or}. PiperOrigin-RevId: 436173415
2022-01-07Fix some missing includes.tholenst
PiperOrigin-RevId: 420288323
2021-10-25Replace the deprecated crypto::tink::util::Status::error_message() method ↵lizatretyakova
with its absl-compatible version crypto::tink::util::Status::message(). This CL is a part of Tink migration to using absl::Status{,Or}. PiperOrigin-RevId: 405387586
2021-09-23Replace the first batch of the deprecated ↵lizatretyakova
crypto::tink::util::Status::error_code() calls with calls to an absl-compatible crypto::tink::util::Status::code(). PiperOrigin-RevId: 398467200
2020-10-12Migrate GetOutputPrefix to use as input a KeyInfo instead of two elements ↵tholenst
from KeyInfo. PiperOrigin-RevId: 336613763
2020-10-07Change get_output_prefix(key) to GetOutputPrefix(key_id, output_prefix_type).tholenst
We change the arguments, and get closer to the Google C++ style guide by renaming. PiperOrigin-RevId: 335847935
2019-08-14Migrate the HmacKeyManger to a KeyTypeManager.tholenst
We will migrate the test in an upcoming cl. PiperOrigin-RevId: 263347373
2019-03-20Rename KeysetUtil to TestKeysetHandle and make it testonly = 1.thaidn
PiperOrigin-RevId: 238715069 GitOrigin-RevId: 91e305090a18bd579c842459a6f46de1f2861763
2018-09-20Remove the main files from (hopefully) all tests.Thomas Holenstein
Our tests are linked with gunit_main (or gunit_main_no_google3), which means that main is already defined in another translation unit. Having two main functions violates ODR and hence can result in undefined behavior. There is no need to fear losing tests. If a build system tries to run a test and there is no main function, then it will fail. Hence, i cannot see a way for this to stop testing a test. PiperOrigin-RevId: 213593596 GitOrigin-RevId: 1fd8b2dcc18d24901d77170082587557cc5303e3
2018-07-12Adding C++ default config registration.Bartosz Przydatek
PiperOrigin-RevId: 204257158 GitOrigin-RevId: 641a21a941f733511ef7d31ab39e53959d34bac4
2018-07-11Move TestUtil::GetKeyset, TestUtil::GetKeysetHandle to a separate class so theyHaris Andrianakis
are usable by Obj-C code (not just tests). PiperOrigin-RevId: 204124489 GitOrigin-RevId: 5df6f3544e3b7da83dde0a2c08ea0e8e8e4bfe38
2018-05-24Automated g4 rollback of changelist 197862984.Bartosz Przydatek
*** Reason for rollback *** Fixing the reason for breaking the tests. *** Original change description *** Automated g4 rollback of changelist 197860731. *** Reason for rollback *** TAP has detected that 100 or more targets failed to build at cl/197860731. If this is an error, please file a bug at go/autorollback-bug. TAP double-checked a few of the targets built at cl/197860730: https://sponge.corp.google.com/invocations?searchFor=label%3Atap+label%3Apostsubmit+label%3AAutoRollback+cl%3A197860730 but failed to build at cl/197860731. Sponge link for all broken targets: https://sponge.corp.google.co... *** PiperOrigin-RevId: 197877227 GitOrigin-RevId: a089063c3b449d59a7e90e4295c233b4e3b26520
2018-05-24Automated g4 rollback of changelist 197860731.Tink Team
*** Reason for rollback *** TAP has detected that 100 or more targets failed to build at cl/197860731. If this is an error, please file a bug at go/autorollback-bug. TAP double-checked a few of the targets built at cl/197860730: https://sponge.corp.google.com/invocations?searchFor=label%3Atap+label%3Apostsubmit+label%3AAutoRollback+cl%3A197860730 but failed to build at cl/197860731. Sponge link for all broken targets: https://sponge.corp.google.com/invocations?searchFor=label%3Atap+label%3Apostsubmit+label%3AAutoRollback+cl%3A197860731+status%3Afailed_to_build To see all targets that ran, along with their final status, visit: http://test/197860731 Questions? Comments? See the URL. go/autorollback *** Original change description *** Hiding C++ KeysetHandle::get_keyset() method. *** PiperOrigin-RevId: 197862984 GitOrigin-RevId: cce43c7029c7d5725390bb8f51f8ac7a90e61768
2018-05-24Hiding C++ KeysetHandle::get_keyset() method.Bartosz Przydatek
PiperOrigin-RevId: 197860731 GitOrigin-RevId: e67cdc709f253d56df35fed540e34550cf7ed3ab
2018-04-17Use Portable Protocol Buffers (go/portableproto) for Tink C++.Haris Andrianakis
Changes: - Renamed all references of something_cc_proto to something_portable_proto. - Added //cc/util/protobuf_helper which creates a namespace portable_port that maps to the correct namespace. - Replaced all deps to //net/proto2/ with //cc/util:protobuf_helper. - Replaced all instances of the proto2:: namespace with portable_proto:: - Deleted the line 'namespace util = crypto::tink::util' because it was conflicting with //util/task/status.h (a dependency of portable_proto_lib). Also, it wasn't really used in any of the files. Notes: - When adding a new proto you will need to whitelist it in proto/portable_tink_filter.asciipb - For google3 (BUILD) we should use portable_proto_lib, for opensource (BUILD.bazel) we should use cc_proto_lib. PiperOrigin-RevId: 193084414 GitOrigin-RevId: 266a0dbb7f66549655e521350b70b10d4a872286
2018-03-18Fixing C++ include-paths.Bartosz Przydatek
PiperOrigin-RevId: 189379168 GitOrigin-RevId: 2524f3b25fbaa08011b512a2730265435f48db37
2017-11-09Adding C++ KeysetManager.Bartosz Przydatek
Change-Id: If71775ddc160f4ba3b3e6c194b589ebd903f7ef4 ORIGINAL_AUTHOR=Bartosz Przydatek <przydatek@google.com> GitOrigin-RevId: 434de034db10383329ec23ef7b872b8a0586073e
2017-10-14Adding C++ KeysetReader.Bartosz Przydatek
Change-Id: I33c2a09d2983cd5aee28a1eec886eb22e31bf9f9 ORIGINAL_AUTHOR=Bartosz Przydatek <przydatek@google.com> GitOrigin-RevId: e6763b4edc0b874dec4e7056bd124271eeca9f2d
2017-09-01Fixing style issues.Bartosz Przydatek
Change-Id: I4f928caa6fbd877d2169fee572ae5c0381460e0b ORIGINAL_AUTHOR=Bartosz Przydatek <przydatek@google.com> GitOrigin-RevId: cbcaf65319ea010372050ac9ddd6bbc8d7f82c91
2017-09-01Move util to crypto::tink::util.Thai Duong
Change-Id: I2e628298c31e26da0067196634b5dc4d3bd5ed84 ORIGINAL_AUTHOR=Thai Duong <thaidn@google.com> GitOrigin-RevId: 9b88cb7f7aad68ff16094ab7ff6a3a1620f58cd5
2017-07-10Adding C++ ...Config-classes for primitives.Bartosz Przydatek
Change-Id: Ie289cf5a84adf92991e15193f3244c5264ca7ed3 ORIGINAL_AUTHOR=Bartosz Przydatek <przydatek@google.com> GitOrigin-RevId: 0a16afe6c8a506713b043867f697219a02277626
2017-06-22Adding cross-language tests for hybrid encryption.Bartosz Przydatek
Change-Id: I15136873c1b4a00b27169084f354ffbd9a0c9a53 ORIGINAL_AUTHOR=Bartosz Przydatek <przydatek@google.com> GitOrigin-RevId: 47c154adf3389b287362fd4a2bde41acf5b53682
2017-05-26Move C++ to google::crypto::tink.Thai Duong
Change-Id: I115b64a1d4a3e4eadb330ed707c9206efd42ae31 ORIGINAL_AUTHOR=Thai Duong <thaidn@google.com> GitOrigin-RevId: 58c9c7744df883bbbe906d3928027607208a7d1a
2017-05-10Fix blaze build and Lint errors.Thai Duong
It seems that blaze (not bazel) doesn't allow implicit conversion from StringPiece to string. Change-Id: I76142bcb2eec0ef2754e6a9a48a3d7ea4356ad49 ORIGINAL_AUTHOR=Thai Duong <thaidn@google.com> GitOrigin-RevId: d98cb3ead7e8342d8dd3820d727025c492959e2a
2017-05-10Merge "Adding implementation of MacFactory."Bartosz Przydatek
ORIGINAL_AUTHOR=Bartosz Przydatek <przydatek@google.com> GitOrigin-RevId: 309a055b2e19a0ba7c9e8c16564b85f3a048072d
2017-04-03Fix CC BUILD and dependencies, to make sync to google3 easier.Thai Duong
Change-Id: I25ac6bbd0e2fcc23c741e78125c4539805517866 ORIGINAL_AUTHOR=Thai Duong <thaidn@google.com> GitOrigin-RevId: 16370d0bf538bd1849d67f8807181b32368d104f
2017-03-29Merge "Fix more lint errors."Thai Duong
ORIGINAL_AUTHOR=Thai Duong <thaidn@google.com> GitOrigin-RevId: ea062a03aa6e00ce4dcdc363ab7a662df6f32bb7
2017-03-27Moving primitive factories to corresponding subdirectories.Bartosz Przydatek
Change-Id: I78628a62983c472f0cb5b73ce6f4e68714637398 ORIGINAL_AUTHOR=Bartosz Przydatek <przydatek@google.com> GitOrigin-RevId: a80036ee74ca7a6dcb7b5f84c2dc395a350cd43a