示例#1
0
def deterministic_aead(
    lang: Text,
    keyset_handle: tink.KeysetHandle) -> _primitives.DeterministicAead:
  """Returns an AEAD primitive, implemented in lang."""
  global _ts
  return _primitives.DeterministicAead(
      lang, _ts.daead_stub(lang), keyset_handle)
示例#2
0
def deterministic_aead(lang: Text,
                       keyset: bytes) -> _primitives.DeterministicAead:
    """Returns a DeterministicAEAD primitive, implemented in lang."""
    global _ts
    return _primitives.DeterministicAead(lang, _ts.daead_stub(lang), keyset)