Exemple #1
0
 def test_latest(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)
Exemple #2
0
def register():
  cc_tink_config.register()
  _register_key_managers()
  _register_primitive_wrappers()
Exemple #3
0
def setUpModule():
    cc_tink_config.register()
Exemple #4
0
 def test_register(self):
     cc_tink_config.register()