aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-06-29 08:00:00 +0800
committerRunxi Yu <me@runxiyu.org>2024-06-29 08:00:00 +0800
commitc9607bbd49e0534aee86c9d1a8cd9faed45c4cb7 (patch)
treee9910dd419da2f5a54a8a6ce4d91c5c6c02dc3db
parentBinary :P (diff)
downloadrwglmp-master.tar.gz
rwglmp-master.zip
Comment out unnecessary Hare codeHEADmaster
-rw-r--r--main.ha16
1 files changed, 8 insertions, 8 deletions
diff --git a/main.ha b/main.ha
index 9d8301c..9961551 100644
--- a/main.ha
+++ b/main.ha
@@ -12,22 +12,22 @@ export fn main() void = {
let pub1: [32]u8 = [0...];
let priv2: [32]u8 = [0x5d, 0xab, 0x08, 0x7e, 0x62, 0x4a, 0x8a, 0x4b, 0x79, 0xe1, 0x7f, 0x8b, 0x83, 0x80, 0x0e, 0xe6, 0x6f, 0x3b, 0xb1, 0x29, 0x26, 0x18, 0xb6, 0xfd, 0x1c, 0x2f, 0x8b, 0x27, 0xff, 0x88, 0xe0, 0xeb];
let pub2: [32]u8 = [0...];
- let seed: [32]u8 = [0...];
- random::buffer(seed);
+ // let seed: [32]u8 = [0...];
+ // random::buffer(seed);
// fmt::print("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0")!;
- io::write(os::stdout, seed)!;
+ // io::write(os::stdout, seed)!;
// x25519::newkey(priv1, seed);
x25519::pubkey(pub1, priv1);
- random::buffer(seed);
- fmt::print("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0")!;
- io::write(os::stdout, seed)!;
+ // random::buffer(seed);
+ // fmt::print("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0")!;
+ // io::write(os::stdout, seed)!;
// x25519::newkey(priv2, seed);
x25519::pubkey(pub2, priv2);
x25519::derive(shared_x, priv1, pub2);
x25519::derive(shared_y, priv2, pub1);
- fmt::print("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0")!;
+ // fmt::print("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0")!;
io::write(os::stdout, shared_x)!;
- fmt::print("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0")!;
+ // fmt::print("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0")!;
io::write(os::stdout, shared_y)!;
};