6#ifndef _GVM_PASSWORDBASEDAUTHENTICATION_H
7#define _GVM_PASSWORDBASEDAUTHENTICATION_H
10#define MAX_PEPPER_SIZE 4
12#define COUNT_DEFAULT 20000
14#define PREFIX_DEFAULT "$6$"
71 const char *password);
void pba_finalize(struct PBASettings *settings)
Definition passwordbasedauthentication.c:152
enum pba_rc pba_verify_hash(const struct PBASettings *settings, const char *hash, const char *password)
Definition passwordbasedauthentication.c:215
char * pba_hash(struct PBASettings *setting, const char *password)
Definition passwordbasedauthentication.c:168
struct PBASettings * pba_init(const char *pepper, unsigned int pepper_size, unsigned int count, char *prefix)
Definition passwordbasedauthentication.c:133
pba_rc
Definition passwordbasedauthentication.h:46
@ ERR
Definition passwordbasedauthentication.h:50
@ VALID
Definition passwordbasedauthentication.h:47
@ UPDATE_RECOMMENDED
Definition passwordbasedauthentication.h:48
@ INVALID
Definition passwordbasedauthentication.h:49
#define MAX_PEPPER_SIZE
Definition passwordbasedauthentication.h:10
Definition passwordbasedauthentication.h:23
char pepper[MAX_PEPPER_SIZE]
Definition passwordbasedauthentication.h:24
char * prefix
Definition passwordbasedauthentication.h:26
unsigned int count
Definition passwordbasedauthentication.h:25