[Cryptech Tech] Common API structure for cores
Joachim Strömbergson
joachim at secworks.se
Thu Apr 30 07:07:47 UTC 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Aloha!
Paul Selkirk wrote:
> I've been thinking along similar lines, but didn't want to meddle
> too much in your cores to do it. Getting the apps to use a common set
> of symbolic name was the first step, then we can tweak the
> underlying memory map.
>
> For the RNG cores, ctrl is at 0x10 and status is at 0x11, for no
> discernible reason. AES puts ctrl at 0x08, but status at 0x0a (0x09
> being 2 bits of config, which might be rolled into ctrl). The big
> offender is ChaCha, which doesn't have name or version registers,
> and puts ctrl at 0x00 and status at 0x01.
>
> The individual ctrl and status bits are somewhat core-dependent, but
> should be harmonized where possible.
Agreed. And yes. it is me that has not been following my own standards.
I'll add a ticket to clean up my mess.
And yes, harmonizing bits are hard. But having ready at bit 0 in the
status register should be possible to do in all cores. And init/start at
bit 0 in the control register. Then you can at least fire away and check
status in a core.
- --
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/
iQIcBAEBCAAGBQJVQdTDAAoJEF3cfFQkIuyNsOYP/jroKD86CXm38qIn6+CI6tCF
fVvt57Q+2rGSYHqMo2dgv8eOwSKvXK/0Sr7s3nZozTizcpKmP1mA39ALEk7oReXo
agMmFl3KVsS/UoU2Osxaau8IJZq+eRvUU2lDqfsh7tjDP3SJjZxo4d8yuZDUmJ6S
8iwBJ43flchUTQBC+NlEmcnClhGHuv9KHmFx0tgaHiZPB8im3+6jjkIFiONccAva
jk6BLIYr7KDbFGYCUV3kMvyRLFQDbVzHw7ThsJZ891+AyDFpgnuqhMXdTMhDoJv8
zWy2AZaOrV6T0+E3zG7BOn5ZPNpPFM9bARR0Izus/oJ/4mjqMaJBHDPEkZs3K95Y
HZOWw0oU6JnAS7EtOA50RwnnRwErWFx6BLJEizKloPwq7Rmo33ppvBjYua++7ctr
EV62V7vUfd4bppQmivpL779HfP2e2dozJh1DQ+88jrryPSEc7/9XdkzSnllcRSEl
/j7CmOOkzKJVXxPAqn4sjziZSJleR8ngaMbmyQvq3t5qbvzsb+/M2zxt1Q06RPHM
+r/k7JvIheLzOyOx7OKuUs20RVs0mFHQz924+xkdK8ugpv0vKIEB3pw4x9JmwgXm
TxWBXhjiKV/BxeJI16sSs1pBJ42AR12g7qOL2oHpxrz/LUGEvODjF9eUYS+7uweN
DOmphbnO9EAaFtFyDnKZ
=BGHW
-----END PGP SIGNATURE-----
More information about the Tech
mailing list