remove ft_sha.h from ft_pbkdf2.h

This commit is contained in:
Gregory 2019-03-27 12:55:47 +02:00
parent 9d2222d60d
commit 6eec5b018d
3 changed files with 11 additions and 3 deletions

View file

@ -1,10 +1,14 @@
#include "ft_sha.h"
#ifndef FT_PBKDF2_H
# define FT_PBKDF2_H
#define FT_PBKDF2_RESULT 32
typedef struct s_hmac_sha256_ctx
{
unsigned char *key;
unsigned char *msg;
unsigned char out[FT_SHA256_DIGEST_LENGTH_BYTE];
unsigned char out[FT_PBKDF2_RESULT];
unsigned int key_size;
unsigned int msg_size;
} t_hmac_sha256_ctx;
@ -17,4 +21,6 @@ void ft_hmac_sha256_init_ctx
void ft_hmac_sha256
(
t_hmac_sha256_ctx *ctx
);
);
#endif

View file

@ -1,5 +1,6 @@
#include "ft_pbkdf2.h"
#include "libft.h"
#include "ft_sha.h"
static void set_padding
(

View file

@ -1,6 +1,7 @@
#include "t.h"
#include "tests.h"
#include "ft_pbkdf2.h"
#include "ft_sha.h"
static int init_hmac_sha256_ctx()
{