More preparation for easier integration of:
* https://github.com/hashcat/hashcat/pull/485 * https://github.com/hashcat/hashcat/pull/486
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* Author......: Jens Steube <jens.steube@gmail.com>
|
||||
* License.....: MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
int is_valid_hex_char (const u8 c);
|
||||
|
||||
u8 hex_convert (const u8 c);
|
||||
|
||||
u8 hex_to_u8 (const u8 hex[2]);
|
||||
u32 hex_to_u32 (const u8 hex[8]);
|
||||
u64 hex_to_u64 (const u8 hex[16]);
|
||||
|
||||
void bin_to_hex_lower (const u32 v, u8 hex[8]);
|
||||
|
||||
u8 int_to_base32 (const u8 c);
|
||||
u8 base32_to_int (const u8 c);
|
||||
u8 int_to_base64 (const u8 c);
|
||||
u8 base64_to_int (const u8 c);
|
||||
|
||||
u8 int_to_itoa32 (const u8 c);
|
||||
u8 itoa32_to_int (const u8 c);
|
||||
u8 int_to_itoa64 (const u8 c);
|
||||
u8 itoa64_to_int (const u8 c);
|
||||
|
||||
u8 int_to_bf64 (const u8 c);
|
||||
u8 bf64_to_int (const u8 c);
|
||||
|
||||
u8 int_to_lotus64 (const u8 c);
|
||||
u8 lotus64_to_int (const u8 c);
|
||||
|
||||
int base32_decode (u8 (*f) (const u8), const u8 *in_buf, int in_len, u8 *out_buf);
|
||||
int base32_encode (u8 (*f) (const u8), const u8 *in_buf, int in_len, u8 *out_buf);
|
||||
|
||||
int base64_decode (u8 (*f) (const u8), const u8 *in_buf, int in_len, u8 *out_buf);
|
||||
int base64_encode (u8 (*f) (const u8), const u8 *in_buf, int in_len, u8 *out_buf);
|
||||
|
||||
void lowercase (u8 *buf, int len);
|
||||
void uppercase (u8 *buf, int len);
|
||||
Reference in New Issue
Block a user