meta: rename to fx
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
*/
|
||||
#include "hash.h"
|
||||
|
||||
#include <blue/core/hash.h>
|
||||
#include <fx/core/hash.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
* This processes one or more 64-byte data blocks, but does NOT update the bit
|
||||
* counters. There are no alignment requirements.
|
||||
*/
|
||||
static const void *body(struct b_hash_ctx *ctx, const void *data, unsigned long size)
|
||||
static const void *body(struct fx_hash_ctx *ctx, const void *data, unsigned long size)
|
||||
{
|
||||
const unsigned char *ptr;
|
||||
uint32_t a, b, c, d;
|
||||
@@ -178,7 +178,7 @@ static const void *body(struct b_hash_ctx *ctx, const void *data, unsigned long
|
||||
return ptr;
|
||||
}
|
||||
|
||||
void md4_init(struct b_hash_ctx *ctx)
|
||||
void md4_init(struct fx_hash_ctx *ctx)
|
||||
{
|
||||
ctx->ctx_state.md4.a = 0x67452301;
|
||||
ctx->ctx_state.md4.b = 0xefcdab89;
|
||||
@@ -189,7 +189,7 @@ void md4_init(struct b_hash_ctx *ctx)
|
||||
ctx->ctx_state.md4.hi = 0;
|
||||
}
|
||||
|
||||
void md4_update(struct b_hash_ctx *ctx, const void *data, unsigned long size)
|
||||
void md4_update(struct fx_hash_ctx *ctx, const void *data, unsigned long size)
|
||||
{
|
||||
uint32_t saved_lo;
|
||||
unsigned long used, available;
|
||||
@@ -229,7 +229,7 @@ void md4_update(struct b_hash_ctx *ctx, const void *data, unsigned long size)
|
||||
(dst)[2] = (unsigned char)((src) >> 16); \
|
||||
(dst)[3] = (unsigned char)((src) >> 24);
|
||||
|
||||
void md4_finish(struct b_hash_ctx *ctx, void *out, size_t max)
|
||||
void md4_finish(struct fx_hash_ctx *ctx, void *out, size_t max)
|
||||
{
|
||||
unsigned char *result = out;
|
||||
unsigned long used, available;
|
||||
@@ -261,7 +261,7 @@ void md4_finish(struct b_hash_ctx *ctx, void *out, size_t max)
|
||||
OUT(&result[12], ctx->ctx_state.md4.d)
|
||||
}
|
||||
|
||||
struct b_hash_function_ops z__b_md4_ops = {
|
||||
struct fx_hash_function_ops z__fx_md4_ops = {
|
||||
.hash_init = md4_init,
|
||||
.hash_update = md4_update,
|
||||
.hash_finish = md4_finish,
|
||||
|
||||
Reference in New Issue
Block a user