Denis Podluzhny wrote:
>
>
>> Can you please send me the test code you're using?
>
> void IVMac::TestVMac( int _num, vector<uint64> *_res )
> {
> const char key[16] = "somedummykey345";
> const byte pattern[100] = {
> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
> if ( sizeof(pattern) < _num )
> _num = sizeof(pattern);
>
> const uint64 nonce[2] = { 0x10, 0x0 };
>
> CryptoPP::VMAC<CryptoPP::AES, 64> hasher;
> hasher.SetKey( (byte*)key, 16, CryptoPP::MakeParameters
> ( CryptoPP::Name::IV(), (const byte*)&nonce, false )
> ( CryptoPP::Name::KeySize(), 128 ) );
>
> _res->clear();
> for ( size_t i = 1, e = _num; i != e; ++ i )
> {
> uint64 cv;
> hasher.Resynchronize( (const byte*)nonce );
> hasher.CalculateDigest( (byte*)&cv, pattern, i );
> _res->push_back( cv );
> }
> }
>
>
if i want crypt file use VMAC,what do i do ?
--
View this message in context:
http://old.nabble.com/Problem-%28bug-%29-with-VMAC-asm-code-tp21540647p29262868.html
Sent from the Crypto++ Users mailing list archive at Nabble.com.
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.