diff options
author | cinlin <cinlin@google.com> | 2023-03-12 03:22:01 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-03-12 03:23:17 -0700 |
commit | 4896ce26eccdfcc900727f1603a6f6734ca1e8a3 (patch) | |
tree | 8ef78dfe087643b8e35c9c5d93c1a283fbfea326 /cc/configuration.h | |
parent | 77ad9a7cf5217666be7aca94dfe3c5f41e9256ac (diff) | |
download | tink-4896ce26eccdfcc900727f1603a6f6734ca1e8a3.tar.gz |
Implement public and internal Configuration classes. #tinkApiChange
PiperOrigin-RevId: 515993746
Diffstat (limited to 'cc/configuration.h')
-rw-r--r-- | cc/configuration.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/cc/configuration.h b/cc/configuration.h new file mode 100644 index 000000000..0eade38a5 --- /dev/null +++ b/cc/configuration.h @@ -0,0 +1,42 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef TINK_CONFIGURATION_H_ +#define TINK_CONFIGURATION_H_ + +#include "tink/internal/registry_impl.h" + +namespace crypto { +namespace tink { + +namespace internal { +class ConfigurationImpl; +} + +// Enables primitive generation by storing necessary primitive wrappers and key +// type managers. +class Configuration { + private: + // ConfigurationImpl requires access to `registry_`. + friend class internal::ConfigurationImpl; + + internal::RegistryImpl registry_; +}; + +} // namespace tink +} // namespace crypto + +#endif // TINK_CONFIGURATION_H_ |