diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-03-12 19:53:34 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-14 21:03:28 -0300 |
commit | d38b6933e2b7a156a1a800dc77e046104cfd57b0 (patch) | |
tree | a5e3d98f24a2c27ee267e3092a73a9dd9772b470 /src/sha256.c | |
parent | 8b498d94d86518da3cdda2d2664843d3b7f403d2 (diff) | |
download | rneovim-d38b6933e2b7a156a1a800dc77e046104cfd57b0.tar.gz rneovim-d38b6933e2b7a156a1a800dc77e046104cfd57b0.tar.bz2 rneovim-d38b6933e2b7a156a1a800dc77e046104cfd57b0.zip |
Replace UINT32_T by uint32_t
Diffstat (limited to 'src/sha256.c')
-rw-r--r-- | src/sha256.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sha256.c b/src/sha256.c index 0aaf07d5e5..1a3216fc17 100644 --- a/src/sha256.c +++ b/src/sha256.c @@ -27,10 +27,10 @@ static void sha256_process(context_sha256_T *ctx, char_u data[64]); #define GET_UINT32(n, b, i) \ { \ - (n) = ( (UINT32_T)(b)[(i) ] << 24) \ - | ( (UINT32_T)(b)[(i) + 1] << 16) \ - | ( (UINT32_T)(b)[(i) + 2] << 8) \ - | ( (UINT32_T)(b)[(i) + 3] ); \ + (n) = ( (uint32_t)(b)[(i) ] << 24) \ + | ( (uint32_t)(b)[(i) + 1] << 16) \ + | ( (uint32_t)(b)[(i) + 2] << 8) \ + | ( (uint32_t)(b)[(i) + 3] ); \ } #define PUT_UINT32(n,b,i) \ @@ -58,8 +58,8 @@ void sha256_start(context_sha256_T *ctx) static void sha256_process(context_sha256_T *ctx, char_u data[64]) { - UINT32_T temp1, temp2, W[64]; - UINT32_T A, B, C, D, E, F, G, H; + uint32_t temp1, temp2, W[64]; + uint32_t A, B, C, D, E, F, G, H; GET_UINT32(W[0], data, 0); GET_UINT32(W[1], data, 4); @@ -187,9 +187,9 @@ static void sha256_process(context_sha256_T *ctx, char_u data[64]) ctx->state[7] += H; } -void sha256_update(context_sha256_T *ctx, char_u *input, UINT32_T length) +void sha256_update(context_sha256_T *ctx, char_u *input, uint32_t length) { - UINT32_T left, fill; + uint32_t left, fill; if (length == 0) return; @@ -230,8 +230,8 @@ static char_u sha256_padding[64] = { void sha256_finish(context_sha256_T *ctx, char_u digest[32]) { - UINT32_T last, padn; - UINT32_T high, low; + uint32_t last, padn; + uint32_t high, low; char_u msglen[8]; high = (ctx->total[0] >> 29) | (ctx->total[1] << 3); |