diff --git a/python/cc/BUILD.bazel b/python/cc/BUILD.bazel index 02c16a43c54d2f12394fc6859748a13a7e5e24e1..b33c5524ad518f1890d5d8672e6a6bc4f74a702f 100644 --- a/python/cc/BUILD.bazel +++ b/python/cc/BUILD.bazel @@ -14,17 +14,3 @@ cc_library( "//proto:tink_cc_proto", ], ) - -cc_library( - name = "cc_tink_config", - srcs = ["cc_tink_config.cc"], - hdrs = ["cc_tink_config.h"], - include_prefix = "tink/python", - strip_include_prefix = "/python", - deps = [ - "//cc", - "//cc/config:tink_config", - "//cc/util:status", - "//proto:config_cc_proto", - ], -) diff --git a/python/cc/clif/cc_tink_config.clif b/python/cc/clif/cc_tink_config.clif index 0eff706413be02f03e2e6082c00cde097f9a6d07..3170c0e3ec8c0a75c2ce8d8ea6435b36051b3b67 100644 --- a/python/cc/clif/cc_tink_config.clif +++ b/python/cc/clif/cc_tink_config.clif @@ -18,4 +18,3 @@ from "tink/python/util/clif.h" import * # StatusOr from "tink/python/cc/cc_tink_config.h": namespace `crypto::tink`: def `CcTinkConfigRegister` as register() -> Status - def `CcTinkConfigLatest` as latest() -> RegistryConfig diff --git a/python/cc/clif/cc_tink_config_test.py b/python/cc/clif/cc_tink_config_test.py index 53f3a1cc0263bf74ccbe0c69d675c4d72be044d2..2c451640f147782be6a5b5b8f0fe381f6c8048e1 100644 --- a/python/cc/clif/cc_tink_config_test.py +++ b/python/cc/clif/cc_tink_config_test.py @@ -24,19 +24,8 @@ from tink.python.cc.clif import cc_tink_config class CcTinkConfigTest(absltest.TestCase): - def test_latest(self): + def test_register(self): cc_tink_config.register() - latest = cc_tink_config.latest() - primitive_names = {entry.primitive_name for entry in latest.entry} - self.assertIn('Aead', primitive_names) - self.assertIn('Mac', primitive_names) - self.assertIn('PublicKeySign', primitive_names) - type_urls = {entry.type_url for entry in latest.entry} - self.assertIn('type.googleapis.com/google.crypto.tink.AesEaxKey', type_urls) - self.assertIn('type.googleapis.com/google.crypto.tink.AesGcmKey', type_urls) - self.assertIn('type.googleapis.com/google.crypto.tink.HmacKey', type_urls) - self.assertIn('type.googleapis.com/google.crypto.tink.EcdsaPrivateKey', - type_urls) if __name__ == '__main__':