1
0
mirror of https://github.com/fumiama/simple-crypto.git synced 2026-06-16 10:10:23 +08:00

优化md5

This commit is contained in:
源文雨
2022-04-18 11:42:01 +08:00
parent 01e254f8e2
commit e46a95a06d
3 changed files with 50 additions and 110 deletions

View File

@@ -20,9 +20,9 @@ make install
```c
#include <simplecrypto.h>
```
2. Call functions. Don't forget to `free` the returned digest.
2. Call functions.
```c
uint8_t* md5(const uint8_t *data, size_t data_len);
uint8_t* md5(const uint8_t *data, size_t data_len, uint8_t digest[16]);
TEADAT* tea_encrypt_qq(const TEA t[4], const TEADAT* src);
TEADAT* tea_encrypt(const TEA t[4], const uint32_t sumtable[0x10], const TEADAT* src);