Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Wim Lewis
nettle
Commits
89755c91
Commit
89755c91
authored
Sep 28, 2013
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some whitespace and comment fixes.
parent
0e577b14
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
gcm-aes.c
gcm-aes.c
+0
-1
macros.h
macros.h
+5
-5
sha256.c
sha256.c
+1
-1
sha512.c
sha512.c
+1
-1
No files found.
gcm-aes.c
View file @
89755c91
...
...
@@ -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
);
}
macros.h
View file @
89755c91
...
...
@@ -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 */
sha256.c
View file @
89755c91
...
...
@@ -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
)
...
...
sha512.c
View file @
89755c91
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment