Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions python/examples/read_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=' '))
Expand All @@ -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=' '))
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/examples/sign_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down