Skip to content

Commit 37fdcbf

Browse files
committed
style: Use multiple lines for big integer parameters
1 parent 1e6dcf8 commit 37fdcbf

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

w5-mitm_dlog/src/main.rs

+12-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,18 @@ fn find_x(x0: u32, x1: u32, b: u32) -> u64 {
5252
fn main() {
5353
println!("Meet-in-the-Middle Attack (MITM)");
5454

55-
let h = BigUint::parse_bytes(b"3239475104050450443565264378728065788649097520952449527834792452971981976143292558073856937958553180532878928001494706097394108577585732452307673444020333", 10).unwrap();
56-
let g = BigUint::parse_bytes(b"11717829880366207009516117596335367088558084999998952205599979459063929499736583746670572176471460312928594829675428279466566527115212748467589894601965568", 10).unwrap();
57-
let p = BigUint::parse_bytes(b"13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569946433649006084171", 10).unwrap();
55+
let h = BigUint::parse_bytes(b"3239475104050450443565264378728065788649\
56+
0975209524495278347924529719819761432925\
57+
5807385693795855318053287892800149470609\
58+
7394108577585732452307673444020333", 10).unwrap();
59+
let g = BigUint::parse_bytes(b"1171782988036620700951611759633536708855\
60+
8084999998952205599979459063929499736583\
61+
7466705721764714603129285948296754282794\
62+
66566527115212748467589894601965568", 10).unwrap();
63+
let p = BigUint::parse_bytes(b"1340780792994259709957402499820584612747\
64+
9365820592393377723561443721764030073546\
65+
9768018742981669034276900318581864860508\
66+
53753882811946569946433649006084171", 10).unwrap();
5867
let b = 2u32.pow(20);
5968

6069
let table = build_table(&h, &g, &p, b);

0 commit comments

Comments
 (0)