mirror of
https://github.com/hanzoai/lastpass-mcp.git
synced 2026-11-14 21:30:44 +00:00
15 lines
423 B
C
15 lines
423 B
C
#ifndef KDF_H
|
|
#define KDF_H
|
|
|
|
#include <sys/types.h>
|
|
#include <openssl/sha.h>
|
|
|
|
#define KDF_HASH_LEN SHA256_DIGEST_LENGTH
|
|
#define KDF_HEX_LEN (KDF_HASH_LEN * 2 + 1)
|
|
#define MINIMUM_ITERATIONS 2
|
|
|
|
void kdf_login_key(const char *username, const char *password, int iterations, char hex[KDF_HEX_LEN]);
|
|
void kdf_decryption_key(const char *username, const char *password, int iterations, unsigned char hash[KDF_HASH_LEN]);
|
|
|
|
#endif
|