message: Test that all Deterministic AEADs produce the same ciphertexts.
diff: @@ -36,19 +36,24 @@ class DeterministicAeadTest(parameterized.TestCase):
  cli_daead.CliDeterministicAead(lang, keyset_handle)
  for lang in supported_langs
  ]
  + self.assertNotEmpty(supported_daeads)
  unsupported_daeads = [
  cli_daead.CliDeterministicAead(lang, keyset_handle)
  for lang in cli_daead.LANGUAGES
  if lang not in supported_langs
  ]
  - for p in supported_daeads:
  plaintext = (
  b'This is some plaintext message to be encrypted using '
  - b'key_template %s using %s for encryption.'
  - % (key_template_name.encode('utf8'), p.lang.encode('utf8')))
  + b'key_template %s.' % key_template_name.encode('utf8'))
  associated_data = (
  - b'Some associated data for %s using %s for encryption.' %
  - (key_template_name.encode('utf8'), p.lang.encode('utf8')))
  + b'Some associated data for %s.' % key_template_name.encode('utf8'))
  + ciphertext = None
  + for p in supported_daeads:
  + if ciphertext:
  + self.assertEqual(
  + ciphertext,
  + p.encrypt_deterministically(plaintext, associated_data))
  + else:
  ciphertext = p.encrypt_deterministically(plaintext, associated_data)
  for p2 in supported_daeads:
  output = p2.decrypt_deterministically(ciphertext, associated_data)
  