提交 f30fe24e 编写于 作者: wafwerar's avatar wafwerar

[TS-1368]<fix>: del original MD5 func.

上级 d3846365
......@@ -32,13 +32,7 @@ typedef struct {
uint32_t buf[4]; /* scratch buffer */
uint8_t in[64]; /* input buffer */
uint8_t digest[16]; /* actual digest after tMD5Final call */
} MD5_CTX;
typedef MD5_CTX T_MD5_CTX;
void MD5Init(T_MD5_CTX *mdContext);
void MD5Update(T_MD5_CTX *mdContext, uint8_t *inBuf, unsigned int inLen);
void MD5Final(T_MD5_CTX *mdContext);
} T_MD5_CTX;
void tMD5Init(T_MD5_CTX *mdContext);
void tMD5Update(T_MD5_CTX *mdContext, uint8_t *inBuf, unsigned int inLen);
......
......@@ -94,9 +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]
......@@ -129,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].
......@@ -167,9 +161,6 @@ void tMD5Final(T_MD5_CTX *mdContext) {
mdContext->digest[ii + 3] = (uint8_t)((mdContext->buf[i] >> 24) & 0xFF);
}
}
void MD5Final(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.
先完成此消息的编辑!
想要评论请 注册