nginx/src/core/ngx_sha1.c


/*
 * Copyright (C) Maxim Dounin
 * Copyright (C) Nginx, Inc.
 *
 * An internal SHA1 implementation.
 */


#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_sha1.h>


static const u_char *ngx_sha1_body(ngx_sha1_t *ctx, const u_char *data,
    size_t size);


void
ngx_sha1_init(ngx_sha1_t *ctx)
{}


void
ngx_sha1_update(ngx_sha1_t *ctx, const void *data, size_t size)
{}


void
ngx_sha1_final(u_char result[20], ngx_sha1_t *ctx)
{}


/*
 * Helper functions.
 */

#define ROTATE(bits, word)

#define F1(b, c, d)
#define F2(b, c, d)
#define F3(b, c, d)

#define STEP(f, a, b, c, d, e, w, t)


/*
 * GET() reads 4 input bytes in big-endian byte order and returns
 * them as uint32_t.
 */

#define GET(n)


/*
 * This processes one or more 64-byte data blocks, but does not update
 * the bit counters.  There are no alignment requirements.
 */

static const u_char *
ngx_sha1_body(ngx_sha1_t *ctx, const u_char *data, size_t size)
{}