Skip to content

Commit f06540f

Browse files
committed
chore: release 1.6.3
1 parent 696a961 commit f06540f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

docs/changelog.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ Changelog
1212
.. module:: joserfc
1313
:noindex:
1414

15+
1.6.3
16+
-----
17+
18+
**Released on February 25, 2026**
19+
20+
- **JWE**: Set a max value for ``p2c`` header.
21+
1522
1.6.2
1623
-----
1724

src/joserfc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.6.2"
1+
__version__ = "1.6.3"
22
__homepage__ = "https://jose.authlib.org/en/"
33
__author__ = "Hsiaoming Yang <me@lepture.com>"
44
__license__ = "BSD-3-Clause"

src/joserfc/_rfc7518/jwe_encs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def encrypt(self, plaintext: bytes, cek: bytes, iv: bytes, aad: bytes) -> tuple[
5353
pad = PKCS7(AES.block_size).padder()
5454
padded_data = pad.update(plaintext) + pad.finalize()
5555

56-
# noqa: S5542 # Safe: JWE A128CBC-HS256 uses CBC + HMAC (Encrypt-then-MAC)
5756
cipher = Cipher(AES(ekey), CBC(iv))
5857
enc = cipher.encryptor()
5958
ciphertext = enc.update(padded_data) + enc.finalize()
@@ -69,7 +68,6 @@ def decrypt(self, ciphertext: bytes, tag: bytes, cek: bytes, iv: bytes, aad: byt
6968
if not hmac.compare_digest(ctag, tag):
7069
raise DecodeError("tag does not match")
7170

72-
# noqa: S5542 # Safe: JWE A128CBC-HS256 uses CBC + HMAC (Encrypt-then-MAC)
7371
cipher = Cipher(AES(dkey), CBC(iv))
7472
d = cipher.decryptor()
7573
data = d.update(ciphertext) + d.finalize()

0 commit comments

Comments
 (0)