18#ifndef _GVM_PASSWORDBASEDAUTHENTICATION_H
19#define _GVM_PASSWORDBASEDAUTHENTICATION_H
22#define MAX_PEPPER_SIZE 4
24#define COUNT_DEFAULT 20000
26#define PREFIX_DEFAULT "$6$"
83 const char *password);
void pba_finalize(struct PBASettings *settings)
Definition: passwordbasedauthentication.c:161
enum pba_rc pba_verify_hash(const struct PBASettings *settings, const char *hash, const char *password)
Definition: passwordbasedauthentication.c:224
char * pba_hash(struct PBASettings *setting, const char *password)
Definition: passwordbasedauthentication.c:177
struct PBASettings * pba_init(const char *pepper, unsigned int pepper_size, unsigned int count, char *prefix)
Definition: passwordbasedauthentication.c:142
pba_rc
Definition: passwordbasedauthentication.h:58
@ ERR
Definition: passwordbasedauthentication.h:62
@ VALID
Definition: passwordbasedauthentication.h:59
@ UPDATE_RECOMMENDED
Definition: passwordbasedauthentication.h:60
@ INVALID
Definition: passwordbasedauthentication.h:61
#define MAX_PEPPER_SIZE
Definition: passwordbasedauthentication.h:22
Definition: passwordbasedauthentication.h:35
char pepper[MAX_PEPPER_SIZE]
Definition: passwordbasedauthentication.h:36
char * prefix
Definition: passwordbasedauthentication.h:38
unsigned int count
Definition: passwordbasedauthentication.h:37