Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------------------------
- | ATECC608A via MCP2221A, using Python |
- --------------------------------------------
- ... Attempting to wake Crypto ...
- bytecount: 4
- firsttwo: [4, 17]
- 2 [51, 67]
- Status: Awake after Wake Token
- CRC: True
- putting to sleep
- --------------------------------------------
- Please select your choice
- 1: Get random number
- 2: Get Info
- 3: Self Test
- Enter your choice [1-9]:1
- you selected Get random number
- [Get Random Number Function]
- bytecount: 4
- firsttwo: [4, 17]
- 2 [51, 67]
- crypto did wake up
- Transmitted I2C packet
- ['0x3', '0x7', '0x1b', '0x0', '0x0', '0x0', '0x24', '0xcd']
- bytecount: 35
- firsttwo: [35, 255]
- output <class 'list'>
- output <class 'list'>
- output <class 'list'>
- output <class 'list'>
- 33 [255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 65, 26]
- putting to sleep
- --------------------------------------------
- Please select your choice
- 1: Get random number
- 2: Get Info
- 3: Self Test
- Enter your choice [1-9]:1
- you selected Get random number
- [Get Random Number Function]
- bytecount: 4
- firsttwo: [4, 17]
- 2 [51, 67]
- crypto did wake up
- Transmitted I2C packet
- ['0x3', '0x7', '0x1b', '0x0', '0x0', '0x0', '0x24', '0xcd']
- bytecount: 35
- firsttwo: [35, 255]
- output <class 'list'>
- output <class 'list'>
- output <class 'list'>
- output <class 'list'>
- 33 [255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 65, 26]
- putting to sleep
- --------------------------------------------
- Please select your choice
- 1: Get random number
- 2: Get Info
- 3: Self Test
- Enter your choice [1-9]:1
- you selected Get random number
- [Get Random Number Function]
- bytecount: 4
- firsttwo: [4, 17]
- 2 [51, 67]
- crypto did wake up
- Transmitted I2C packet
- ['0x3', '0x7', '0x1b', '0x0', '0x0', '0x0', '0x24', '0xcd']
- bytecount: 35
- firsttwo: [35, 255]
- output <class 'list'>
- output <class 'list'>
- output <class 'list'>
- output <class 'list'>
- 33 [255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 65, 26]
- putting to sleep
- --------------------------------------------
- Please select your choice
- 1: Get random number
- 2: Get Info
- 3: Self Test
- Enter your choice [1-9]:1
- you selected Get random number
- [Get Random Number Function]
- bytecount: 4
- firsttwo: [4, 17]
- 2 [51, 67]
- crypto did wake up
- Transmitted I2C packet
- ['0x3', '0x7', '0x1b', '0x0', '0x0', '0x0', '0x24', '0xcd']
- bytecount: 35
- firsttwo: [35, 255]
- output <class 'list'>
- output <class 'list'>
- output <class 'int'>
- Traceback (most recent call last):
- File "C:\crypto\test_pyfunctions.py", line 236, in <module>
- init_usb_crypto()
- File "C:\crypto\test_pyfunctions.py", line 215, in get_menu_choice
- print("\nyou selected " + item["text"])
- File "C:\crypto\test_pyfunctions.py", line 181, in crypto_get_random
- sleep(.025)
- File "C:\crypto\test_pyfunctions.py", line 121, in read_from_crypto
- data_crc.extend(output)
- TypeError: 'int' object is not iterable
- c:\crypto>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement