Skip to content

Commit 27ee11c

Browse files
Merge branch 'master' into rishav/slack-notification
2 parents 19c32d3 + 5108977 commit 27ee11c

11 files changed

Lines changed: 18 additions & 29 deletions

File tree

.github/workflows/ci_static-analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v4
3030
- uses: actions/setup-python@v4
3131
with:
32-
python-version: 3.8
32+
python-version: '3.10'
3333
- run: |
3434
python -m pip install --upgrade pip
3535
pip install --upgrade -r dev_requirements/ci-requirements.txt

.github/workflows/ci_test-vector-handler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- uses: actions/checkout@v4
8080
- uses: actions/setup-python@v4
8181
with:
82-
python-version: 3.9
82+
python-version: '3.10'
8383
- run: |
8484
python -m pip install --upgrade pip
8585
pip install --upgrade -r dev_requirements/ci-requirements.txt

CHANGELOG.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
Changelog
33
*********
44

5+
4.0.4 -- 2025-09-03
6+
===================
7+
8+
Maintenance
9+
-----------
10+
* deps: Extend supported `MPL`_ versions to include v1.11.2
11+
`#788 <https://github.com/aws/aws-encryption-sdk-python/pull/788>`_
12+
13+
MPL v1.11.2 fixes de-serializing Error_OpaqueWithText
14+
515
4.0.3 -- 2025-09-03
616
===================
717

dev_requirements/linter-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ pyflakes==2.4.0
1111
pylint==2.13.5
1212
readme_renderer==37.3
1313
seed-isort-config==2.2.0
14+
setuptools==81.0.0
1415
vulture==2.9.1

performance_tests/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Required Prerequisites
4949
Recommended Prerequisites
5050
=========================
5151

52-
* aws-cryptographic-material-providers: == 1.11.1
52+
* aws-cryptographic-material-providers: == 1.11.2
5353
* Requires Python 3.11+.
5454

5555
*****

requirements_mpl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aws-cryptographic-material-providers>=1.7.4,<=1.11.1
1+
aws-cryptographic-material-providers>=1.7.4,<=1.11.2

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_requirements():
4343
license="Apache License 2.0",
4444
install_requires=get_requirements(),
4545
extras_require={
46-
"MPL": ["aws-cryptographic-material-providers>=1.7.4,<=1.11.1"],
46+
"MPL": ["aws-cryptographic-material-providers>=1.7.4,<=1.11.2"],
4747
},
4848
classifiers=[
4949
"Development Status :: 5 - Production/Stable",

src/aws_encryption_sdk/identifiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# We only actually need these imports when running the mypy checks
1818
pass
1919

20-
__version__ = "4.0.3"
20+
__version__ = "4.0.4"
2121
USER_AGENT_SUFFIX = "AwsEncryptionSdkPython/{}".format(__version__)
2222

2323

test/unit/test_crypto.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@
3636
b"\n:\xcaD\x1f)\xde\xf73\x9a!/x#(z\xf8/\x83\xeb\r&\x7f&\xb4\xeb\xc1\x1b\xe9\x91I\xf5\x8a\xb6\xee\xaf\x08\xb9"
3737
b"\xa5\xe1S\xb2Gw\x15(\xb6\xe1"
3838
),
39-
"ecc_private_key_char2": ec.EllipticCurvePrivateNumbers(
40-
private_value=131512833187976200862897177240257889476359607892474090119002870596121284569326171944650239612201181144875264734209664973820, # noqa pylint: disable=line-too-long
41-
public_numbers=ec.EllipticCurvePublicNumbers(
42-
x=783372629152728216190118671643020486604880277607267246139026062120084499867233383227220456289236528291350315438332972681898, # noqa pylint: disable=line-too-long
43-
y=657053766035459398820670308946963262342583342616783849689721971058264156234178067988487273332138651529574836305189297847674, # noqa pylint: disable=line-too-long
44-
curve=ec.SECT409K1(),
45-
),
46-
).private_key(default_backend()),
4739
}
4840
VALUES["ciphertext"] = VALUES["encryptor"]["update"] + VALUES["encryptor"]["finalize"]
4941
VALUES["plaintext"] = VALUES["decryptor"]["update"] + VALUES["decryptor"]["finalize"]

test/unit/test_crypto_elliptic_curve.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,6 @@ def test_ecc_encode_compressed_point_prime():
287287
assert compressed_point == VALUES["ecc_compressed_point"]
288288

289289

290-
def test_ecc_encode_compressed_point_characteristic_two():
291-
with pytest.raises(NotSupportedError) as excinfo:
292-
_ecc_encode_compressed_point(VALUES["ecc_private_key_char2"])
293-
294-
excinfo.match(r"Non-prime curves are not supported at this time")
295-
296-
297290
def test_ecc_decode_compressed_point_infinity():
298291
with pytest.raises(NotSupportedError) as excinfo:
299292
_ecc_decode_compressed_point(curve=ec.SECP384R1(), compressed_point=b"")
@@ -343,13 +336,6 @@ def test_ecc_decode_compressed_point_prime_complex(patch_ecc_curve_parameters):
343336
excinfo.match(r"S not 1 :: Curve not supported at this time")
344337

345338

346-
def test_ecc_decode_compressed_point_nonprime_characteristic_two():
347-
with pytest.raises(NotSupportedError) as excinfo:
348-
_ecc_decode_compressed_point(curve=ec.SECT409K1(), compressed_point="\x02skdgaiuhgijudflkjsdgfkjsdflgjhsd")
349-
350-
excinfo.match(r"Non-prime curves are not supported at this time")
351-
352-
353339
def test_ecc_public_numbers_from_compressed_point(patch_ec, patch_ecc_decode_compressed_point):
354340
patch_ecc_decode_compressed_point.return_value = sentinel.x, sentinel.y
355341
patch_ec.EllipticCurvePublicNumbers.return_value = sentinel.public_numbers_instance

0 commit comments

Comments
 (0)