diff options
author | thaidn <thaidn@google.com> | 2019-03-15 14:50:14 -0700 |
---|---|---|
committer | Tink Team <noreply@google.com> | 2019-03-20 11:39:26 -0400 |
commit | 450a82adf9eb00e5214a13a9f28573f77a27289b (patch) | |
tree | 070f1dbe8e86b51f0ab94bb04b0f7182f4fefa05 /cc/cleartext_keyset_handle.h | |
parent | df24cc120542971ebe6af76ce00f35a480094647 (diff) | |
download | tink-450a82adf9eb00e5214a13a9f28573f77a27289b.tar.gz |
Rename KeysetUtil to TestKeysetHandle and make it testonly = 1.
PiperOrigin-RevId: 238715069
GitOrigin-RevId: 91e305090a18bd579c842459a6f46de1f2861763
Diffstat (limited to 'cc/cleartext_keyset_handle.h')
-rw-r--r-- | cc/cleartext_keyset_handle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/cleartext_keyset_handle.h b/cc/cleartext_keyset_handle.h index 51c248c80..9a7403930 100644 --- a/cc/cleartext_keyset_handle.h +++ b/cc/cleartext_keyset_handle.h @@ -36,6 +36,10 @@ class CleartextKeysetHandle { static crypto::tink::util::StatusOr<std::unique_ptr<KeysetHandle>> Read( std::unique_ptr<KeysetReader> reader); + // Creates a KeysetHandle object for the given 'keyset'. + static std::unique_ptr<KeysetHandle> GetKeysetHandle( + const google::crypto::tink::Keyset& keyset); + // Returns a Keyset-proto from the given 'keyset_handle'. static const google::crypto::tink::Keyset& GetKeyset( const KeysetHandle& keyset_handle); |