Skip to content

Commit d683eef

Browse files
chore(Python): Update ECDH extern, pin DafnyRuntimePython version (#819)
1 parent cfb2f7e commit d683eef

File tree

2 files changed

+10
-1
lines changed
  • AwsCryptographyPrimitives/runtimes/python/src/aws_cryptography_primitives/internaldafny/extern
  • StandardLibrary/runtimes/python

2 files changed

+10
-1
lines changed

AwsCryptographyPrimitives/runtimes/python/src/aws_cryptography_primitives/internaldafny/extern/ECDH.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,15 @@ def GetPublicKey(dafny_eccAlgorithm, dafny_privateKey):
225225
)
226226
)
227227
)
228+
else:
229+
return default__.CreateExternEccKeyGenFailure(
230+
_smithy_error_to_dafny_error(
231+
ValueError(
232+
"SM2 not supported."
233+
)
234+
)
235+
)
236+
228237

229238
def ValidatePublicKey(dafny_eccAlgorithm, dafny_publicKey):
230239
public_key_bytes = bytes(dafny_publicKey)

StandardLibrary/runtimes/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include = [
1818
python = "^3.11.0"
1919
pytz = "^2023.3.post1"
2020
# TODO: Longer-term, write something to pull this in from the project's project.properties file
21-
DafnyRuntimePython = "~4.8.0"
21+
DafnyRuntimePython = "4.8.1.post1"
2222

2323
# Package testing
2424

0 commit comments

Comments
 (0)