[Cryptech Tech] How to start using coretest_hashes on the	TerasIC C5G Board
    Василий Долматов 
    dol at reedcat.net
       
    Sat Mar 22 10:17:38 UTC 2014
    
    
  
21 марта 2014 г., в 12:16, Joachim Strömbergson <joachim at secworks.se> написал(а):
Everything works great until that point:
1. It should be noted that one should transfer USBcable from programming entry on board to communicating entry.
2. Even after that I have got the following:
olMacbook:sw dol$ python hash_tester.py 
Traceback (most recent call last):
  File "hash_tester.py", line 51, in <module>
    import serial
ImportError: No module named serial
some paths should be corrected?
dol@
> 
> Talking to coretest_hashes and test of SHA-1 and SHA-256
> ---------------------------------------------------------
> There is a (currently rather ugly) test program for
> coretest_hashes. Navigate to cores/coretest_hashes/src/sw
> 
> #> ls
> hash_tester.py
> 
> This is a Python2.x program that uses Pyserial [5] to open up a serial
> port and talk to coretest via the uart. The command and response format
> used is a very simple byte oriented format. For more info, see the
> README.md in the top of coretest.
> 
> The program hash_tester.py needs to know which serial interface to
> use. This is defined in the main() function (yes, VERY ugly). You will
> need to edit the program source to point to the serial interface
> connected to the USB-serial chip on the C5G board. For me that device
> is:
> 
>   ser.port='/dev/cu.usbserial-A801SA6T'
> 
> If everthing is working properly you should now just have to do:
> 
>   python hash_tester.py
> 
> If the communication has been set up properly you should now see:
> 
>   TC1-1: Reading name, type and version words from SHA-1 core.
>   READ_OK. address 0x1000 = 0x73686131.
>   READ_OK. address 0x1001 = 0x20202020.
>   READ_OK. address 0x1002 = 0x302e3530.
>   ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cryptech.is/pipermail/tech/attachments/20140322/fc3d2798/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://cryptech.is/pipermail/tech/attachments/20140322/fc3d2798/attachment.sig>
    
    
More information about the Tech
mailing list