diff options
Diffstat (limited to '')
-rw-r--r-- | main.ha | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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)!; }; |