Skip to content

Commit

Permalink
Merge branch 'Legrandin:master' into resolve_redundantAssignment
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 authored Sep 29, 2024
2 parents 2eba7cc + 19494e0 commit 360d046
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/Crypto/PublicKey/ECC.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def export_key(self, **kwargs):
present,
For all possible protection schemes,
refer to :ref:`the encryption parameters of PKCS#8<enc_params>`.
It is recommended to use ``'PBKDF2WithHMAC-SHA5126AndAES128-CBC'``.
It is recommended to use ``'PBKDF2WithHMAC-SHA512AndAES128-CBC'``.
compress (boolean):
If ``True``, the method returns a more compact representation
Expand Down
6 changes: 3 additions & 3 deletions lib/Crypto/SelfTest/PublicKey/test_import_Curve448.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def compact(lines):

def create_ref_keys_x448():
key_lines = load_file("ecc_x448.txt").splitlines()
seed = compact(key_lines[5:8])
seed = compact(key_lines[6:10])
key = ECC.construct(curve="Curve448", seed=seed)
return (key, key.public_key())

Expand Down Expand Up @@ -257,8 +257,8 @@ def test_export_private_pem_encrypted(self):

def test_export_raw(self):
encoded = self.ref_public.export_key(format='raw')
self.assertEqual(len(encoded), 32)
self.assertEqual(encoded, unhexlify(b'ff7561ef60c9c8a757f6d6372ec14142c9be208d0e719136d8d3c715dfcf7e15'))
self.assertEqual(len(encoded), 56)
self.assertEqual(encoded, unhexlify(b'e2abae24ab8f65b01969e61f84fee615b525f413a90e3d727f71d0ffe60fb1d0a1a0285f2a7fd88789206e0aa4f3e9fcb9e4ba5d644e691e'))

def test_prng(self):
# Test that password-protected containers use the provided PRNG
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ def create_cryptodome_lib():
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
license="BSD, Public Domain",
packages=packages,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MEMwBQYDK2VxAzoAiZAU3cCg4SYM/BCFr9+VIBnp/WM3Lj42biba0ysXZiSIQzCh
RhcjfjCB/r2dGhUGnnSZQz0vVd2A
-----END PUBLIC KEY-----
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
-----BEGIN PRIVATE KEY-----
MEYCAQAwBQYDK2VvBDoEOHxZhQFreFDMrRfsYFwh4JWoFIuB3ImZp2OET4L8E1Cv
ARzv49/Z1j81t2onGC1y6PXlRaL0ynXW
MC4CAQAwBQYDK2VuBCIEIKidnb+OLl6wrioGG+TGdIE/r0HdYmIxWOj8d7kvuW5f
-----END PRIVATE KEY-----
X448 Private-Key:
X25519 Private-Key:
priv:
7c:59:85:01:6b:78:50:cc:ad:17:ec:60:5c:21:e0:
95:a8:14:8b:81:dc:89:99:a7:63:84:4f:82:fc:13:
50:af:01:1c:ef:e3:df:d9:d6:3f:35:b7:6a:27:18:
2d:72:e8:f5:e5:45:a2:f4:ca:75:d6
a8:9d:9d:bf:8e:2e:5e:b0:ae:2a:06:1b:e4:c6:74:
81:3f:af:41:dd:62:62:31:58:e8:fc:77:b9:2f:b9:
6e:5f
pub:
2c:b5:a2:77:ae:7c:3c:27:6c:c2:9d:6a:b7:d9:08:
1a:7f:83:24:a5:a6:9f:3d:1a:a9:cb:7d:d8:49:a1:
2c:0e:e2:01:9b:15:0f:75:4a:67:b3:81:ed:a7:1d:
6c:37:17:91:12:0d:fa:8c:a4:40:62
ff:75:61:ef:60:c9:c8:a7:57:f6:d6:37:2e:c1:41:
42:c9:be:20:8d:0e:71:91:36:d8:d3:c7:15:df:cf:
7e:15
Binary file not shown.
2 changes: 1 addition & 1 deletion test_vectors/pycryptodome_test_vectors/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.17"
__version__ = "1.0.18"

0 comments on commit 360d046

Please sign in to comment.