검색어 입력폼

[암호학]SHA알고리즘

저작시기 1997.01 |등록일 2003.12.14 한글파일한글 (hwp) | 8페이지 | 가격 1,500원

소개글

SHA 알고리즘

목차

없음

본문내용

SHA 알고리즘

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>


#define SHA_BUFFER_SIZE 65536
#define SHA_HASH_SIZE 20
#define SHA_HASH_WORDS 5

#define H0 0x67452301L
#define H1 0xefcdab89L
#define H2 0x98badcfeL
#define H3 0x10325476L
#define H4 0xc3d2e1f0L

#define K_0_19 0x5a827999L
#define K_20_39 0x6ed9eba1L
#define K_40_59 0x8f1bbcdcL
#define K_60_79 0xca62c1d6L

#define ROTL(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
#define ROTR(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
#define BYTESWAP(x) (x)
#define BYTESWAP64(x) (x)
#define F_0_19(x, y, z) ((z) ^ ((x) & ((y) ^ (z))))
다운로드 맨위로