diff options
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/ft_ssl.h | 53 | ||||
| -rw-r--r-- | inc/ft_ssl_md5.h | 25 | ||||
| -rw-r--r-- | inc/ft_ssl_sha256.h | 22 |
3 files changed, 100 insertions, 0 deletions
diff --git a/inc/ft_ssl.h b/inc/ft_ssl.h new file mode 100644 index 0000000..f3e3595 --- /dev/null +++ b/inc/ft_ssl.h @@ -0,0 +1,53 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_ssl.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/03 20:27:19 by cacharle #+# #+# */ +/* Updated: 2020/07/27 21:38:12 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ +#include <stdio.h> + +#ifndef FT_SSL_H +# define FT_SSL_H + +# include "libft.h" + +# include "ft_ssl_md5.h" + +// # include "ft_ssl_md5.h" +// # include "ft_ssl_sha256.h" + +// typedef int (*t_func_main)(int argc, char **argv); +// +// typedef struct +// { +// char *name; +// t_func_hash func; +// } t_command; +// +// typedef enum +// { +// FLAG_PIPE = 1 << 0, +// FLAG_QUIET = 1 << 1, +// FLAG_REVERSE = 1 << 2, +// } t_flags; + +typedef char *(*t_func_hash)(char *message); + +/* +** error.c +*/ + +// void error_command(char *command); + +/* +** args.c +*/ + +// int parse_args(char *name, int argc, char **argv, t_func_hash func_hash); + +#endif diff --git a/inc/ft_ssl_md5.h b/inc/ft_ssl_md5.h new file mode 100644 index 0000000..22d0845 --- /dev/null +++ b/inc/ft_ssl_md5.h @@ -0,0 +1,25 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_ssl_md5.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/22 07:14:45 by cacharle #+# #+# */ +/* Updated: 2020/07/27 16:36:41 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ +#include <stdio.h> + +#ifndef FT_SSL_MD5_H +# define FT_SSL_MD5_H + +# include <stdlib.h> +# include <stdint.h> +# include <stddef.h> + +# include "libft.h" + +char *message_digest_md5(uint8_t *msg, size_t size); + +#endif diff --git a/inc/ft_ssl_sha256.h b/inc/ft_ssl_sha256.h new file mode 100644 index 0000000..9427f88 --- /dev/null +++ b/inc/ft_ssl_sha256.h @@ -0,0 +1,22 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_ssl_sha256.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/22 07:18:42 by cacharle #+# #+# */ +/* Updated: 2020/02/22 08:57:14 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef FT_SSL_SHA256_H +# define FT_SSL_SHA256_H + +/* +** main_sha256.c +*/ + +int fl_main_sha256(int argc, char **argv); + +#endif |
