[Cryptech Tech] need SHA-224 support

Joachim Strömbergson joachim at secworks.se
Mon May 30 14:46:29 UTC 2016


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

Aloha!

Looking at the API for the different hashing modes in SHA512 I thought
about following the same pattern as in that core, but that _might_ break
something.

Paul, in the SHA512 core, the two mode bits are in the CTRL-address.
Adding a mode bit (SHA256 or SHA224) would be easy. But I assume that
SHA256 will be the default. Having zero as SHA256 mode and one as SHA224
mode looks a wee bit weird. But if I choose one as default for SHA256,
would that break the expected behavior? Reading CTRL, is that really done?

Just to make sure I'm not messing anything up.

JoachimS

Joachim Strömbergson wrote:
> Aloha!
> 
> Francis Dupont wrote:
>> Today only 5 from the 6 SHA-2 algorithms are supported: there is no
>>  support for SHA-224 which is used by TSIG (cf RFC 4635) when the 
>> almost useless SHA-512/224 is supported... Can you consider this 
>> message as a formal request to add SHA-224 support?
> 
>> Thanks
> 
>> Francis.Dupont at fdupont.fr
> 
>> PS: this is trivial for the libhal mixed-mode code, a bit harder
>> for the core code but you already have SHA-384 which is pretty
>> similar.
> 
> Or more correctly, SHA224 is a truncated version of SHA256 with 
> different initial h values so the core effected would be SHA256, not 
> SHA512. Adding support for SHA224 would be fast. In the order of a 
> couple of hours including updating API and testbench.
> 
> Shall I do it? _______________________________________________ Tech
> mailing list Tech at cryptech.is 
> https://lists.cryptech.is/listinfo/tech

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

iQIcBAEBCAAGBQJXTFJFAAoJEF3cfFQkIuyNoP0QAJkiNyV9+5uNVqIwAgDsZxwr
OTfTpWIIZ32TGMTngVRalxjh1PUdWOhrLnfeI4a530hKu4rf2Sn5O1TUGhZyJ+bv
vIZCw3g9MJ9TlplCZS9nHym7SBGF2QSO4s6cwnt1yBZJbly1AbO3x4Wy0+7LnTkv
n6a3HusU+5I4IH5wgu5hTO8h6W+03q1aZAs1Hcwdth+ZyOD6S1zFVI916fxDOM3J
GK41UtgP30EYradDROtyq3hPF8+L+TB0pcasC3vGqH4n4gCzh6uYwWS/aDjACQOu
OxY+1DFtFSInZ/oQtAHJXu6PjAJG+lLkyVFv/AYn8JI8qqpPCwollvTLoqhKGYWh
jMGJFHFXnHF0H4rey8c/EjRPo7JgRL39VNtX2NhD3UvlF6H2T1N7oK6nSrg0Mvdc
WX2mS7fPOSpfynlSbmC6gYsDXoiSgMlF8s2FBNQ29OQjrfa/J6McNf4D9sYkl9sG
e58iN18uxS5+V5yMXfDHlakssE6Vg3vV/56nmAgQjyOBgwEpOdoDaYHcio0//7b1
cBpV52Hw7X87jCZ+c/wW6p0TIV/9Dy7Repy4OA1N5/tbhjcfVM2QmI38N/vwtZjd
kiDQdkIOCKPP8e+6yae/Y2td3A8BQ108b5agGl1bFelZf1e7weICqL71czhDaiss
ivcUpQGi3QFFSSlkw01W
=7kFC
-----END PGP SIGNATURE-----


More information about the Tech mailing list