Yes you are right.

I found a solution anyway implementing a subclass 
of IteratedHashWithStaticTransform called "NoneHash" with this method 
implementation to 32 bytes digest.

void NoneHash::Transform(CryptoPP::word32 *state, const CryptoPP::word32 
*data)
{
state[0] = data[0];
state[1] = data[1];
state[2] = data[2];
state[3] = data[3];
state[4] = data[4];
state[5] = data[5];
state[6] = data[6];
state[7] = data[7];
}

Regards

El jueves, 22 de octubre de 2015, 9:41:32 (UTC-3), Mouse escribió:
>
> I don't think Crypto++ supports a null-hash there, and would personally 
> never use NONEwithWhatever signing algorithm...
>
> Sent from my iPad
>
> On Oct 22, 2015, at 08:37, Andrés Garagiola <andresg...@gmail.com 
> <javascript:>> wrote:
>
> Hello,
>
> What is the right way of create a signer to support signature equivalent 
> to the generated by java algorithm name "NONEwithECDSA"?
>
>  
> CryptoPP::ECDSA<CryptoPP::ECP,CryptoPP::*SHA1*>::Signer 
> signer(privateKey); 
>
> The above example is equivalent to SHA1withECDSA but I don't know how 
> generate a signature like generated by NONEwithECDSA on Java.
>
> Thanks
> Regards
>
>
> -- 
> -- 
> You received this message because you are subscribed to the "Crypto++ 
> Users" Google Group.
> To unsubscribe, send an email to cryptopp-user...@googlegroups.com 
> <javascript:>.
> 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-user...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
-- 
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