diff options
| author | Ajitomi, Daisuke <dajiaji@gmail.com> | 2021-03-08 03:50:20 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-07 12:50:20 -0600 |
| commit | 8ca4d5a014191be8de10c3f46935bc7780eae444 (patch) | |
| tree | 4ad561cee6e6aee2f8ca5ea18322360839d4706c /docs | |
| parent | 6384cbb2fe25469ecfb6d6e431211a8426380893 (diff) | |
| download | cryptography-8ca4d5a014191be8de10c3f46935bc7780eae444.tar.gz | |
Add exceptions to Ed25519PrivateKey and Edd25519PublicKey methods. (#5898)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/hazmat/primitives/asymmetric/ed25519.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/asymmetric/ed25519.rst b/docs/hazmat/primitives/asymmetric/ed25519.rst index 47d95ec1b..152dcfe6f 100644 --- a/docs/hazmat/primitives/asymmetric/ed25519.rst +++ b/docs/hazmat/primitives/asymmetric/ed25519.rst @@ -43,6 +43,11 @@ Key interfaces :returns: :class:`Ed25519PrivateKey` + :raises ValueError: This is raised if the private key is not 32 bytes long. + + :raises cryptography.exceptions.UnsupportedAlgorithm: If the private key + is of a type that is not supported by the backend. + .. doctest:: >>> from cryptography.hazmat.primitives import serialization @@ -108,6 +113,11 @@ Key interfaces :returns: :class:`Ed25519PublicKey` + :raises ValueError: This is raised if the public key is not 32 bytes long. + + :raises cryptography.exceptions.UnsupportedAlgorithm: If the public key + is of a type that is not supported by the backend. + .. doctest:: >>> from cryptography.hazmat.primitives import serialization |
