Пример #1
0
def public_key_sign(lang: Text,
                    priv_keyset: bytes) -> _primitives.PublicKeySign:
    """Returns an PublicKeySign primitive, implemented in lang."""
    global _ts
    return _primitives.PublicKeySign(lang, _ts.signature_stub(lang),
                                     priv_keyset)
Пример #2
0
def public_key_sign(
    lang: Text, keyset_handle: tink.KeysetHandle) -> _primitives.PublicKeySign:
  """Returns an PublicKeySign primitive, implemented in lang."""
  global _ts
  return _primitives.PublicKeySign(lang, _ts.signature_stub(lang),
                                   keyset_handle)