Lines Matching refs:hash
47 #include <crypto/internal/hash.h>
82 u32 hash[MD5_HASH_WORDS];
101 /*! \fn static void md5_transform(u32 *hash, u32 const *in)
104 * \param hash current hash value
107 static void md5_transform(struct md5_ctx *mctx, u32 *hash, u32 const *in)
116 hashs->D1R = endian_swap(*((u32 *) hash + 0));
117 hashs->D2R = endian_swap(*((u32 *) hash + 1));
118 hashs->D3R = endian_swap(*((u32 *) hash + 2));
119 hashs->D4R = endian_swap(*((u32 *) hash + 3));
132 *((u32 *) hash + 0) = endian_swap (hashs->D1R);
133 *((u32 *) hash + 1) = endian_swap (hashs->D2R);
134 *((u32 *) hash + 2) = endian_swap (hashs->D3R);
135 *((u32 *) hash + 3) = endian_swap (hashs->D4R);
150 md5_transform(ctx, ctx->hash, ctx->block);
161 volatile struct deu_hash_t *hash = (struct deu_hash_t *) HASH_START;
163 hash->controlr.ENDI = 0;
164 hash->controlr.SM = 1;
165 hash->controlr.ALGO = 1; // 1 = md5 0 = sha1
166 hash->controlr.INIT = 1; // Initialize the hash operation by writing a '1' to the INIT bit.
243 md5_transform(mctx, mctx->hash, mctx->block);