aboutsummaryrefslogtreecommitdiff
path: root/cc/mac/mac_key_templates.h
diff options
context:
space:
mode:
authorHaris Andrianakis <candrian@google.com>2018-06-07 16:18:57 -0700
committerTink Team <noreply@google.com>2018-06-08 14:49:34 -0700
commitd575b42d94c69b3858bcb8eaa1c1482b23df51eb (patch)
tree78b2ba455568f8b9edb462d9f772ad824c7895fb /cc/mac/mac_key_templates.h
parent80647a0bfe337c74cbabc4b64b2e40061cf2b953 (diff)
downloadtink-d575b42d94c69b3858bcb8eaa1c1482b23df51eb.tar.gz
objc: Implement MacKeyTemplate.
PiperOrigin-RevId: 199714804 GitOrigin-RevId: da360437a835c0d3690926af6e480c8b3ce42443
Diffstat (limited to 'cc/mac/mac_key_templates.h')
-rw-r--r--cc/mac/mac_key_templates.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/mac/mac_key_templates.h b/cc/mac/mac_key_templates.h
index 5b2073832..39bb5b27c 100644
--- a/cc/mac/mac_key_templates.h
+++ b/cc/mac/mac_key_templates.h
@@ -31,7 +31,7 @@ namespace tink {
// status = Config::Register(MacConfig::Tink_1_1_0());
// if (!status.ok()) { /* fail with error */ }
// auto handle_result =
-// KeysetHandle.GenerateNew(MacKeyTemplates.HmacSha256Tag128Bit());
+// KeysetHandle.GenerateNew(MacKeyTemplates.HmacSha256HalfSizeTag());
// if (!handle_result.ok()) { /* fail with error */ }
// auto keyset_handle = std::move(handle_result.ValueOrDie());
class MacKeyTemplates {
@@ -42,7 +42,7 @@ class MacKeyTemplates {
// - tag size: 16 bytes
// - hash function: SHA256
// - OutputPrefixType: TINK
- static const google::crypto::tink::KeyTemplate& Hmac128BittagSha256();
+ static const google::crypto::tink::KeyTemplate& HmacSha256HalfSizeTag();
// Returns a KeyTemplate that generates new instances of HmacKey
// with the following parameters:
@@ -50,7 +50,7 @@ class MacKeyTemplates {
// - tag size: 32 bytes
// - hash function: SHA256
// - OutputPrefixType: TINK
- static const google::crypto::tink::KeyTemplate& Hmac256BittagSha256();
+ static const google::crypto::tink::KeyTemplate& HmacSha256();
};
} // namespace tink