mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 11:20:10 +01:00
* Add ability to provide pre-generated master key and UUID in LUKS header format. * Add LUKS function to verify master key digest. * Move key slot manuipulation function into LUKS specific code. Signed-off-by: Milan Broz <mbroz@redhat.com> git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@94 36d66b0a-2a48-0410-832c-cd162a569da5
18 lines
396 B
C
18 lines
396 B
C
#ifndef INCLUDED_CRYPTSETUP_LUKS_PBKDF_H
|
|
#define INCLUDED_CRYPTSETUP_LUKS_PBKDF_H
|
|
|
|
#include <stddef.h>
|
|
|
|
/* */
|
|
|
|
int PBKDF2_HMAC(const char *hash,
|
|
const char *password, size_t passwordLen,
|
|
const char *salt, size_t saltLen, unsigned int iterations,
|
|
char *dKey, size_t dKeyLen);
|
|
|
|
|
|
int PBKDF2_performance_check(const char *hash, uint64_t *iter);
|
|
int PBKDF2_HMAC_ready(const char *hash);
|
|
|
|
#endif
|