From 9f0c2c6f35d60b731611184a9aa0a7a60e061908 Mon Sep 17 00:00:00 2001 From: wangyu Date: Fri, 4 Aug 2017 17:19:40 +0800 Subject: [PATCH] trival --- aes.c | 5 +++++ aes.h | 4 ++++ encrypt.cpp | 3 +++ md5.c | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/aes.c b/aes.c index c609c1f..bab07a0 100755 --- a/aes.c +++ b/aes.c @@ -1,3 +1,8 @@ + +/* + * this file comes from https://github.com/kokke/tiny-AES128-C + */ + /* This is an implementation of the AES algorithm, specifically ECB and CBC mode. diff --git a/aes.h b/aes.h index 8dd2d3b..db6fddf 100755 --- a/aes.h +++ b/aes.h @@ -1,3 +1,7 @@ +/* + * this file comes from https://github.com/kokke/tiny-AES128-C + */ + #ifndef _AES_H_ #define _AES_H_ diff --git a/encrypt.cpp b/encrypt.cpp index 244ba9d..abcbc5b 100755 --- a/encrypt.cpp +++ b/encrypt.cpp @@ -20,6 +20,9 @@ auth_mode_t auth_mode=auth_sum; cipher_mode_t cipher_mode=cipher_xor; +/* + * this function comes from http://www.hackersdelight.org/hdcodetxt/crc.c.txt + */ unsigned int crc32h(unsigned char *message,int len) { int i, crc; unsigned int byte, c; diff --git a/md5.c b/md5.c index 0721b90..f788af5 100755 --- a/md5.c +++ b/md5.c @@ -4,6 +4,10 @@ #include +/* + * this file comes from https://github.com/pod32g/MD5/blob/master/md5.c + */ + // Constants are the integer part of the sines of integers (in radians) * 2^32. const uint32_t k[64] = { 0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee ,