# HG changeset patch # User kostya # Date 1247124543 0 # Node ID e426c6e3a78ab26b1b5a1d7b7d03fd495fc871e3 # Parent 88d366bd895e46fa23016aaed33ac7015e24f5e3 Rename function to sha1_transform so it won't be confused with SHA-2 transform when it's added. diff -r 88d366bd895e -r e426c6e3a78a sha1.c --- a/sha1.c Thu Jul 09 07:23:43 2009 +0000 +++ b/sha1.c Thu Jul 09 07:29:03 2009 +0000 @@ -49,7 +49,7 @@ /* Hash a single 512-bit block. This is the core of the algorithm. */ -static void transform(uint32_t state[5], const uint8_t buffer[64]) +static void sha1_transform(uint32_t state[5], const uint8_t buffer[64]) { uint32_t block[80]; unsigned int i, a, b, c, d, e; @@ -134,7 +134,7 @@ ctx->state[2] = 0x98BADCFE; ctx->state[3] = 0x10325476; ctx->state[4] = 0xC3D2E1F0; - ctx->transform = transform; + ctx->transform = sha1_transform; ctx->count = 0; }