• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 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"""Describes the capabilities of Tink in different languages.
15
16This package describes the state of Tink in all languages. The cross language
17tests obtain information from here and use the gRPC servers ensure the
18information is correct.
19
20TODO(tholenst): Move all files describing the configuration into this directory,
21and add functions to access the information from the outside.
22"""
23
24from tink_config import _helpers
25from tink_config import _key_types
26
27all_key_types = _helpers.all_key_types
28key_types_for_primitive = _helpers.key_types_for_primitive
29key_type_from_type_url = _helpers.key_type_from_type_url
30supported_languages_for_key_type = _helpers.supported_languages_for_key_type
31supported_languages_for_primitive = _helpers.supported_languages_for_primitive
32all_primitives = _helpers.all_primitives
33primitive_for_keytype = _helpers.primitive_for_keytype
34is_asymmetric_public_key_primitive = _helpers.is_asymmetric_public_key_primitive
35get_private_key_primitive = _helpers.get_private_key_primitive
36keyset_supported = _helpers.keyset_supported
37