Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
pbkdf2.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2019 Freie Universität Berlin
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
22
#include "
hashes/sha256.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
33
#define PBKDF2_KEY_SIZE SHA256_DIGEST_LENGTH
34
47
void
pbkdf2_sha256
(
const
void
*password,
size_t
password_len,
48
const
void
*salt,
size_t
salt_len,
49
int
iterations,
50
uint8_t *output);
51
52
#ifdef __cplusplus
53
}
54
#endif
pbkdf2_sha256
void pbkdf2_sha256(const void *password, size_t password_len, const void *salt, size_t salt_len, int iterations, uint8_t *output)
Create a key from a password and hash using PBKDF2.
sha256.h
Header definitions for the SHA256 hash function.
Generated on Mon Nov 24 2025 18:43:16 by
1.9.1