diff options
author | Bartosz Przydatek <przydatek@google.com> | 2017-06-20 12:02:21 +0200 |
---|---|---|
committer | Thai Duong <thaidn@google.com> | 2017-07-10 20:33:38 -0700 |
commit | ecabde78ecad66e3847f98006ff0750aef993a94 (patch) | |
tree | 8db865abe3d50baffb78982c6719eb895f5f63ab /cc/cleartext_keyset_handle.h | |
parent | 94d48e41de5956613b899adb7a18f726a87b2827 (diff) | |
download | tink-ecabde78ecad66e3847f98006ff0750aef993a94.tar.gz |
Adding CleartextKeysetHandle::New-method
Change-Id: If6eebe6b9964522768c852c8213ead30fa141c3c
ORIGINAL_AUTHOR=Bartosz Przydatek <przydatek@google.com>
GitOrigin-RevId: 9a7c4c90f4b5aa863ce7bff1a42770c975729942
Diffstat (limited to 'cc/cleartext_keyset_handle.h')
-rw-r--r-- | cc/cleartext_keyset_handle.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/cleartext_keyset_handle.h b/cc/cleartext_keyset_handle.h index 59b20d4c4..428cf3b3c 100644 --- a/cc/cleartext_keyset_handle.h +++ b/cc/cleartext_keyset_handle.h @@ -22,6 +22,7 @@ #include "cc/keyset_handle.h" #include "cc/util/statusor.h" +#include "proto/tink.pb.h" namespace crypto { namespace tink { @@ -30,6 +31,8 @@ namespace tink { // loading cleartext keysets, thus its usage should be restricted. class CleartextKeysetHandle { public: + static util::StatusOr<std::unique_ptr<KeysetHandle>> New( + const google::crypto::tink::Keyset& keyset); static util::StatusOr<std::unique_ptr<KeysetHandle>> ParseFrom( const std::string& serialized_keyset); static util::StatusOr<std::unique_ptr<KeysetHandle>> ParseFrom( |