Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Update KeyTypeInfoStore comment.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 533227595
  • Loading branch information
cindylindeed authored and copybara-github committed May 18, 2023
1 parent f5d2a42 commit 4066a2f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cc/internal/key_type_info_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ namespace tink {
namespace internal {

// Stores information about key types constructed from their KeyTypeManager or
// KeyManager. This is used by the Registry and Configuration classes.
// KeyManager. This is used by the Configuration and Registry classes.
//
// Once inserted, Info objects must remain valid for the lifetime of the
// KeyTypeInfoStore object, and the Info object's pointer stability is required.
// Elements in Info, which include the KeyTypeManager or KeyManager, must not
// be replaced.
//
// Example:
// KeyTypeInfoStore store;
// crypto::tink::util::Status status =
// store.AddKeyTypeManager(absl::make_unique<AesGcmKeyManager>(), true);
// crypto::tink::util::StatusOr<KeyTypeInfoStore::Info*> info =
// store.Get(AesGcmKeyManager().get_key_type());
// KeyTypeInfoStore store;
// crypto::tink::util::Status status =
// store.AddKeyTypeManager(absl::make_unique<AesGcmKeyManager>(), true);
// crypto::tink::util::StatusOr<KeyTypeInfoStore::Info*> info =
// store.Get(AesGcmKeyManager().get_key_type());
class KeyTypeInfoStore {
public:
KeyTypeInfoStore() = default;
Expand Down

0 comments on commit 4066a2f

Please sign in to comment.