36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/**************************************************************************
|
|
*
|
|
* Copyright (c) 2009-2018 by SiFar Technology, Inc.
|
|
*
|
|
* This software is copyrighted by and is the property of SiFar
|
|
* Technology, Inc.. All rights are reserved by SiFar Technology, Inc..
|
|
* This software may only be used in accordance with the corresponding
|
|
* license agreement. Any unauthorized use, duplication, distribution,
|
|
* or disclosure of this software is expressly forbidden.
|
|
*
|
|
* This Copyright notice MUST not be removed or modified without prior
|
|
* written consent of SiFar Technology, Inc..
|
|
*
|
|
* SiFar Technology, Inc. reserves the right to modify this software without notice.
|
|
*
|
|
* Author: HAC
|
|
* Ver: 1.0.0 2021.10.31
|
|
* Description: creat
|
|
**************************************************************************/
|
|
#ifndef __SF_MD5_H__
|
|
#define __SF_MD5_H__
|
|
|
|
typedef struct
|
|
{
|
|
unsigned int state[4];
|
|
unsigned int count[2];
|
|
unsigned char buffer[64];
|
|
} MD5_CTX;
|
|
|
|
void sf_md5_init(MD5_CTX *context);
|
|
void sf_md5_update(MD5_CTX *context, unsigned char *input, unsigned int inputlen);
|
|
void sf_md5_final(MD5_CTX *context, unsigned char digest[16]);
|
|
|
|
#endif
|
|
|