Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Typedefs | Functions
sha256.h File Reference
#include <sys/types.h>
#include <stdint.h>
Include dependency graph for sha256.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  libscrypt_SHA256Context
 
struct  libscrypt_HMAC_SHA256Context
 

Typedefs

typedef struct libscrypt_SHA256Context SHA256_CTX
 
typedef struct libscrypt_HMAC_SHA256Context HMAC_SHA256_CTX
 

Functions

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

Typedef Documentation

Function Documentation

void libscrypt_HMAC_SHA256_Final ( unsigned  char[],
HMAC_SHA256_CTX  
)
void libscrypt_HMAC_SHA256_Init ( HMAC_SHA256_CTX ,
const void *  ,
size_t   
)

Definition at line 294 of file sha256.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void libscrypt_HMAC_SHA256_Update ( HMAC_SHA256_CTX ,
const void *  ,
size_t   
)

Definition at line 330 of file sha256.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

void libscrypt_SHA256_Final ( unsigned  char[],
SHA256_CTX  
)
void libscrypt_SHA256_Init ( SHA256_CTX )

Definition at line 214 of file sha256.c.

Here is the caller graph for this function:

void libscrypt_SHA256_Update ( SHA256_CTX ,
const void *  ,
size_t   
)

Definition at line 233 of file sha256.c.

Here is the call graph for this function:

Here is the caller graph for this function: