Nice shot, thank you! Do you know what ExtendShortKey does?
> hi everybody, > > i found the problem with the 3des encryption > i have comparen the snmpsend source code with the snmpsharpnet source > code > and the problem is in the EncryptPDU > branch > > this line > FPrivKey := Pass2Key( TV3KeyType.PrivKey, FPrivPassword ); > > gives the same result as the c# library but in the c# library you can > see, than when the length of the key is smaler than 32 we have to do > another step > > in c# its this lines > if( encryptionKey.Length < MinimumKeyLength ) > encryptionKey = ExtendShortKey(encryptionKey, secret, engineId, > authProtocol); > > and this step is missing i think in snmpsend and thats why the > calculated key is wrong > > i will try to imnplement this extra function > if someone wants to try, i can offen an open port to a working 3des > agent, all the free available 3des agents are also not correct > implemented > > thanks > k1 > > > ------------------------------------------------------------------------------ > _______________________________________________ > synalist-public mailing list > synalist-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/synalist-public -- Lukas Gebauer. http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. http://geoget.ararat.cz/ - Geocaching solution ------------------------------------------------------------------------------ _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public