Apache HTTPD
Macros | Functions | Variables
getuuid.c File Reference
#include "apr.h"
#include "apr_uuid.h"
#include "apr_md5.h"
#include "apr_general.h"
#include "apr_portable.h"

Go to the source code of this file.

Macros

#define NODE_LENGTH   6
 

Functions

static void get_random_info (unsigned char node[6])
 
static void get_pseudo_node_identifier (unsigned char *node)
 
static void get_system_time (apr_uint64_t *uuid_time)
 
static int true_random (void)
 
static void init_state (void)
 
static void get_current_time (apr_uint64_t *timestamp)
 
 APU_DECLARE (void)
 Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC.
 

Variables

static int uuid_state_seqnum
 
static unsigned char uuid_state_node [6] = { 0 }
 

Macro Definition Documentation

◆ NODE_LENGTH

#define NODE_LENGTH   6

Definition at line 49 of file getuuid.c.

Function Documentation

◆ APU_DECLARE()

APU_DECLARE ( void  )

Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC.

Return APR-util's version information information in a numeric form.

Parameters
pvsnPointer to a version structure for returning the version information.

Computes SipHash-4-8, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC.

Initialize the SHA digest

Parameters
contextThe SHA context to initialize

Update the SHA digest

Parameters
contextThe SHA1 context to update
inputThe buffer to add to the SHA digest
inputLenThe length of the input buffer

Update the SHA digest with binary data

Parameters
contextThe SHA1 context to update
inputThe buffer to add to the SHA digest
inputLenThe length of the input buffer

Finish computing the SHA digest

Parameters
digestthe output buffer in which to store the digest
contextThe context to finalize
outThe output buffer (or MAC)
srcThe message
lenThe length of the message
keyThe secret key
Returns
The hash value as a 64bit unsigned integer

< use pool pre cleanup

Definition at line 175 of file getuuid.c.

◆ get_current_time()

static void get_current_time ( apr_uint64_t timestamp)
static

Definition at line 146 of file getuuid.c.

◆ get_pseudo_node_identifier()

static void get_pseudo_node_identifier ( unsigned char node)
static

Definition at line 102 of file getuuid.c.

◆ get_random_info()

static void get_random_info ( unsigned char  node[6])
static

Definition at line 55 of file getuuid.c.

◆ get_system_time()

static void get_system_time ( apr_uint64_t uuid_time)
static

Definition at line 108 of file getuuid.c.

◆ init_state()

static void init_state ( void  )
static

Definition at line 140 of file getuuid.c.

◆ true_random()

static int true_random ( void  )
static

Definition at line 120 of file getuuid.c.

Variable Documentation

◆ uuid_state_node

unsigned char uuid_state_node[6] = { 0 }
static

Definition at line 52 of file getuuid.c.

◆ uuid_state_seqnum

int uuid_state_seqnum
static

Definition at line 51 of file getuuid.c.