#include <sys/types.h>
#include <stdint.h>
Go to the source code of this file.
|
void | libscrypt_SHA256_Init (SHA256_CTX *) |
|
void | libscrypt_SHA256_Update (SHA256_CTX *, const void *, size_t) |
|
void | libscrypt_SHA256_Final (unsigned char[], SHA256_CTX *) |
|
void | libscrypt_HMAC_SHA256_Init (HMAC_SHA256_CTX *, const void *, size_t) |
|
void | libscrypt_HMAC_SHA256_Update (HMAC_SHA256_CTX *, const void *, size_t) |
|
void | libscrypt_HMAC_SHA256_Final (unsigned char[], HMAC_SHA256_CTX *) |
|
void | libscrypt_PBKDF2_SHA256 (const uint8_t *, size_t, const uint8_t *, size_t, uint64_t, uint8_t *, size_t) |
| PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, c, buf, dkLen): Compute PBKDF2(passwd, salt, c, dkLen) using HMAC-SHA256 as the PRF, and write the output to buf. More...
|
|
void libscrypt_HMAC_SHA256_Init |
( |
HMAC_SHA256_CTX * |
, |
|
|
const void * |
, |
|
|
size_t |
|
|
) |
| |
void libscrypt_HMAC_SHA256_Update |
( |
HMAC_SHA256_CTX * |
, |
|
|
const void * |
, |
|
|
size_t |
|
|
) |
| |
void libscrypt_PBKDF2_SHA256 |
( |
const uint8_t * |
passwd, |
|
|
size_t |
passwdlen, |
|
|
const uint8_t * |
salt, |
|
|
size_t |
saltlen, |
|
|
uint64_t |
c, |
|
|
uint8_t * |
buf, |
|
|
size_t |
dkLen |
|
) |
| |
PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, c, buf, dkLen): Compute PBKDF2(passwd, salt, c, dkLen) using HMAC-SHA256 as the PRF, and write the output to buf.
The value dkLen must be at most 32 * (2^32 - 1).
Definition at line 362 of file sha256.c.
void libscrypt_SHA256_Final |
( |
unsigned |
char[], |
|
|
SHA256_CTX * |
|
|
) |
| |
void libscrypt_SHA256_Update |
( |
SHA256_CTX * |
, |
|
|
const void * |
, |
|
|
size_t |
|
|
) |
| |