Skip to content

Commit 9b70a7b

Browse files
lint
1 parent 07ed20d commit 9b70a7b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

awscrt/crypto.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,12 @@ class ECRawSignature(NamedTuple):
249249
r: bytes
250250
s: bytes
251251

252+
252253
class ECPublicCoords(NamedTuple):
253254
x: bytes
254255
y: bytes
255256

257+
256258
class EC(NativeResource):
257259
def __init__(self, binding):
258260
super().__init__()
@@ -296,7 +298,7 @@ def export_key(self, export_format: ECExportFormat) -> bytes:
296298
Exports the key in specified format.
297299
"""
298300
return _awscrt.ec_export_key(self._binding, export_format)
299-
301+
300302
def get_public_coords(self) -> ECPublicCoords:
301303
"""
302304
Get public coords of the key

test/test_crypto.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,18 +367,18 @@ def test_ec_asn1_signing_roundtrip(self):
367367
ec = EC.new_key_from_der_data(base64.b64decode(EC_PRIVATE_KEY_SEC1_BASE64))
368368
signature = ec.sign(digest)
369369

370-
(x, y) = ec.get_public_coords();
370+
(x, y) = ec.get_public_coords()
371371

372372
expected_x = bytes([0xbf, 0x61, 0x63, 0x46, 0x93, 0x2d, 0x00, 0x33,
373373
0x19, 0xe3, 0x3a, 0x19, 0xc6, 0xc8, 0x55, 0xf5,
374374
0xc8, 0x44, 0x91, 0xe9, 0x9b, 0x83, 0x36, 0x67,
375375
0x5d, 0x25, 0x0d, 0x7b, 0xe0, 0xc0, 0xf1, 0xd2])
376-
376+
377377
expected_y = bytes([0xaa, 0x5c, 0xdf, 0xfb, 0xa9, 0x37, 0x19, 0x8d,
378378
0x82, 0x47, 0x28, 0x88, 0xbe, 0x46, 0x7f, 0x3c,
379379
0xcd, 0x41, 0xaa, 0x08, 0x9a, 0x37, 0x0d, 0x61,
380380
0x7f, 0x5f, 0xeb, 0x9f, 0x55, 0xf7, 0x54, 0xda])
381-
381+
382382
self.assertEqual(x, expected_x)
383383
self.assertEqual(y, expected_y)
384384

0 commit comments

Comments
 (0)