On 03.08.2014 15:56, Steffen Jaeckel wrote:
> On 03.08.2014 08:05,
ronwa...@gmail.com wrote:
>> Hi -
>>
>> I want to use the BLAKE2S (
https://blake2.net/) hash within the TomCrypt
>> structure.
>>
>> Unfortunately, I don't see a way to add my (previously unknown to TC)
>> hash without modifying TC code, particularly the "hash_state" structure.
>>
>> Am I missing something? I don't want to make my own modifications to
>> TC unless it's really necessary.
>>
>> Thanks!
>>
>
> Hi,
>
> as the BLAKE2 sources are CC0 licensed we could simply integrate BLAKE2
> in ltc. (Patches/Pull Requests welcome)
>
> Otherwise you could somehow modify the BLAKE2 sources to fit the ltc
> structures and create your own structs for ltc_hash_descriptor and
> hash_state ... and after some nasty typecasts you should be able to
> register the BLAKE2 descriptor and use BLAKE2 as if it were built into
> ltc...
>
> I'd prefer the way to integrate it into ltc... also it'd be somehow the
> same effort without the need to do these nasty typecasts...
>
> Steffen
>
My OTR key has changed on 30. Sept. 2015!