> is it possible with crypto++ generating sha3 hashes (so I mean the Keccak) 
> with a specific length? I could only see sha3 instances with 224,256,384 
> and 512 bits. I would like to generate hashes with length d.
>

Derive a class from Keccak base class 
(http://www.cryptopp.com/docs/ref/class_keccak.html). Something like:

    Keccack_192 : public Keccack
    {
        public:
            CRYPTOPP_CONSTANT(DIGESTSIZE = 24)
            Keccack_192() : Keccack(DIGESTSIZE) {}
    };

Using something other that F1600 or XOF byte 0x06 will be a larger pain 
point.

We don't have a good strategy at the moment for Keccak, different sponge 
functions and XOFs. A few of us have been bouncing emails offlist. For 
example, how extensible should we make the Keccack classes? Should the 
Keccack base class take two additional template parameters: one for the 
sponge function, and one for the XOF?

Some more of the back story: Keccak was a last-minute addition. We wanted 
SHA3 to be FIPS 202 conforming. To do that, folks needed access to pre-FIPS 
202 behavior, and that's Keccak from round 6 of the NIST selection process. 
Or we needed to completely rework SHA3/Keccak, but we don't have the 
developer cycles at the moment.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to