diff options
author | tholenst <tholenst@google.com> | 2020-10-12 01:16:19 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-10-12 01:17:02 -0700 |
commit | ce0e625d336e6db9f3d5ba3a0cce582f0fbec3e4 (patch) | |
tree | 9823ea5088478273fcceacb17a20a7beb82b4085 /cc/primitive_set.h | |
parent | 33de788ae3a500fa4d857799e2b14e7a67497dd4 (diff) | |
download | tink-ce0e625d336e6db9f3d5ba3a0cce582f0fbec3e4.tar.gz |
Migrate GetOutputPrefix to use as input a KeyInfo instead of two elements from KeyInfo.
PiperOrigin-RevId: 336613763
Diffstat (limited to 'cc/primitive_set.h')
-rw-r--r-- | cc/primitive_set.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cc/primitive_set.h b/cc/primitive_set.h index 16d79e5a3..2e0d9dbdc 100644 --- a/cc/primitive_set.h +++ b/cc/primitive_set.h @@ -62,8 +62,7 @@ class PrimitiveSet { return util::Status(crypto::tink::util::error::INVALID_ARGUMENT, "The key must be ENABLED."); } - auto identifier_result = CryptoFormat::GetOutputPrefix( - key_info.key_id(), key_info.output_prefix_type()); + auto identifier_result = CryptoFormat::GetOutputPrefix(key_info); if (!identifier_result.ok()) return identifier_result.status(); if (primitive == nullptr) { return util::Status(crypto::tink::util::error::INVALID_ARGUMENT, |