/* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "str.h"
#include "password-scheme.h"
#include "hex-binary.h"
#include "hash-method.h"
#include "pkcs5.h"
static void
{
}
void pbkdf2_generate(const char *plaintext, const struct password_generate_params *params ATTR_UNUSED,
{
const char *salt;
if (rounds == 0)
}
const char **error_r)
{
const char *const *fields;
const char *salt;
unsigned int rounds;
/* $1$salt$rounds$hash */
*error_r = "Invalid PBKDF2 passdb entry prefix";
return -1;
}
*error_r = "Invalid PBKDF2 passdb entry format";
return -1;
}
*error_r = "PBKDF2 hash not 160bit hex-encoded";
return -1;
}
}