Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: Fix a few typos
There are small typos in:
- TODO.md
- jose/jwe.py

Fixes:
- Should read `verification` rather than `verifcation`.
- Should read `encryption` rather than `encryptionn`.
- Should read `compact` rather than `cmpact`.
  • Loading branch information
timgates42 committed Jul 2, 2022
commit 72cb9539af6f4799e39a9381bbd236ab1311a114
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
* Refactor Algorithm logic with set Exceptions to return
* Add HTML documentation
* Implement ECSDA signing
* Refactor JWT claims verifcation
* Refactor JWT claims verification
* Add actual exceptions instead of using the base exception
* Audit JWT claims tests and rectify against the spec
4 changes: 2 additions & 2 deletions jose/jwe.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


def encrypt(plaintext, key, encryption=ALGORITHMS.A256GCM, algorithm=ALGORITHMS.DIR, zip=None, cty=None, kid=None):
"""Encrypts plaintext and returns a JWE cmpact serialization string.
"""Encrypts plaintext and returns a JWE compact serialization string.

Args:
plaintext (bytes): A bytes object to encrypt
Expand Down Expand Up @@ -530,7 +530,7 @@ def _get_key_wrap_cek(enc, key):

def _get_random_cek_bytes_for_enc(enc):
"""
Get the random cek bytes based on the encryptionn algorithm
Get the random cek bytes based on the encryption algorithm

Args:
enc (str): Encryption algorithm
Expand Down