mirror of
https://github.com/giantpune/mailboxbomb.git
synced 2024-11-16 17:19:16 +01:00
24 lines
515 B
C
24 lines
515 B
C
#ifndef CRYPTOSTUFF_H
|
|
#define CRYPTOSTUFF_H
|
|
|
|
#include "aes.h"
|
|
#include "buffer.h"
|
|
#include "sha1.h"
|
|
#include "tools.h"
|
|
|
|
typedef struct
|
|
{
|
|
SHA1Context hash_ctx;
|
|
unsigned char key[ 0x40 ];
|
|
} hmac_ctx;
|
|
|
|
u32 ComputeCRC32( u8 *Buffer, u16 Size ) __attribute__ ( ( const ) );
|
|
|
|
void hmac_init(hmac_ctx *ctx, const char *key, int key_size);
|
|
void hmac_update( hmac_ctx *ctx, const u8 *data, int size );
|
|
void hmac_final( hmac_ctx *ctx, unsigned char *hmac );
|
|
|
|
Buffer GetSha1( const Buffer &stuff );
|
|
|
|
#endif // CRYPTOSTUFF_H
|