The Battle for Wesnoth  1.13.11+dev
Functions
bcrypt.c File Reference
#include <stddef.h>
#include <string.h>
#include "bcrypt.h"
#include "crypt_blowfish/ow-crypt.h"
Include dependency graph for bcrypt.c:

Go to the source code of this file.

Functions

static int timing_safe_strcmp (const char *str1, const char *str2)
 
int bcrypt_hashpw (const char *passwd, const char salt[BCRYPT_HASHSIZE], char hash[BCRYPT_HASHSIZE])
 
int bcrypt_checkpw (const char *passwd, const char hash[BCRYPT_HASHSIZE])
 

Function Documentation

◆ bcrypt_checkpw()

int bcrypt_checkpw ( const char *  passwd,
const char  hash[BCRYPT_HASHSIZE] 
)

Definition at line 68 of file bcrypt.c.

◆ bcrypt_hashpw()

int bcrypt_hashpw ( const char *  passwd,
const char  salt[BCRYPT_HASHSIZE],
char  hash[BCRYPT_HASHSIZE] 
)

Definition at line 61 of file bcrypt.c.

◆ timing_safe_strcmp()

static int timing_safe_strcmp ( const char *  str1,
const char *  str2 
)
static

Definition at line 35 of file bcrypt.c.