]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Some whitespace and comment fixes.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 28 Sep 2013 07:27:58 +0000 (09:27 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 28 Sep 2013 07:29:09 +0000 (09:29 +0200)
gcm-aes.c
macros.h
sha256.c
sha512.c

index db4e968b07caa2cefd49f9301932b3e8bb26bce4..f5f54bc4aaf5c8582821b76dec99a23daa873704 100644 (file)
--- a/gcm-aes.c
+++ b/gcm-aes.c
@@ -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);
-  
 }
index fb814239919f7579f19478a983025964c4d5aa29..091b4f046ebd585622eb1a09a598daba5cd9898d 100644 (file)
--- a/macros.h
+++ b/macros.h
@@ -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 */
index 5b77f9ce77973047cbadcf2d39cb0770112d2c21..276f1351b14ff1a5da72a9c7333f275c47ccbf5c 100644 (file)
--- a/sha256.c
+++ b/sha256.c
@@ -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)
index 65297f33bc68c0375932ec843277d754d0374f89..e52e9cba12bb13c2bfefad1d80aa7d04697787fa 100644 (file)
--- a/sha512.c
+++ b/sha512.c
@@ -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)
 {