[Cryptech Tech] core size in cryptech.h
Paul Selkirk
paul at psgd.org
Thu Apr 30 20:16:38 UTC 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ah, okay. I saw what appeared to be an extra 0:
#define MODEXP_CORE_SIZE 0x1000
The actual effect is nil, since it doesn't change MODEXP_ADDR_BASE,
and there isn't another math core at the moment, but feel free to
revert it.
Looking ahead, will modexp actually need as many as 4096 addresses? I
see prefixes from 0x000 to 0x400.
Coming at it from another angle, will the math segment need more than
2 cores of this size?
paul
On 04/30/2015 05:16 AM, Joachim Strömbergson wrote:
> Aloha!
>
> Paul. I noted that you refactored the CORE_SIZE to one common
> define for all cores:
>
> #define CORE_SIZE 0x100 #define SEGMENT_SIZE
> 0x20 * CORE_SIZE
>
> This does work for most cores. But not for modexp. The modexp core
> has spans much more than 256 addresses. And the ecdsa/p256 (or
> whatever it will be called) will quite probably also span more than
> 256 addresses.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJVQo2mAAoJELAqzRn9CEWTPrgIAKS7kh8D6pYt/yIIOCVUg4Nh
zRl4tkZAxd0XybQpRHlGWm4d0OoIqW+WcY7/x9sQV5uhX8ZnHG0q8KH+q5JEY/e8
qx5GKzkyCAuSZkBkqyGZtA3sg6WpI3SA1sYdNM8lOGDdE3VLWGlAb53Jtg7uySqr
9Y2pvW3n+8S6olx5Oi1X2916I7gQlaJ5qGFesXdq2z6yJvg1FZMEyisIuY5g/2VE
HhvEUFvByHpbGoJVN7df0E9Gw6p9hRkdWb7rM84OsOBiR4q7JQ318e2aP7wqOsi3
SOOpXjXPLYh0n5GkzeVUFdPaOYp/dbu1ZqH/b9qcNjwIgno6o1v24zOvxlUxdpY=
=s41w
-----END PGP SIGNATURE-----
More information about the Tech
mailing list