|
Apache HTTPD
|
#include "apr_sha1.h"#include "apr_base64.h"#include "apr_strings.h"#include "apr_lib.h"#include <string.h>Go to the source code of this file.
Classes | |
| union | endianTest |
Macros | |
| #define | UNROLL_LOOPS |
| #define | USE_MODIFIED_SHA |
| #define | f1(x, y, z) ((x & y) | (~x & z)) |
| #define | f2(x, y, z) (x ^ y ^ z) |
| #define | f3(x, y, z) ((x & y) | (x & z) | (y & z)) |
| #define | f4(x, y, z) (x ^ y ^ z) |
| #define | CONST1 0x5a827999L |
| #define | CONST2 0x6ed9eba1L |
| #define | CONST3 0x8f1bbcdcL |
| #define | CONST4 0xca62c1d6L |
| #define | ROT32(x, n) ((x << n) | (x >> (32 - n))) |
| #define | FUNC(n, i) |
| #define | SHA_BLOCKSIZE 64 |
Functions | |
| static void | sha_transform (apr_sha1_ctx_t *sha_info) |
| static char | isLittleEndian (void) |
| static void | maybe_byte_reverse (apr_uint32_t *buffer, int count) |
| 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. | |
| #define CONST1 0x5a827999L |
Definition at line 69 of file apr_sha1.c.
| #define CONST2 0x6ed9eba1L |
Definition at line 70 of file apr_sha1.c.
| #define CONST3 0x8f1bbcdcL |
Definition at line 71 of file apr_sha1.c.
| #define CONST4 0xca62c1d6L |
Definition at line 72 of file apr_sha1.c.
Definition at line 78 of file apr_sha1.c.
| #define SHA_BLOCKSIZE 64 |
Definition at line 82 of file apr_sha1.c.
| #define UNROLL_LOOPS |
Definition at line 57 of file apr_sha1.c.
| #define USE_MODIFIED_SHA |
Definition at line 60 of file apr_sha1.c.
| 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.
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
| context | The SHA context to initialize |
Update the SHA digest
| context | The SHA1 context to update |
| input | The buffer to add to the SHA digest |
| inputLen | The length of the input buffer |
Update the SHA digest with binary data
| context | The SHA1 context to update |
| input | The buffer to add to the SHA digest |
| inputLen | The length of the input buffer |
Finish computing the SHA digest
| digest | the output buffer in which to store the digest |
| context | The context to finalize |
| out | The output buffer (or MAC) |
| src | The message |
| len | The length of the message |
| key | The secret key |
< use pool pre cleanup
Definition at line 206 of file apr_sha1.c.
Definition at line 172 of file apr_sha1.c.
|
static |
Definition at line 182 of file apr_sha1.c.
|
static |
Definition at line 107 of file apr_sha1.c.