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)
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)