aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat
diff options
context:
space:
mode:
authorAyrx <terrycwk1994@gmail.com>2014-05-07 16:22:09 +0800
committerAyrx <terrycwk1994@gmail.com>2014-05-07 16:22:09 +0800
commitc0ce911b4e971f3090d406cb88dea532647eeac6 (patch)
tree50eab3ca8d17a9f816468ad922855d5cd8eb351d /docs/hazmat
parent9d72f12dcb28191f87fde9740899a39060e14495 (diff)
downloadcryptography-c0ce911b4e971f3090d406cb88dea532647eeac6.tar.gz
cryptography-c0ce911b4e971f3090d406cb88dea532647eeac6.tar.bz2
cryptography-c0ce911b4e971f3090d406cb88dea532647eeac6.zip
Renamed HKDFExpandOnly to HKDFExpand
Diffstat (limited to 'docs/hazmat')
-rw-r--r--docs/hazmat/primitives/key-derivation-functions.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/hazmat/primitives/key-derivation-functions.rst b/docs/hazmat/primitives/key-derivation-functions.rst
index 9b76bf64..11fbd4e0 100644
--- a/docs/hazmat/primitives/key-derivation-functions.rst
+++ b/docs/hazmat/primitives/key-derivation-functions.rst
@@ -220,7 +220,7 @@ Different KDFs are suitable for different tasks such as:
raises an exception if they do not match.
-.. class:: HKDFExpandOnly(algorithm, length, info, backend)
+.. class:: HKDFExpand(algorithm, length, info, backend)
.. versionadded:: 0.5
@@ -230,7 +230,7 @@ Different KDFs are suitable for different tasks such as:
.. warning::
- HKDFExpandOnly should only be used if the key material is
+ HKDFExpand should only be used if the key material is
cryptographically strong. You should use
:class:`~cryptography.hazmat.primitives.kdf.hkdf.HKDF` if
you are unsure.
@@ -239,19 +239,19 @@ Different KDFs are suitable for different tasks such as:
>>> import os
>>> from cryptography.hazmat.primitives import hashes
- >>> from cryptography.hazmat.primitives.kdf.hkdf import HKDFExpandOnly
+ >>> from cryptography.hazmat.primitives.kdf.hkdf import HKDFExpand
>>> from cryptography.hazmat.backends import default_backend
>>> backend = default_backend()
>>> info = b"hkdf-example"
>>> key_material = os.urandom(16)
- >>> hkdf = HKDFExpandOnly(
+ >>> hkdf = HKDFExpand(
... algorithm=hashes.SHA256(),
... length=32,
... info=info,
... backend=backend
... )
>>> key = hkdf.derive(key_material)
- >>> hkdf = HKDFExpandOnly(
+ >>> hkdf = HKDFExpand(
... algorithm=hashes.SHA256(),
... length=32,
... info=info,