diff options
author | candrian <candrian@google.com> | 2019-03-19 14:15:30 -0700 |
---|---|---|
committer | Tink Team <noreply@google.com> | 2019-03-20 11:41:52 -0400 |
commit | 91fb708e697ec35c7807f5d65df7aeedd508c0a1 (patch) | |
tree | c0c7c82a8dffe9832c4de57416d35bf236aa3a78 /cc/cleartext_keyset_handle.h | |
parent | 22467ef7273d73b2d65e4b50310aab4af006bb7e (diff) | |
download | tink-91fb708e697ec35c7807f5d65df7aeedd508c0a1.tar.gz |
Add WriteNoSecret support to KeysetHandle.
Add Write static method to CleartextKeysetHandle.
PiperOrigin-RevId: 239267109
GitOrigin-RevId: e3c83aa6f138a50a0b40de884904b7cb504de2e8
Diffstat (limited to 'cc/cleartext_keyset_handle.h')
-rw-r--r-- | cc/cleartext_keyset_handle.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/cleartext_keyset_handle.h b/cc/cleartext_keyset_handle.h index 9a7403930..36ae81412 100644 --- a/cc/cleartext_keyset_handle.h +++ b/cc/cleartext_keyset_handle.h @@ -36,6 +36,11 @@ class CleartextKeysetHandle { static crypto::tink::util::StatusOr<std::unique_ptr<KeysetHandle>> Read( std::unique_ptr<KeysetReader> reader); + // Writes the keyset in the given |keyset_handle| to the |writer| which must + // be non-null. + static crypto::tink::util::Status Write(KeysetWriter* writer, + const KeysetHandle& keyset_handle); + // Creates a KeysetHandle object for the given 'keyset'. static std::unique_ptr<KeysetHandle> GetKeysetHandle( const google::crypto::tink::Keyset& keyset); |