头文件请看本版另外一个链接:http://bbs3.chinaunix.net/thread-1599312-1-2.html 问题:用cbc,下面的代码解码出现乱码,请高手帮忙指正,谢谢 [code] int color="red">aes_self_test( ) { int i, j, u, v; color="red">aes_context ctx; unsigned char buf[16],temp[16]; u = 1 >> 10; strcpy(buf,"test"); //color="red">aes_set_key( &ctx, buf, 128 + u * 64 ); color="red">aes_set_key( &ctx, buf, 128); unsigned ch...
从网上cp过来的 [code] #ifndef _color="red">aes_H #define _color="red">aes_H /** * \brief color="red">aes context structure */ typedef struct { unsigned long erk[64]; /*!< encryption round keys */ unsigned long drk[64]; /*!< decryption round keys */ int nr; /*!< number of rounds */ } color="red">aes_context; /** * \brief color="red">aes key schedule * * \param ctx color="red">aes context to be ...
各位大虾,谁有color="red">aes的c实现代码? 偶下载了布赖恩的修订版,但是似乎不是很好用 而且老爷子的注释不是很人道 :( 需要一个可用的加密函式 特别是在定义加密位数处加以注释,谢谢
#include #include using namespace std; struct test { char name[10]; float socre; test *next; }; test *head;//创建一个全局的引导进入链表的指针 test *create() { test *ls;//节点指针 test *le;//链尾指针 ls = new test;//把ls指向动态开辟的堆内存地址 head=NULL;//进入的时候先不设置head指针指向任何地址,因为不知道是否一上来就输入null跳出程序 le=head;//把链尾指针设置成刚刚动态开辟的堆内存地...
自己写的简单的mysql pool代码,因为没有找到现成的,如果谁有,别忘了给我一份哦。:em02:
这个pool需要用于多进程和多线程中.
[code]
//mysqlpool.h
#ifndef __MYSQL_POOL_H__
#define __MYSQL_POOL_H__
#include
这两天想看下string.h下的函数实现源码,如,strtod. 在Vc里面找了半天,只找到头文件,没有实现方法,那个可以告诉我一下那有?? [ 本帖最后由 PassionUranus 于 2007-4-13 14:56 编辑 ]
c源码:常用攻击程序 Abstract 这里有一些是老的,现在看来并没有用,但他们都很有名。 1 Land 攻击一台Win95的机器。这是Win95的一个漏洞,以其IP地址和端口向自 己的同一个端口发起连接(发SYN),Win95即会崩溃。 /* land.c by m3lt, FLc crashes a win95 box */ #include #include #include #include #include #include #include #include //用于TcP校验和的伪头 struct pseudohdr { str...
【 标签:编程技术,源码天堂 】【 发布时间:2008-01-01 】 上一篇 下一篇 Abstract 这里有一些是老的,现在看来并没有用,但他们都很有名。 1 Land 攻击一台Win95的机器。这是Win95的一个漏洞,以其IP地址和端口向自 己的同一个端口发起连接(发SYN),Win95即会崩溃。 /* land.c by m3lt, FLc crashes a win95 box */ #include #include #include #include #include #include #include #include //用于TcP校...