[Cryptech Tech] Common API structure for cores

Joachim Strömbergson joachim at secworks.se
Wed Apr 29 14:24:15 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Aloha!

Paul: Thanks for great work with the unified HAL.
One thing I would like to suggest is that we start unifying some of the
addresses and even bits in the cores. We are almost there, but some
cores will have to be adjusted, which means update of testbenches and
some SW.  What I'm thinking of is this:

// addresses and codes common to all cores
#define ADDR_NAME0              0x00
#define ADDR_NAME1              0x01
#define ADDR_VERSION            0x02

// addresses and codes common to all hash cores
#define ADDR_CTRL               0x8
#define CTRL_INIT_CMD           1
#define CTRL_NEXT_CMD           2
#define ADDR_STATUS             0x9
#define STATUS_READY_BIT        1
#define STATUS_VALID_BIT        2
#define ADDR_BLOCK              0x10
#define ADDR_DIGEST             0x20      // except SHA512


The 32+32 bit name and 32 bit version fields are in basically all cores
at these addresses. The control and status fields are almost at the 0x08
and 0x09 addresses in all cores (but not all). What happens after STATUS
is probably core specific fields. But be able to find name, version,
control and status in all cores at the same place seems to me a fairly
easy and worthwile thing to do.

- -- 
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
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJVQOmPAAoJEF3cfFQkIuyNJfoQAJh0YEJ9Kjbqx5FcSuAKM4I5
6vrR8Gn/PauaRDVjeGaTC0UBv6sEApEEoHG81gU+24XGfIcUsh8eXwLrIorL2U1F
Wm+DS9zpJlrDyESQmBH/PvtTAA5z4H9UKwfJIwOakwb/CGADvwRETgVwKVEzFXMP
8/MwJrBVoJBLBmpWW7uR5gF+l70V8vVkfihBULGCZV8sutytpeLWJCvwdWOZpcrj
3sMYvZJCsXncES0Nzmuve94ToM42ShfD1LKjC4GMloJwd52W1a4BdvAFnBTzgwt6
ZCRpfsEki7INXHKlwbavvbLLSYk0yxmcpqjXMqpgIOUOSL+ix1tNQaHS95ch1p3z
ZXovu5rQxivisXXv20Xw4bySngtAK9mzt2RUuBQYabN4oOoTkpK1p/YraFA9L0sW
QpnjMW2S/2gpINdzA2AHJBl2V7aLsdRjifMtMJ1405c+jJy653UnWSEb8ha1exWS
i4vIqmoqL5nDpmIS4euL7m/TUjF2lEoKW6ti+q9dOAV8CDyumJ6LcDhNS5Sgy0eY
kQVA385BkSJk7GqZMDxWmIf5+Y7av2H2RhU5Mwre+stzu4ITRHxkttjrA48pqsD/
uut0AHQ6un/jOC0SOcxXV0+vc57KFT+GTRORM7Js1KMDz8LcpNcyGXylXeoz13Pl
835ih2GMHYKc9zp9Pcbc
=BrVd
-----END PGP SIGNATURE-----


More information about the Tech mailing list