/* * mangle.h -- Mangle (encrypt/decrypt string with private key) interface */ class Mangle { public: Mangle(); void In( const StrPtr &data, const StrPtr &key, StrBuf &result, Error *e ) ; void InMD5( const StrPtr &data, const StrPtr &key, StrBuf &result, Error *e ) { DoIt( data, key, result, 0, 1, e ); }; void Out( const StrPtr &data, const StrPtr &key, StrBuf &result, Error *e ) ; void OutMD5( const StrPtr &data, const StrPtr &key, StrBuf &result, Error *e ) { DoIt( data, key, result, 1, 1, e ); }; void XOR( StrBuf &data, const StrPtr &key, Error *e ); void Mix( const char *buf ) { s2[0] = (int) *buf++; s2[1] = (int) *buf++; s2[2] = (int) *buf++; s2[3] = (int) *buf++; s2[4] = (int) *buf++; s2[5] = (int) *buf++; s2[6] = (int) *buf++; s2[7] = (int) *buf++; }; private: void DoIt( const StrPtr &data, const StrPtr &key, StrBuf &result, int direction, int digest, Error *e ); void Getdval( int direction, int m[], int k[] ); int o[8]; int pr[8]; int s0[16]; int s1[16]; int s2[8]; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 18760 | rlranft |
Populate -o //guest/perforce_software/p4/... //guest/rlranft/p4/.... |
||
//guest/perforce_software/p4/2014-2/support/mangle.h | |||||
#1 | 15903 | Matt Attaway | Everything should be happy now between the Workshop and the depot paths | ||
//guest/perforce_software/p4/2014_2/support/mangle.h | |||||
#1 | 15901 | Matt Attaway | Clean up code to fit modern Workshop naming standards | ||
//guest/perforce_software/p4/2014.2/support/mangle.h | |||||
#1 | 12189 | Matt Attaway | Initial (and much belated) drop of 2014.2 p4 source code |