aboutsummaryrefslogtreecommitdiff
path: root/sand-leek.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-09-20 21:06:57 +1200
committerDavid Phillips <david@sighup.nz>2017-09-20 21:06:57 +1200
commit28e1fc9c3cb33386d7d218d654163e64ba1b48b4 (patch)
tree4fcd46d321a67b7bc26ec4a8afe55f785aeea75c /sand-leek.c
parent9fd396ccaba7ac3d462c8be89f3fb08295ce7e0a (diff)
downloadsand-leek-28e1fc9c3cb33386d7d218d654163e64ba1b48b4.tar.xz
Tidy unnecessary magic constants away
Diffstat (limited to 'sand-leek.c')
-rw-r--r--sand-leek.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sand-leek.c b/sand-leek.c
index 36f9503..7c5ea29 100644
--- a/sand-leek.c
+++ b/sand-leek.c
@@ -89,8 +89,7 @@ work(void *arg) {
free(der_data);
while (e < EXPONENT_MAX) {
- memcpy(&working_sha_c, &sha_c, 10*sizeof(SHA_LONG)); /* FIXME magic */
- working_sha_c.num = sha_c.num;
+ memcpy(&working_sha_c, &sha_c, sizeof(SHA_CTX));
e_big_endian = htobe32(e);
SHA1_Update(&working_sha_c, &e_big_endian, EXPONENT_SIZE_BYTES);