mirror of
https://git.oceanpay.cc/danial/itunes_server.git
synced 2025-12-18 22:44:55 +00:00
- Introduced a new iTunes Debugger application with main functionality to interact with iTunesAPIs. - Added various third-party libraries including 7zip, bit7z, jsoncpp, libcurl, libeay32, ssleay32, and zlib for enhanced functionality. - Created project files for the iTunes Debugger in Visual Studio, including .vcxproj, .vcxproj.filters, and .sln files. - Included a log file for debugging purposes. - Ensured compatibility with both Debug and Release configurations for Win32 and x64 platforms.
37 lines
910 B
C
37 lines
910 B
C
/* Sha3.h -- SHA-3 Hash
|
|
: Igor Pavlov : Public domain */
|
|
|
|
#ifndef ZIP7_INC_MD5_H
|
|
#define ZIP7_INC_MD5_H
|
|
|
|
#include "7zTypes.h"
|
|
|
|
EXTERN_C_BEGIN
|
|
|
|
#define SHA3_NUM_STATE_WORDS 25
|
|
|
|
#define SHA3_BLOCK_SIZE_FROM_DIGEST_SIZE(digestSize) \
|
|
(SHA3_NUM_STATE_WORDS * 8 - (digestSize) * 2)
|
|
|
|
typedef struct
|
|
{
|
|
UInt32 count; // < blockSize
|
|
UInt32 blockSize; // <= SHA3_NUM_STATE_WORDS * 8
|
|
UInt64 _pad1[3];
|
|
// we want 32-bytes alignment here
|
|
UInt64 state[SHA3_NUM_STATE_WORDS];
|
|
UInt64 _pad2[3];
|
|
// we want 64-bytes alignment here
|
|
Byte buffer[SHA3_NUM_STATE_WORDS * 8]; // last bytes will be unused with predefined blockSize values
|
|
} CSha3;
|
|
|
|
#define Sha3_SET_blockSize(p, blockSize) { (p)->blockSize = (blockSize); }
|
|
|
|
void Sha3_Init(CSha3 *p);
|
|
void Sha3_Update(CSha3 *p, const Byte *data, size_t size);
|
|
void Sha3_Final(CSha3 *p, Byte *digest, unsigned digestSize, unsigned shake);
|
|
|
|
EXTERN_C_END
|
|
|
|
#endif
|