Apache HTTPD
Functions
uuid.c File Reference
#include <stdio.h>
#include "apr.h"
#include "apr_uuid.h"
#include "apr_errno.h"
#include "apr_lib.h"

Go to the source code of this file.

Functions

 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.
 
static unsigned char parse_hexpair (const char *s)
 
 APU_DECLARE (apr_status_t)
 

Function Documentation

◆ APU_DECLARE() [1/2]

APU_DECLARE ( int  )

Most DBM libraries take a POSIX mode for creating files. Don't trust the mode_t type, some platforms may not support it, int is safe.

< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.

Definition at line 94 of file uuid.c.

◆ APU_DECLARE() [2/2]

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 25 of file uuid.c.

◆ parse_hexpair()

static unsigned char parse_hexpair ( const char s)
static

Definition at line 37 of file uuid.c.