| 1234567891011121314151617181920212223242526272829303132333435 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* sl_md5.h :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@student.42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2018/09/25 19:20:50 by bchanot #+# #+# */
- /* Updated: 2018/10/10 12:56:50 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #ifndef SL_MD5_H
- # define SL_MD5_H
- typedef struct s_md5
- {
- t_uint32 buff[16];
- t_uint32 state[4];
- t_uint64 count;
- } t_md5;
- typedef struct s_process_md5
- {
- t_uint32 a;
- t_uint32 b;
- t_uint32 c;
- t_uint32 d;
- } t_process_md5;
- void sl_md5_final(t_md5 *ctx, t_uint8 *hash);
- void sl_md5_update(t_md5 *ctx, const t_uint8 *data, size_t len);
- void sl_md5_init(t_md5 *ctx);
- #endif
|