示例#1
0
def hybrid_encrypt(lang: Text, pub_keyset: bytes) -> _primitives.HybridEncrypt:
    """Returns a HybridEncrypt  primitive, implemented in lang."""
    global _ts
    return _primitives.HybridEncrypt(lang, _ts.hybrid_stub(lang), pub_keyset)
示例#2
0
def hybrid_encrypt(
    lang: Text, keyset_handle: tink.KeysetHandle) -> _primitives.HybridEncrypt:
  """Returns an AEAD primitive, implemented in lang."""
  global _ts
  return _primitives.HybridEncrypt(lang, _ts.hybrid_stub(lang), keyset_handle)