Skip to content

Symmetric Cipher Documentation Improvements - #394

Closed
reaperhulk wants to merge 4 commits into
pyca:masterfrom
reaperhulk:gcm-aead-docs
Closed

reaperhulk wants to merge 4 commits into
pyca:masterfrom
reaperhulk:gcm-aead-docs

Conversation

@reaperhulk

Copy link
Copy Markdown
Member

Reorganize the symmetric documentation to move the CipherContext section to the bottom, explicitly generate IV, and add a pile of (very similar) examples to demonstrate each mode and algorithm.

Refs #374

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces around the //

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gonna be a lot of those :D. Let me push up a fix to all that.

@ghost

ghost commented Jan 2, 2014

Copy link
Copy Markdown

@ghost

ghost commented Jan 2, 2014

Copy link
Copy Markdown

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling ca62b3b on reaperhulk:gcm-aead-docs into adbea0d on pyca:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling ca62b3b on reaperhulk:gcm-aead-docs into adbea0d on pyca:master.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples using ECB mode violate our recommendation that all examples should use strong algorithm choices. Dangers of using ECB mode at a minimum need to be caleld out.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example is why I opened the issue for vectors around CAST non-ECB. :)

On Fri, Jan 3, 2014 at 5:45 PM, Alex Gaynor [email protected]
wrote:

@@ -198,6 +178,22 @@ Algorithms
:param bytes key: The secret key, 40-128 bits in length (in increments of
8). This must be kept secret.

  • Example encryption and decryption using
  • :class:~cryptography.hazmat.primitives.ciphers.modes.ECB mode:
    Examples using ECB mode violate our recommendation that all examples should use strong algorithm choices. Dangers of using ECB mode at a minimum need to be caleld out.

Reply to this email directly or view it on GitHub:
https://github.com/pyca/cryptography/pull/394/files#r8648870

@ghost

ghost commented Jan 6, 2014

Copy link
Copy Markdown

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 24b8a53 on reaperhulk:gcm-aead-docs into adbea0d on pyca:master.

@reaperhulk

Copy link
Copy Markdown
Member Author

closing to split into 2 PRs

@reaperhulk reaperhulk closed this Jan 8, 2014
@reaperhulk
reaperhulk deleted the gcm-aead-docs branch January 12, 2014 00:50
joerichter-stash pushed a commit to kiwigrid/cryptography that referenced this pull request Nov 15, 2017
Enable tests to pass when MD5 verification disabled in OpenSSL.
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants