blob: 5dfbcf7cfecd16817e4559bb084f766e57a6cb03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
From b5f19fe136ab0752cd5fcab21ff0ab59bddbea99 Mon Sep 17 00:00:00 2001
From: fossdd <fossdd@pwned.life>
Date: Fri, 2 Aug 2024 08:25:09 +0000
Subject: [PATCH] Use higher key size for TestSha256RSADigestValidator
cryptography 43.0.0 requires bumped the minimum key size to 1024
---
tests/unit/customizations/cloudtrail/test_validation.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/unit/customizations/cloudtrail/test_validation.py b/tests/unit/customizations/cloudtrail/test_validation.py
index c520ab57e940..96bee0ff7d5a 100644
--- a/tests/unit/customizations/cloudtrail/test_validation.py
+++ b/tests/unit/customizations/cloudtrail/test_validation.py
@@ -362,7 +362,7 @@ def setUp(self):
self._digest_data['_signature'] = 'aeff'
def test_validates_digests(self):
- private_key = rsa.generate_private_key(65537, 512, default_backend())
+ private_key = rsa.generate_private_key(65537, 1024, default_backend())
sha256_hash = hashlib.sha256(self._inflated_digest)
string_to_sign = "%s\n%s/%s\n%s\n%s" % (
self._digest_data['digestEndTime'],
|