#ifndef _OBFS_OBFSUTIL_H
#define _OBFS_OBFSUTIL_H

int get_head_size(char *plaindata, int size, int def_size);

void init_shift128plus(void);

uint64_t xorshift128plus(void);

int ss_md5_hmac(char *auth, char *msg, int msg_len, uint8_t *iv, int enc_iv_len, uint8_t *enc_key, int enc_key_len);

int ss_sha1_hmac(char *auth, char *msg, int msg_len, uint8_t *iv, int enc_iv_len, uint8_t *enc_key, int enc_key_len);

void memintcopy_lt(void *mem, uint32_t val);

#endif // _OBFS_OBFSUTIL_H
