1# Copyright 2019 Google LLC 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15"""Core package.""" 16 17from tink.proto import tink_pb2 18from tink.core import _crypto_format 19from tink.core import _key_manager 20from tink.core import _primitive_set 21from tink.core import _primitive_wrapper 22from tink.core import _registry 23from tink.core import _tink_error 24 25 26KeyManager = _key_manager.KeyManager 27PrivateKeyManager = _key_manager.PrivateKeyManager 28 29KeyManagerCcToPyWrapper = _key_manager.KeyManagerCcToPyWrapper 30PrivateKeyManagerCcToPyWrapper = _key_manager.PrivateKeyManagerCcToPyWrapper 31 32Registry = _registry.Registry 33 34TinkError = _tink_error.TinkError 35use_tink_errors = _tink_error.use_tink_errors 36 37new_primitive_set = _primitive_set.new_primitive_set 38PrimitiveSet = _primitive_set.PrimitiveSet 39PrimitiveWrapper = _primitive_wrapper.PrimitiveWrapper 40 41crypto_format = _crypto_format 42 43 44class KeyAccess: 45 """Base class for access tokens for Tink Keys.""" 46 pass 47