Z:/root/Project/pwatch/src/sha1sum.c 파일 참조

print SHA-1 Message-Digest Algorithm Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. 더 자세히 ...

#include "sha1sum.h"

매크로

#define X(a)

함수

void sha1_init (SHA1_CONTEXT *hd)
void transform (SHA1_CONTEXT *hd, unsigned char *data)
void sha1_write (SHA1_CONTEXT *hd, unsigned char *inbuf, size_t inlen)
void sha1_final (SHA1_CONTEXT *hd)
int sha1sum (char *file_name, SHA1_CONTEXT *ctx)
 SHA1 message digest 계산.

변수

int Debug
 디버깅 모드 설정 변수


상세한 설명

print SHA-1 Message-Digest Algorithm Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.

Copyright (C) 2004 g10 Code GmbH

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


매크로 문서화

#define X (  ) 

값:

do { *p++ = hd->h##a >> 24; *p++ = hd->h##a >> 16;       \
                        *p++ = hd->h##a >> 8; *p++ = hd->h##a; } while(0)


함수 문서화

void sha1_final ( SHA1_CONTEXT hd  ) 

void sha1_init ( SHA1_CONTEXT hd  ) 

void sha1_write ( SHA1_CONTEXT hd,
unsigned char *  inbuf,
size_t  inlen 
)

int sha1sum ( char *  file_name,
SHA1_CONTEXT ctx 
)

SHA1 message digest 계산.

매개변수:
file_name SHA1 message digest를 계산할 파일
ctx 계산 결과를 저장할 Context 포인터
Remarks:
파일로부터 SHA1 message digest를 계산한다.
반환값:
성공하면 0, 실패하면 -1.

void transform ( SHA1_CONTEXT hd,
unsigned char *  data 
)


변수 문서화

int Debug

디버깅 모드 설정 변수

Remarks:
1 이상인 경우 일반 모드, 0인 경우 데몬 모드로 실행된다. 이 변수를 1로 설정하기 위해서는 command line 옵션에 -d NUMBER를 준다.


생성시간 : Wed Apr 9 00:05:11 2008, 프로젝트명 : ProcessWatch, 생성자 :   doxygen 1.5.4