def aead(lang: Text, keyset: bytes) -> _primitives.Aead: """Returns an AEAD primitive, implemented in lang.""" global _ts return _primitives.Aead(lang, _ts.aead_stub(lang), keyset)
def aead(lang: Text, keyset_handle: tink.KeysetHandle) -> _primitives.Aead: """Returns an AEAD primitive, implemented in lang.""" global _ts return _primitives.Aead(lang, _ts.aead_stub(lang), keyset_handle)