#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 |
디버깅 모드 설정 변수 |
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 | ( | a | ) |
값:
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 포인터 |
void transform | ( | SHA1_CONTEXT * | hd, | |
unsigned char * | data | |||
) |
int Debug |
디버깅 모드 설정 변수