Commit 89755c91 authored by Niels Möller's avatar Niels Möller

Some whitespace and comment fixes.

parent 0e577b14
......@@ -67,5 +67,4 @@ gcm_aes_digest(struct gcm_aes_ctx *ctx,
size_t length, uint8_t *digest)
{
GCM_DIGEST(ctx, aes_encrypt, length, digest);
}
......@@ -108,7 +108,7 @@ do { \
(p)[1] = ((i) >> 8) & 0xff; \
(p)[0] = (i) & 0xff; \
} while (0)
#define LE_READ_UINT32(p) \
( (((uint32_t) (p)[3]) << 24) \
| (((uint32_t) (p)[2]) << 16) \
......@@ -145,7 +145,7 @@ do { \
just 32 - n and 64 - n results in undefined behaviour). Most uses
of these macros use a constant and non-zero rotation count. */
#define ROTL32(n,x) (((x)<<(n)) | ((x)>>((-(n)&31))))
#define ROTL64(n,x) (((x)<<(n)) | ((x)>>((-(n))&63)))
/* Requires that size > 0 */
......@@ -222,8 +222,8 @@ do { \
/* Set the first char of padding to 0x80. This is safe since there \
is always at least one byte free */ \
\
assert(__md_i < sizeof((ctx)->block)); \
(ctx)->block[__md_i++] = 0x80; \
assert(__md_i < sizeof((ctx)->block)); \
(ctx)->block[__md_i++] = 0x80; \
\
if (__md_i > (sizeof((ctx)->block) - (size))) \
{ /* No room for length in this block. Process it and \
......@@ -235,7 +235,7 @@ do { \
} \
memset((ctx)->block + __md_i, 0, \
sizeof((ctx)->block) - (size) - __md_i); \
\
\
} while (0)
#endif /* NETTLE_MACROS_H_INCLUDED */
......@@ -126,7 +126,7 @@ sha256_digest(struct sha256_ctx *ctx,
sha256_init(ctx);
}
/* sha224 variant. FIXME: Move to seperate file? */
/* sha224 variant. */
void
sha224_init(struct sha256_ctx *ctx)
......
......@@ -197,7 +197,7 @@ sha512_digest(struct sha512_ctx *ctx,
sha512_init(ctx);
}
/* sha384 variant. FIXME: Move to separate file? */
/* sha384 variant. */
void
sha384_init(struct sha512_ctx *ctx)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment