aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-ecc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/gnunet-ecc.c')
-rw-r--r--src/util/gnunet-ecc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/gnunet-ecc.c b/src/util/gnunet-ecc.c
index 72e50b2a8..02d2020ad 100644
--- a/src/util/gnunet-ecc.c
+++ b/src/util/gnunet-ecc.c
@@ -115,8 +115,7 @@ create_keys (const char *fn, const char *prefix)
115 * n = 5/8 = 0 (bytes) 115 * n = 5/8 = 0 (bytes)
116 * rest = 5%8 = 5 (bits) 116 * rest = 5%8 = 5 (bits)
117 * mask = ~(2**(8 - 5) - 1) = ~(2**3 - 1) = ~(8 - 1) = ~b111 = b11111000 117 * mask = ~(2**(8 - 5) - 1) = ~(2**3 - 1) = ~(8 - 1) = ~b111 = b11111000
118 */ 118 */mask = ~((int) pow (2, 8 - rest) - 1);
119 mask = ~((int) pow (2, 8 - rest) - 1);
120 target_byte = ((unsigned char *) &target_pub)[n] & mask; 119 target_byte = ((unsigned char *) &target_pub)[n] & mask;
121 } 120 }
122 else 121 else
@@ -480,4 +479,5 @@ main (int argc, char *const *argv)
480 return ret; 479 return ret;
481} 480}
482 481
482
483/* end of gnunet-ecc.c */ 483/* end of gnunet-ecc.c */