55 uint8_t
max_size(uint8_t a, uint8_t b);
64 time_t
get_s(
struct timespec * start,
struct timespec * end);
73 unsigned int get_ns(
struct timespec * start,
struct timespec * end);
94 bytes_string2hex(
char * hex_string,
const uint8_t * bytes_string, uint16_t length);
104 hex_string2bytes(uint8_t * bytes_string,
const char * hex_string, uint16_t length);
114 bin2hex(
const unsigned char *old,
const uint32_t oldlen,
unsigned char* result);
124 hex2bin(
const char *in,
unsigned char *out);
135 FindMarker (FILE *infile,
const char *marker);
148 ReadHex (FILE *infile,
char *A,
const int Length,
char *str);
time_t get_s(struct timespec *start, struct timespec *end)
Return the elapsed time in second between "start" and "end".
int ReadHex(FILE *infile, char *A, const int Length, char *str)
Read an hexadecimal string in file "infile".
void bytes_string2hex(char *hex_string, const uint8_t *bytes_string, uint16_t length)
Convert the byte string "bytes_string" under hexadecimal form.
void printchar2bin(uint8_t b)
print a byte
void string2bin(char *s, uint8_t *output)
Convert a string into a byte array.
void printstring2bin(uint8_t *s, uint32_t len)
Print a byte array.
int FindMarker(FILE *infile, const char *marker)
Find a marker in a file.
uint32_t hex2bin(const char *in, unsigned char *out)
Convert an hexadecimal string into a binary string.
void hex_string2bytes(uint8_t *bytes_string, const char *hex_string, uint16_t length)
Convert the hexadecimal string "hex_string" under bytes string form.
void char2bin(char c, uint8_t *b)
Convert a character into a byte (according to its ascii value)
Wrap the config.h generated by configure.ac.
uint8_t bits_to_nblock(const uint16_t nbits)
Return the number of blocks required to store a nbits number.
unsigned int get_ns(struct timespec *start, struct timespec *end)
Return the elapsed time in nano second to add to the result of get_s().
void print_bytes_string_hex(const uint8_t *bytes_string, uint16_t length)
Print the byte string "bytes_string" under hexadecimal form.
uint8_t max_size(uint8_t a, uint8_t b)
Return the max of a and b.