From 72cb9539af6f4799e39a9381bbd236ab1311a114 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 3 Jul 2022 09:07:58 +1000 Subject: [PATCH] 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`. --- TODO.md | 2 +- jose/jwe.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index dd643a1e..779a15a6 100644 --- a/TODO.md +++ b/TODO.md @@ -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 diff --git a/jose/jwe.py b/jose/jwe.py index 2c387ff4..def2a3c0 100644 --- a/jose/jwe.py +++ b/jose/jwe.py @@ -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 @@ -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