[DES 알고리즘 소스] DES 알고리즘 소스 작성
- 최초 등록일
- 2004.05.15
- 최종 저작일
- 2004.05
- 1페이지/
압축파일
- 가격 1,000원
![할인쿠폰받기](/images/v4/document/ico_det_coupon.gif)
목차
총 37파일
본문내용
#include <stdio.h>
#include <time.h>
#include "des.h"
#define KILO 1024
#define MEGA (KILO*KILO)
#undef PrintBYTE
#define PrintBYTE(pfile, msg, Data, DataLen) { \
int idx; \
fprintf(pfile, "%5s =", msg); \
for( idx=0; idx<(int)DataLen; idx++) { \
if( (idx==0) || ((idx%16)!=0) ) \
fprintf(pfile, " %.2x", Data[idx]); \
else \
fprintf(pfile, "\n\t%.2x", Data[idx]); \
} \
fprintf(pfile, "\n"); \
}
#define SPEED_TEST(str1, str2, Iter, ByteLen, Oper) { \
unsigned idx; \
clock_t start, finish; \
double Sec, Mbps=0.0; \
start = clock(); \
for( idx=0; idx<Iter; idx++) \
{ Oper; } \
finish = clock(); \
Sec = (double)(finish-start) / CLOCKS_PER_SEC; \
if( Sec!=0 ) Mbps = 8.0*ByteLen*idx/Sec/MEGA; \
printf("%s%7.3fMbps(=%d*", str1, Mbps, Iter); \
printf("%d", ByteLen); \
printf("/%3.0f)%s", 1000.0*Sec, str2); \
}
참고 자료
없음
압축파일 내 파일목록
DES/des.c
DES/des.dsp
DES/des.dsw
DES/des.exe
DES/des.h
DES/des.ncb
DES/des.opt
DES/des.plg
DES/desenc.c
DES/desenc.dsp
DES/desenc.ncb
DES/desenc.plg
DES/key.dat
DES/readme.txt
DES/sample.dat
DES/sample.dec
DES/sample.enc
DES/test.c
DES/test.dsp
DES/test.dsw
DES/test.ncb
DES/test.opt
DES/test.plg
DES/Debug/desenc.pch
DES/Debug/test.obj
DES/Debug/test.pch
DES/Debug/test.pdb
DES/Debug/vc60.idb
DES/Debug/vc60.pdb
DES C/des.c.txt
DES C/des.h.txt
DES C/desenc.c.txt
DES C/test.c.txt
DES JAVA/Cipher.txt
DES JAVA/DES.txt
DES JAVA/DES_Maskey.txt
DES JAVA/TEst.txt