Skip to content

Commit

Permalink
docs-chacha20-update (#11617)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonatienza authored Sep 17, 2024
1 parent 658869f commit 184aa0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/hazmat/primitives/symmetric-encryption.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ Algorithms

>>> import struct, os
>>> from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
>>> key = os.urandom(32)
>>> nonce = os.urandom(8)
>>> counter = 0
>>> full_nonce = struct.pack("<Q", counter) + nonce
Expand Down

0 comments on commit 184aa0f

Please sign in to comment.