[Cryptech Tech] How to start using coretest_hashes on the TerasIC C5G Board
Joachim Strömbergson
joachim at secworks.se
Mon Mar 24 09:23:05 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Aloha!
Randy Bush wrote:
> ryuu.psg.com:/Users/randy/test_coretest_hashes/cores/coretest_hashes/src/sw>
> python hash_tester.py TC1-3: Reading SHA-1 status and digest.
> READ_OK. address 0x1009 = 0x00000003. READ_OK. address 0x1020 =
> 0xa9993e36. READ_OK. address 0x1021 = 0x4706816a. READ_OK. address
> 0x1022 = 0xba3e2571. READ_OK. address 0x1023 = 0x7850c26c. READ_OK.
> address 0x1024 = 0x9cd0d89d.
Correct digest for SHA-1!
> TC2-3: Reading SHA-256 status and digest. READ_OK. address 0x2009 =
> 0x00000003. READ_OK. address 0x2020 = 0xba7816bf. READ_OK. address
> 0x2021 = 0x8f01cfea. READ_OK. address 0x2022 = 0x414140de. READ_OK.
> address 0x2023 = 0x5dae2223. READ_OK. address 0x2024 = 0xb00361a3.
> READ_OK. address 0x2025 = 0x96177a9c. READ_OK. address 0x2026 =
> 0xb410ff61. READ_OK. address 0x2027 = 0xf20015ad.
And correct digest for SHA-256!
> Exception in thread Thread-1: Traceback (most recent call last): File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py",
> line 808, in __bootstrap_inner self.run() File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py",
> line 761, in run self.__target(*self.__args, **self.__kwargs) File
> "hash_tester.py", line 193, in read_serial_thread response =
> serialport.read() File
> "/Library/Python/2.7/site-packages/serial/serialposix.py", line 481,
> in read raise SerialException('read failed: %s' % (e,))
> SerialException: read failed: (9, 'Bad file descriptor')
>
Try again! ;-)
It _shouldn't_ happen. It is (I think) caused by the reader thread
trying to read after the the device has been closed. My multithread
Python fu needs improvement.
But the important thing is that you were able to download the HW design
from the Cryptech repo, set up the dev and test environment, build the
FPGA design and download it. And the run hash operations on our own HW.
Not bad me thinks.
- --
Med vänlig hälsning, Yours
Joachim Strömbergson - Alltid i harmonisk svängning.
========================================================================
Joachim Strömbergson Secworks AB joachim at secworks.se
========================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBCAAGBQJTL/l5AAoJEF3cfFQkIuyNM1sQAMn+m11LEnzlP+YRhaynf32D
UnfIYIGyJ9Z/O67Gx4FV9o9YtcYdWDFDPD9g3LPhDpr/xS2CuhZRvbXBevsjjX/J
Js7m2RFt/XnZJ9oPDJjpo6Gk1tyzAMvwwILx8+fghFYro8OLz2N6ELxxuASXUerm
2XvhPQ2T7WjzyJqLOmE5z5iyqz/eLS/sYMbtrffEC0dNFTBcc5XdaDNsFGodqFNw
akhfK1DcTxr379cOIlzOY0jQjRpIAUM6UvlPw2wEwnC9v9mPm9dDayr9qQl7eJKQ
NOwXIhGiWTIjGBcp2rLJmLy5hfTPMEYfUeLx8XZbI/Uu0Gtu/W1sJpHgHhm1VTy6
+Bog2yTDtmu/zXuJPHSEa/Xg8XoJ5r44S9SgYgzRM+lqT2Zq8Ijns5Mz6mhat0JS
ElG8SmMiUqvMBYsSDvgx6svbhbmzljx0GumG4IMp/cXxZyOmUe8KW0rMR0u0+Ds8
QuiOGNLK/9Pk87xdrEIp4HJ79z6lN511rEiP82oeqmnS+Ao1tftW5DhohH+6dQ++
VO1gC/kiWO/UVbUZXHmJaQO7EzQ7eYaRWLcnnogPR+ChOP828to+5cgslIp8Bgop
Gg/fqsSxcZJsGdFT2hENhrfqmFbQ0Rb0Teso1uBxnS7UdWH+xVOcXT8NCm2ZSYcd
9IHf25CYXQd1kZHwSrsz
=06tF
-----END PGP SIGNATURE-----
More information about the Tech
mailing list