Skip to content

Commit

Permalink
indent
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancdotorg committed Jul 16, 2021
1 parent a0ecbd3 commit 1e164f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/md/hash.c.in
Expand Up @@ -244,9 +244,9 @@ void HASH(Bswap)(uintWS_t data[], uint64_t nblk) {
/* do nothing */
#else
for (const uintWS_t *end=data+nblk*HASH_BLOCK_WORDS; data < end; data += HASH_BLOCK_WORDS) {
#define _BSWAP(n, _) data[n] = htoDeWS(data[n])
#define _BSWAP(n, _) data[n] = htoDeWS(data[n])
REPEAT_WITH_COUNTER(HASH_BLOCK_WORDS, SEMICOLON, _BSWAP);
#undef _BSWAP
#undef _BSWAP
}
#endif
}
Expand Down
8 changes: 4 additions & 4 deletions src/md/hmac.c.in
Expand Up @@ -95,9 +95,9 @@ void HMAC_Init(HMAC_CTX *ctx, const void *key, size_t len) {
((uint64_t *)ctx->data)[(HASH_WORD_SIZE/4)-1] = htoDe64(len*8);
HASH(Transform)(state, ctx->data, 1);
h(ifndef NATIVE_ENDIAN)
#define _BSWAP(n, _) state[n] = htoDeWS(state[n])
#define _BSWAP(n, _) state[n] = htoDeWS(state[n])
REPEAT_WITH_COUNTER(HASH_STATE_WORDS, SEMICOLON, _BSWAP);
#undef _BSWAP
#undef _BSWAP
h(endif)

// generate ipad
Expand Down Expand Up @@ -190,9 +190,9 @@ h(else)
h(endif)

h(ifndef NATIVE_ENDIAN)
#define _BSWAP(n, _) ctx->state[n] = htoDeWS(ctx->state[n])
#define _BSWAP(n, _) ctx->state[n] = htoDeWS(ctx->state[n])
REPEAT_WITH_COUNTER(HASH_STATE_WORDS, SEMICOLON, _BSWAP);
#undef _BSWAP
#undef _BSWAP
h(endif)
memcpy(ctx->hmac + HASH_BLOCK_LENGTH, ctx->state, HASH_DIGEST_LENGTH);

Expand Down

0 comments on commit 1e164f4

Please sign in to comment.