Commit Graph

105 Commits

Author SHA1 Message Date
Kazumune Masaki
484a0ffcd9 wip 2022-06-02 19:25:11 +09:00
Kazumune Masaki
6c6ec030f4 fix FieldElem.pow slowness issue 2022-06-02 15:01:29 +09:00
Kazumune Masaki
215d3d2867 let EcPoint constructor take references 2022-06-02 11:17:14 +09:00
Kazumune Masaki
903942917a add operator overloading for negate 2022-06-02 11:11:39 +09:00
Kazumune Masaki
36a4bc8449 wip 2022-06-02 10:59:59 +09:00
Kazumune Masaki
7d31950435 remove clone() from field calculation 2022-06-02 10:58:13 +09:00
Kazumune Masaki
7864bbe767 use ToBigUint for Field and FieldElem. implement operator overloading for references 2022-06-02 10:38:38 +09:00
Kazumune Masaki
76a1bb5a2c replace div with / 2022-06-02 09:04:12 +09:00
Kazumune Masaki
75d14208a7 replace times w/ * 2022-06-02 08:59:54 +09:00
Kazumune Masaki
b89291505e eod wip 2022-06-01 19:02:25 +09:00
Kazumune Masaki
cfe7c43d26 remove unnecessary f.elem(&xu8) 2022-06-01 18:52:15 +09:00
Kazumune Masaki
79f81a66ff replace sub w/ - 2022-06-01 18:48:04 +09:00
Kazumune Masaki
3200946643 replace sub w/ - (wip) 2022-06-01 18:39:20 +09:00
Kazumune Masaki
e033ee67c3 works so far 2022-06-01 18:37:12 +09:00
Kazumune Masaki
0585adabb1 replace minus w/ - (1) 2022-06-01 18:31:33 +09:00
Kazumune Masaki
6eb90d5c2a rename add -> plus, sub -> minus, mul -> times 2022-06-01 18:28:06 +09:00
Kazumune Masaki
bd84427eba add operator overload for + 2022-06-01 18:11:13 +09:00
Kazumune Masaki
748456b3d2 introduce safe_x to allow inv() and div() w/o unwrap when not needed 2022-06-01 17:51:38 +09:00
Kazumune Masaki
0f72af8f75 implement pow using binary method 2022-06-01 17:31:22 +09:00
Kazumune Masaki
26f0997195 remove mul_u32 function 2022-06-01 15:03:51 +09:00
Kazumune Masaki
99aa2f6d29 merge field and field_elem modules into field module 2022-06-01 14:30:07 +09:00
Kazumune Masaki
38563a8827 clean up field module 2022-06-01 14:25:28 +09:00
Kazumune Masaki
842139d344 clean up field module (wip) 2022-06-01 09:56:30 +09:00
Kazumune Masaki
bcb63082c7 add ed25519_sha512 (wip) 2022-05-31 18:43:17 +09:00
Kazumune Masaki
bb0363a677 remove From<u32> bound from PrimInt 2022-05-30 17:51:34 +09:00
Kazumune Masaki
8a07cd733b specify K and initial hash value directly as numbers 2022-05-30 17:50:04 +09:00
Kazumune Masaki
089ecb3177 rename functions 2022-05-28 11:05:23 +09:00
Kazumune Masaki
fbd76171fa remove unused module 2022-05-28 09:11:23 +09:00
Kazumune Masaki
b8f7e2174f factor out common code from sha256 and sha512 2022-05-28 09:06:49 +09:00
Kazumune Masaki
b5f2d89130 factor out common code from sha256 and sha512 wip 2022-05-27 19:14:38 +09:00
Kazumune Masaki
effeb6fb12 use same helper function names to sha512 in sha256 2022-05-22 18:35:51 +09:00
Kazumune Masaki
1d32b6afe7 add sha512 hasher 2022-05-22 18:34:40 +09:00
Kazumune Masaki
18886c0280 add generic hmac 2022-05-08 12:30:31 +09:00
Kazumune Masaki
b8868df5b1 rename sigma functions 2022-03-25 07:46:29 +09:00
Kazumune Masaki
eef8f43720 update readme 2022-03-24 14:39:28 +09:00
Kazumune Masaki
0cee2ba8e2 update readme 2022-03-24 14:38:05 +09:00
Kazumune Masaki
a54aa2c40c update readme 2022-03-24 06:24:08 +09:00
Kazumune Masaki
fa3c4695a2 wip 2022-03-24 06:22:45 +09:00
Kazumune Masaki
abdb922341 wip 2022-03-23 21:48:08 +09:00
Kazumune Masaki
205b13df66 remove unused lines 2022-03-23 21:43:42 +09:00
Kazumune Masaki
e21d9ca70b drop unneeded tests 2022-03-23 18:57:36 +09:00
Kazumune Masaki
b0927476c1 drop external sha implementation 2022-03-23 18:57:02 +09:00
Kazumune Masaki
acb6e1ab14 wip 2022-03-23 18:56:22 +09:00
Kazumune Masaki
40b55d0964 update readme 2022-03-23 18:38:50 +09:00
Kazumune Masaki
788b4edeb8 add hasher trait. add working sha256 hasher 2022-03-23 18:38:18 +09:00
Kazumune Masaki
e461c06627 wip 2022-03-23 10:21:24 +09:00
Kazumune Masaki
3e93a7b740 make initial hash value and k256 const values 2022-03-23 10:20:32 +09:00
Kazumune Masaki
b5a9d98168 wip 2022-03-22 19:32:39 +09:00
Kazumune Masaki
3a7cad012b add sha256 (wip) 2022-03-21 18:11:00 +09:00
Kazumune Masaki
c04437c95b remove test_ prefix from tests. add sha256 (wip) 2022-03-21 08:12:32 +09:00