Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
pbkdf2.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2019 Freie Universität Berlin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
22
#ifndef HASHES_PBKDF2_H
23
#define HASHES_PBKDF2_H
24
25
#include "
hashes/sha256.h
"
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
36
#define PBKDF2_KEY_SIZE SHA256_DIGEST_LENGTH
37
50
void
pbkdf2_sha256
(
const
void
*password,
size_t
password_len,
51
const
void
*salt,
size_t
salt_len,
52
int
iterations,
53
uint8_t *output);
54
55
#ifdef __cplusplus
56
}
57
#endif
58
59
#endif
/* HASHES_PBKDF2_H */
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 Sat Nov 16 2024 04:50:52 by
1.9.8