> ECB_Mode< SHACAL2 >::Encryption e1; > e1.SetKey(key, 16); > StringSource(plain,true, > new StreamTransformationFilter(e1, > new StringSink(cipher) > ) // StreamTransformationFilter > ); // StringSource
crypt text with SHACAL2 key=16 byte first block to crypt=32bytes 000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ crypt result= 000000 A2 F4 97 66 AA CA E2 30 29 A2 BA 7D 39 5B 2E 00 .ф.f.Кв0)..}9[.. 000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................<<<<<<<<<<<<<<<<<<this bytes dont crypted at first block all block (except first ) crypted normally im try use key 32 bytes=key16bytes+16 0x0 bytes result same -- -- 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. --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
