wangyu 8 years ago
parent
commit
9f0c2c6f35
4 changed files with 16 additions and 0 deletions
  1. 5 0
      aes.c
  2. 4 0
      aes.h
  3. 3 0
      encrypt.cpp
  4. 4 0
      md5.c

+ 5 - 0
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.

+ 4 - 0
aes.h

@@ -1,3 +1,7 @@
+/*
+ *  this file comes from https://github.com/kokke/tiny-AES128-C
+ */
+
 #ifndef _AES_H_
 #define _AES_H_
 

+ 3 - 0
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;

+ 4 - 0
md5.c

@@ -4,6 +4,10 @@
 #include <stdint.h>
 
 
+/*
+ *  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 ,