未验证 提交 070bfeb1 编写于 作者: W wade zhang 提交者: GitHub

Merge pull request #11151 from taosdata/fix/ZhiqiangWang/TS-1368-del-old-MD5-func

[TS-1368]<fix>: del old MD5 func.
......@@ -38,10 +38,4 @@ void tMD5Init(T_MD5_CTX *mdContext);
void tMD5Update(T_MD5_CTX *mdContext, uint8_t *inBuf, unsigned int inLen);
void tMD5Final(T_MD5_CTX *mdContext);
typedef T_MD5_CTX MD5_CTX;
void MD5Init(MD5_CTX *mdContext);
void MD5Update(MD5_CTX *mdContext, uint8_t *inBuf, unsigned int inLen);
void MD5Final(MD5_CTX *mdContext);
#endif
......@@ -94,10 +94,6 @@ void tMD5Init(T_MD5_CTX *mdContext) {
mdContext->buf[2] = (uint32_t)0x98badcfe;
mdContext->buf[3] = (uint32_t)0x10325476;
}
void MD5Init(MD5_CTX *mdContext) {
tMD5Init(mdContext);
}
/* The routine tMD5Update updates the message-digest context to
account for the presence of each of the characters inBuf[0..inLen-1]
......@@ -130,9 +126,6 @@ void tMD5Update(T_MD5_CTX *mdContext, uint8_t *inBuf, unsigned int inLen) {
}
}
}
void MD5Update(MD5_CTX *mdContext, uint8_t *inBuf, unsigned int inLen) {
tMD5Update(mdContext, inBuf, inLen);
}
/* The routine tMD5Final terminates the message-digest computation and
ends with the desired message digest in mdContext->digest[0...15].
......@@ -168,9 +161,6 @@ void tMD5Final(T_MD5_CTX *mdContext) {
mdContext->digest[ii + 3] = (uint8_t)((mdContext->buf[i] >> 24) & 0xFF);
}
}
void MD5Final(T_MD5_CTX *mdContext) {
tMD5Final(mdContext);
}
/* Basic MD5 step. Transforms buf based on in.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册