OpenVAS Scanner
7.0.0~git
|
Unix SMB/CIFS implementation. Functions to create reasonable random numbers for crypto use. More...
#include "byteorder.h"
#include "md4.h"
#include "proto.h"
#include "smb.h"
#include <pwd.h>
#include <time.h>
#include <unistd.h>
#include <fcntl.h>
Go to the source code of this file.
Macros | |
#define | uint32 uint32_t |
#define | False 0 |
#define | True 1 |
#define | ZERO_STRUCT(x) memset ((char *) &(x), 0, sizeof (x)) |
Typedefs | |
typedef unsigned int | bool |
Functions | |
static void | get_rand_reseed_data_ntlmssp (int *reseed_data) |
static void | do_filehash_ntlmssp (const char *fname, unsigned char *the_hash) |
static int | do_reseed_ntlmssp (bool use_fd, int fd) |
void | generate_random_buffer_ntlmssp (unsigned char *out, int len) |
Variables | |
static unsigned char | smb_arc4_state [258] |
static uint32 | counter |
static bool | done_reseed_ntlmssp = False |
static void(* | reseed_callback_ntlmssp )(int *newseed) |
Unix SMB/CIFS implementation. Functions to create reasonable random numbers for crypto use.
Random number generation.
Definition in file genrand.c.
#define ZERO_STRUCT | ( | x | ) | memset ((char *) &(x), 0, sizeof (x)) |
|
static |
Definition at line 98 of file genrand.c.
References mdfour_ntlmssp().
Referenced by do_reseed_ntlmssp().
|
static |
Definition at line 130 of file genrand.c.
References counter, do_filehash_ntlmssp(), get_rand_reseed_data_ntlmssp(), GetTimeOfDay_ntlmssp(), IVAL, SIVAL, smb_arc4_init_ntlmssp(), smb_arc4_state, timeval(), and uint32.
Referenced by generate_random_buffer_ntlmssp().
void generate_random_buffer_ntlmssp | ( | unsigned char * | out, |
int | len | ||
) |
Definition at line 184 of file genrand.c.
References do_reseed_ntlmssp(), done_reseed_ntlmssp, False, mdfour_ntlmssp(), smb_arc4_crypt_ntlmssp(), smb_arc4_state, and True.
Referenced by LMv2_generate_response_ntlmssp(), ntlmssp_genauth_keyexchg(), ntlmssp_genauth_ntlm2(), and NTLMv2_generate_client_data_ntlmssp().
|
static |
Definition at line 80 of file genrand.c.
References reseed_callback_ntlmssp.
Referenced by do_reseed_ntlmssp().
|
static |
Definition at line 62 of file genrand.c.
Referenced by do_reseed_ntlmssp(), and ftp_log_in().
Definition at line 72 of file genrand.c.
Referenced by generate_random_buffer_ntlmssp().
|
static |
Definition at line 73 of file genrand.c.
Referenced by get_rand_reseed_data_ntlmssp().
|
static |
Definition at line 61 of file genrand.c.
Referenced by do_reseed_ntlmssp(), and generate_random_buffer_ntlmssp().