MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / decode

Method decode

sql/sql_crypt.cc:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63void SQL_CRYPT::decode(char *str,uint length)
64{
65 for (uint i=0; i < length; i++)
66 {
67 shift^=(uint) (my_rnd(&rand)*255.0);
68 uint idx= (uint) ((uchar) str[0] ^ shift);
69 *str = decode_buff[idx];
70 shift^= (uint) (uchar) *str++;
71 }
72}

Callers 1

crypto_transformMethod · 0.80

Calls 1

my_rndFunction · 0.85

Tested by

no test coverage detected