سلام
من یه برنامه دارم که در قسمت includeیه فایل جدید معرفی کرده
کد اون فایل هم دارم چه کنم که برنامه اصلی من اون فایل رو بشناسه؟
بعد نوی همون فایل متغیر هایی از نوع unit8-t هست که فکر نکنم جایی تعریف کرده باشه
چه جوری میشه؟
البته یه قسمتی از برنامه اینو داره
کد:/*
کد:* sha1.h
*
* Description:
* This is the header file for code which implements the Secure
* Hashing Algorithm 1 as defined in FIPS PUB 180-1 published
* April 17, 1995.
*
* Many of the variable names in this code, especially the
* single character names, were used because those were the names
* used in the publication.
*
* Please read the file sha1.c for more information.
*
*/
#ifndef _SHA1_H_
#define _SHA1_H_
#include <stdint.h>
/*
* If you do not have the ISO standard stdint.h header file, then you
* must typdef the following:
* name meaning
* uint32_t unsigned 32 bit integer
* uint8_t unsigned 8 bit integer (i.e., unsigned char)
* int_least16_t integer of >= 16 bits
*
*/
#ifndef _SHA_enum_
#define _SHA_enum_
enum
{
shaSuccess = 0,
shaNull, /* Null pointer parameter */
shaInputTooLong, /* input data too long */
shaStateError /* called Input after Result */
};
#endif
#define SHA1HashSize 20
این یعنی چی؟
کد:#define SHA1CircularShift(bits,word)
(((word) << (bits)) | ((word) >> (32-(bits))))