#include "scrypt.h"
#include "util.h"
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <openssl/sha.h>
Go to the source code of this file.
|
#define | ROTL(a, b) (((a) << (b)) | ((a) >> (32 - (b)))) |
|
|
void | 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. More...
|
|
void | scrypt_1024_1_1_256_sp_generic (const char *input, char *output, char *scratchpad) |
|
void | scrypt_1024_1_1_256 (const char *input, char *output) |
|
#define ROTL |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) << (b)) | ((a) >> (32 - (b)))) |
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 137 of file scrypt.cpp.
void scrypt_1024_1_1_256 |
( |
const char * |
input, |
|
|
char * |
output |
|
) |
| |
void scrypt_1024_1_1_256_sp_generic |
( |
const char * |
input, |
|
|
char * |
output, |
|
|
char * |
scratchpad |
|
) |
| |