|
OpenVAS Scanner 23.32.3
|
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) |
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 uint32 uint32_t |
Definition at line 40 of file genrand.c.
Referenced by byteReverse(), copy4_ntlmssp(), copy64_ntlmssp(), do_reseed_ntlmssp(), F(), G(), H(), lshift(), MD5Final(), MD5Transform(), MD5Update(), mdfour64_ntlmssp(), mdfour_ntlmssp(), and simple_packet_signature_ntlmssp().
| #define ZERO_STRUCT | ( | x | ) |
Definition at line 56 of file genrand.c.
Referenced by E_deshash_ntlmssp(), hmac_md5_init_limK_to_64(), and SMBOWFencrypt_ntlmssp().
|
static |
Definition at line 84 of file genrand.c.
References mdfour_ntlmssp().
Referenced by do_reseed_ntlmssp().


|
static |
Definition at line 116 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 170 of file genrand.c.
References do_reseed_ntlmssp(), done_reseed_ntlmssp, False, len, 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 66 of file genrand.c.
References reseed_callback_ntlmssp.
Referenced by do_reseed_ntlmssp().

|
static |
Definition at line 48 of file genrand.c.
Referenced by do_reseed_ntlmssp(), and ftp_log_in().
Definition at line 58 of file genrand.c.
Referenced by generate_random_buffer_ntlmssp().
|
static |
Definition at line 59 of file genrand.c.
Referenced by get_rand_reseed_data_ntlmssp().
|
static |
Definition at line 47 of file genrand.c.
Referenced by do_reseed_ntlmssp(), and generate_random_buffer_ntlmssp().