You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hashcat/include/shared.h

27 lines
661 B

9 years ago
/**
* Authors.....: Jens Steube <jens.steube@gmail.com>
* Gabriele Gristina <matrix@hashcat.net>
* magnum <john.magnum@hushmail.com>
*
9 years ago
* License.....: MIT
*/
#ifndef _SHARED_H
#define _SHARED_H
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
9 years ago
u32 get_random_num (const u32 min, const u32 max);
9 years ago
u32 mydivc32 (const u32 dividend, const u32 divisor);
u64 mydivc64 (const u64 dividend, const u64 divisor);
void naive_replace (char *s, const u8 key_char, const u8 replace_char);
void naive_escape (char *s, size_t s_max, const u8 key_char, const u8 escape_char);
9 years ago
void hc_sleep (const int sec);
#endif // _SHARED_H