aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);