From 627525b6778d5f51664ceb53fed1b761ff0d8d73 Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Tue, 8 Jun 2021 21:34:35 +0200 Subject: [PATCH] fix similar typos in read_writy.py and sign_verify.py --- python/examples/read_write.py | 8 ++++---- python/examples/sign_verify.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/examples/read_write.py b/python/examples/read_write.py index 8e6485f..35cc60e 100644 --- a/python/examples/read_write.py +++ b/python/examples/read_write.py @@ -100,7 +100,7 @@ def read_write(iface='hid', device='ecc', **kwargs): write_data = bytearray(32) read_data = bytearray(32) - print('\nGeneraing data using RAND command') + print('\nGenerating data using RAND command') assert atcab_random(write_data) == ATCA_SUCCESS print(' Generated data:') print(pretty_print_hex(write_data, indent=' ')) @@ -119,14 +119,14 @@ def read_write(iface='hid', device='ecc', **kwargs): print(pretty_print_hex(read_data, indent=' ')) # Compare the read data to the written data - print('\nVerifing read data matches written data:') + print('\nVerifying read data matches written data:') print(' Data {}!'.format('Matches' if (read_data == write_data) else 'Does Not Match')) # Writing IO protection key. This key is used as IO encryption key. print('\nWriting IO Protection Secret') assert atcab_write_zone(2, write_key_slot, 0, 0, ENC_KEY, 32) == ATCA_SUCCESS - print('\nGeneraing data using RAND command') + print('\nGenerating data using RAND command') assert atcab_random(write_data) == ATCA_SUCCESS print(' Generated data:') print(pretty_print_hex(write_data, indent=' ')) @@ -145,7 +145,7 @@ def read_write(iface='hid', device='ecc', **kwargs): print(pretty_print_hex(read_data, indent=' ')) # Compare the read data to the written data - print('\nVerifing read data matches written data:') + print('\nVerifying read data matches written data:') print(' Data {}!'.format('Matches' if (read_data == write_data) else 'Does Not Match')) # Free the library diff --git a/python/examples/sign_verify.py b/python/examples/sign_verify.py index 573f68a..75e8116 100644 --- a/python/examples/sign_verify.py +++ b/python/examples/sign_verify.py @@ -167,7 +167,7 @@ def verify_host(digest, signature, public_key_data): print(pretty_print_hex(signature, indent=' ')) # Verify the message - print("\nVerifing the signature:") + print("\nVerifying the signature:") if 'device' == args.verifier: print(' Verifying with device') verified = verify_device(message, signature, public_key)