Skip to content
Snippets Groups Projects
Commit d9a29432 authored by tanujdhir's avatar tanujdhir Committed by Copybara-Service
Browse files

Fix some docstrings

PiperOrigin-RevId: 258731746
parent a1df79cf
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ class Aead(object):
Returns:
the resulting ciphertext as bytes.
Raises:
google3.third_party.tink.python.error.Error if the encryption fails.
tink.TinkError if the encryption fails.
"""
pass
......@@ -63,6 +63,6 @@ class Aead(object):
Returns:
the resulting plaintext as bytes.
Raises:
google3.third_party.tink.python.error.Error if the decryption fails.
tink.TinkError if the decryption fails.
"""
raise NotImplementedError()
......@@ -57,8 +57,7 @@ class KeyManager(Generic[P]):
Returns:
A primitive, for example an instance of Aead or Mac.
Raises:
google3.third_party.tink.python.tink_error.TinkError if getting the
primitive fails.
tink.TinkError if getting the primitive fails.
"""
pass
......@@ -77,8 +76,7 @@ class KeyManager(Generic[P]):
Returns:
A KeyData protocol buffer that contains the key.
Raises:
google3.third_party.tink.python.error.TinkError if the key generation
fails.
tink.TinkError if the key generation fails.
"""
pass
......@@ -99,8 +97,7 @@ class PrivateKeyManager(KeyManager[P]):
Returns:
A KeyData protocol buffer that contains the public key.
Raises:
google3.third_party.tink.python.error.TinkError if the key generation
fails.
tink.TinkError if the key generation fails.
"""
pass
......
......@@ -84,10 +84,8 @@ class KeysetHandle(object):
Returns:
The primitive.
Raises:
google3.third_party.tink.python.error.tink_error.TinkError if creation of
the
primitive fails, for example if primitive_class cannot be used with this
KeysetHandle.
tink.TinkError if creation of the primitive fails, for example if
primitive_class cannot be used with this KeysetHandle.
"""
_validate_keyset(self._keyset)
pset = primitive_set.PrimitiveSet(primitive_class)
......
......@@ -44,7 +44,6 @@ class PublicKeyVerify(object):
data: The data bytes to be checked.
Raises:
google3.third_party.tink.python.tink_error.TinkError if the verification
fails.
tink.TinkError if the verification fails.
"""
raise NotImplementedError()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment