wangyu 8 年之前
父节点
当前提交
9f0c2c6f35
共有 4 个文件被更改,包括 16 次插入0 次删除
  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.
 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_
 #ifndef _AES_H_
 #define _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;
 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) {
 unsigned int crc32h(unsigned char *message,int len) {
    int i, crc;
    int i, crc;
    unsigned int byte, c;
    unsigned int byte, c;

+ 4 - 0
md5.c

@@ -4,6 +4,10 @@
 #include <stdint.h>
 #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.
 // Constants are the integer part of the sines of integers (in radians) * 2^32.
 const uint32_t k[64] = {
 const uint32_t k[64] = {
 0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee ,
 0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee ,