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