libsodium/demos/utils.h

21 lines
444 B
C
Raw Normal View History

/*
* Utility functions shared by all the demo programs.
*/
2015-05-27 10:10:07 -04:00
#ifndef UTILS_H
#define UTILS_H
#include <stddef.h>
#define MAX_INPUT_SIZE 4096 /* max size of all input buffers in the demo */
void print_hex(const void *bin, const size_t bin_len);
2015-05-27 10:10:07 -04:00
size_t prompt_input(const char *prompt, char *input, const size_t max_input_len,
int variable_length);
2015-05-27 10:10:07 -04:00
void print_verification(int r);
2015-05-27 10:10:07 -04:00
void init(void);
#endif /* UTILS_H */