SHARE
TWEET

Untitled

a guest Jul 18th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --------------------------------------------
  2. |   ATECC608A via MCP2221A, using Python   |
  3. --------------------------------------------
  4.     ... Attempting to wake Crypto ...
  5.  
  6. bytecount: 4
  7. firsttwo: [4, 17]
  8. 2 [51, 67]
  9. Status: Awake after Wake Token
  10. CRC:    True
  11. putting to sleep
  12. --------------------------------------------
  13.  
  14. Please select your choice
  15. 1: Get random number
  16. 2: Get Info
  17. 3: Self Test
  18. Enter your choice [1-9]:1
  19.  
  20. you selected Get random number
  21. [Get Random Number Function]
  22. bytecount: 4
  23. firsttwo: [4, 17]
  24. 2 [51, 67]
  25. crypto did wake up
  26. Transmitted I2C packet
  27. ['0x3', '0x7', '0x1b', '0x0', '0x0', '0x0', '0x24', '0xcd']
  28.  
  29.  
  30. bytecount: 35
  31. firsttwo: [35, 255]
  32. output <class 'list'>
  33. output <class 'list'>
  34. output <class 'list'>
  35. output <class 'list'>
  36. 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]
  37. putting to sleep
  38. --------------------------------------------
  39.  
  40. Please select your choice
  41. 1: Get random number
  42. 2: Get Info
  43. 3: Self Test
  44. Enter your choice [1-9]:1
  45.  
  46. you selected Get random number
  47. [Get Random Number Function]
  48. bytecount: 4
  49. firsttwo: [4, 17]
  50. 2 [51, 67]
  51. crypto did wake up
  52. Transmitted I2C packet
  53. ['0x3', '0x7', '0x1b', '0x0', '0x0', '0x0', '0x24', '0xcd']
  54.  
  55.  
  56. bytecount: 35
  57. firsttwo: [35, 255]
  58. output <class 'list'>
  59. output <class 'list'>
  60. output <class 'list'>
  61. output <class 'list'>
  62. 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]
  63. putting to sleep
  64. --------------------------------------------
  65.  
  66. Please select your choice
  67. 1: Get random number
  68. 2: Get Info
  69. 3: Self Test
  70. Enter your choice [1-9]:1
  71.  
  72. you selected Get random number
  73. [Get Random Number Function]
  74. bytecount: 4
  75. firsttwo: [4, 17]
  76. 2 [51, 67]
  77. crypto did wake up
  78. Transmitted I2C packet
  79. ['0x3', '0x7', '0x1b', '0x0', '0x0', '0x0', '0x24', '0xcd']
  80.  
  81.  
  82. bytecount: 35
  83. firsttwo: [35, 255]
  84. output <class 'list'>
  85. output <class 'list'>
  86. output <class 'list'>
  87. output <class 'list'>
  88. 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]
  89. putting to sleep
  90. --------------------------------------------
  91.  
  92. Please select your choice
  93. 1: Get random number
  94. 2: Get Info
  95. 3: Self Test
  96. Enter your choice [1-9]:1
  97.  
  98. you selected Get random number
  99. [Get Random Number Function]
  100. bytecount: 4
  101. firsttwo: [4, 17]
  102. 2 [51, 67]
  103. crypto did wake up
  104. Transmitted I2C packet
  105. ['0x3', '0x7', '0x1b', '0x0', '0x0', '0x0', '0x24', '0xcd']
  106.  
  107.  
  108. bytecount: 35
  109. firsttwo: [35, 255]
  110. output <class 'list'>
  111. output <class 'list'>
  112. output <class 'int'>
  113. Traceback (most recent call last):
  114.   File "C:\crypto\test_pyfunctions.py", line 236, in <module>
  115.     init_usb_crypto()
  116.   File "C:\crypto\test_pyfunctions.py", line 215, in get_menu_choice
  117.     print("\nyou selected " + item["text"])
  118.   File "C:\crypto\test_pyfunctions.py", line 181, in crypto_get_random
  119.     sleep(.025)
  120.   File "C:\crypto\test_pyfunctions.py", line 121, in read_from_crypto
  121.     data_crc.extend(output)
  122. TypeError: 'int' object is not iterable
  123.  
  124. c:\crypto>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top