Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Macros | Functions
scrypt.h File Reference
#include <stdlib.h>
#include <stdint.h>
Include dependency graph for scrypt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define scrypt_1024_1_1_256_sp(input, output, scratchpad)   scrypt_1024_1_1_256_sp_generic((input), (output), (scratchpad))
 

Functions

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)
 
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...
 

Macro Definition Documentation

#define scrypt_1024_1_1_256_sp (   input,
  output,
  scratchpad 
)    scrypt_1024_1_1_256_sp_generic((input), (output), (scratchpad))

Definition at line 23 of file scrypt.h.

Function Documentation

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.

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 
)

Definition at line 325 of file scrypt.cpp.

void scrypt_1024_1_1_256_sp_generic ( const char *  input,
char *  output,
char *  scratchpad 
)

Definition at line 256 of file scrypt.cpp.