Do not ignore errors in crypto backend (LUKS PBKDF2).
[platform/upstream/cryptsetup.git] / lib / luks1 / pbkdf.h
1 #ifndef INCLUDED_CRYPTSETUP_LUKS_PBKDF_H
2 #define INCLUDED_CRYPTSETUP_LUKS_PBKDF_H
3
4 #include <stddef.h>
5
6 int PBKDF2_HMAC(const char *hash,
7                 const char *password, size_t passwordLen,
8                 const char *salt, size_t saltLen, unsigned int iterations,
9                 char *dKey, size_t dKeyLen);
10
11
12 int PBKDF2_performance_check(const char *hash, uint64_t *iter);
13 int PBKDF2_HMAC_ready(const char *hash);
14
15 #endif