diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 14:03:34 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 14:03:34 -0700 |
commit | f1a3fc03dc7cecc7658620f342dfd7cf6bb98ba0 (patch) | |
tree | fb79a7f804c1cd9b794b5fb3c3f2f2b025094f38 /docs/hazmat | |
parent | 178f6f19a611219f27a0b4e1837134b308de08d2 (diff) | |
download | cryptography-f1a3fc03dc7cecc7658620f342dfd7cf6bb98ba0.tar.gz cryptography-f1a3fc03dc7cecc7658620f342dfd7cf6bb98ba0.tar.bz2 cryptography-f1a3fc03dc7cecc7658620f342dfd7cf6bb98ba0.zip |
Document and implement the public API for when the backend doesn't support the requested algorithm
Diffstat (limited to 'docs/hazmat')
-rw-r--r-- | docs/hazmat/primitives/symmetric-encryption.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst index b8b1c839..48bad928 100644 --- a/docs/hazmat/primitives/symmetric-encryption.rst +++ b/docs/hazmat/primitives/symmetric-encryption.rst @@ -42,12 +42,21 @@ where the encrypter and decrypter both use the same key. :class:`~cryptography.hazmat.primitives.interfaces.CipherContext` provider. + If the backend doesn't support the requested combination of ``cipher`` + and ``mode`` a :class:`cryptography.exceptions.NoSuchAlgorithm` will + be raised. + .. method:: decryptor() :return: A decrypting :class:`~cryptography.hazmat.primitives.interfaces.CipherContext` provider. + If the backend doesn't support the requested combination of ``cipher`` + and ``mode`` a :class:`cryptography.exceptions.NoSuchAlgorithm` will + be raised. + + .. currentmodule:: cryptography.hazmat.primitives.interfaces .. class:: CipherContext |