[INFO]: 🎯  Checking for the Wasm target...
    Finished dev [unoptimized + debuginfo] target(s) in 0.10s
[INFO]: ⬇️  Installing wasm-bindgen...
    Finished test [unoptimized + debuginfo] target(s) in 0.08s
     Running unittests src/lib.rs (target/wasm32-unknown-unknown/debug/deps/sra_wasm-1fd042c198bc633a.wasm)
Set timeout to 20 seconds...
running 5 tests                                   




===================
d1 = 29, d2 = 31
e1 = 5, e2 = 7
n = 91
Message = 5
===================
cipher: 31 cipher bits: 5
Cipher result (after Alice encrypt): 31
cipher: 73 cipher bits: 7
Cipher result (after Bob encrypt): 73
===================
message: 31 message bits: 5
Cipher result (After Bob decrypt): 31
message: 5 message bits: 3
Cipher result (After Alice decrypt): 5
A -> B -> B -> A: 5
message: 47 message bits: 6
Cipher result (After Alice decrypt): 47
message: 5 message bits: 3
Cipher result (After Bob decrypt): 5
A -> B -> A -> B: 5
test sra_wasm::tests::test_sra_mock ... ok



===================
phi = 2353077144 n = 2353178119
===================
e1 = 309215959 d1 = 1547433103
e2 = 186842767 d2 = 1883967559
n = 2353178119
Message = 63
===================
cipher: 1977771011 cipher bits: 31
  Cipher result (after Alice encrypt): 1977771011
cipher: 823473299 cipher bits: 30
  Cipher result (after Bob encrypt): 823473299
message: 1977771011 message bits: 31
  Cipher result (After Bob decrypt): 1977771011
message: 63 message bits: 6
  Cipher result (After Alice decrypt): 63
A -> B -> B -> A: 63
message: 519945102 message bits: 29
  Cipher result (After Alice decrypt): 519945102
message: 63 message bits: 6
  Cipher result (After Bob decrypt): 63
A -> B -> A -> B: 63
test sra_wasm::tests::test_sra ... ok



===================
deck_e [["554853811u32", "390711871u32", "392331917u32", "998410001u32", "840396131u32", "1766691631u32", "1361856277u32", "929778139u32", "538628657u32", "1818427577u32", "235656011u32", "971165603u32", "886190833u32", "1839903529u32", "2023100623u32", "539089481u32", "55037791u32", "47418167u32", "1487019067u32", "909699749u32", "921725947u32", "1965145069u32", "633700381u32", "1147656043u32", "1471875413u32", "459684527u32"], ["448491067u32", "1849547809u32", "1447008091u32", "1843698439u32", "438788543u32", "1390256801u32", "1216030009u32", "359153861u32", "2145081479u32", "1178413u32", "1440459743u32", "981893933u32", "1319110307u32", "209489309u32", "56705173u32", "504653299u32", "741066611u32", "795725101u32", "2129423911u32", "2007538697u32", "1414929211u32", "2145611023u32", "962605483u32", "1307603837u32", "181636099u32", "1375588127u32"]]
deck_d [["181074811u32", "1217596351u32", "2755664453u32", "2228205041u32", "2826546251u32", "522214351u32", "896581693u32", "125958739u32", "62682833u32", "498921353u32", "2035576931u32", "2617752587u32", "87756817u32", "3066119449u32", "2353233967u32", "1110609401u32", "2634176671u32", "2612054663u32", "1045112563u32", "2549030189u32", "577238323u32", "564207589u32", "1212028981u32", "2093464387u32", "671636477u32", "1843684943u32"], ["943529203u32", "2685862369u32", "2339650771u32", "1091378359u32", "1923889727u32", "1491553121u32", "2084535049u32", "1164517901u32", "2050019639u32", "548273317u32", "2963024927u32", "1844974757u32", "2740753163u32", "2835616949u32", "2057387197u32", "870467899u32", "1019824571u32", "1094258341u32", "237131671u32", "2063899193u32", "2595129331u32", "1938200047u32", "2107128067u32", "1765095893u32", "2904191659u32", "2423995103u32"]]
===================
===================
phi = 3232919040 n = 3233033723
e = 1001548973 d = 2561632037
phi bits = 32
n bits = 32
e bits = 30
d bits = 32
===================
test sra_wasm::tests::test_generate_key_pair ... ok



===================
phi = 2467578880 n = 2467678657
phi bits = 32
n bits = 32
===================
phi = 2475643360 n = 2475742879
phi bits = 32
n bits = 32
===================
phi = 2724591012 n = 2724697721
phi bits = 32
n bits = 32
===================
phi = 3838872136 n = 3838996099
phi bits = 32
n bits = 32
===================
phi = 3364849620 n = 3364966337
phi bits = 32
n bits = 32
===================
phi = 3314521728 n = 3314636873
phi bits = 32
n bits = 32
===================
phi = 2169855400 n = 2169952111
phi bits = 32
n bits = 32
===================
phi = 2614480200 n = 2614582471
phi bits = 32
n bits = 32
===================
test sra_wasm::tests::test_generate_phi_n ... ok



===================
prime = 48371
bits = 16
===================
prime = 61129
bits = 16
===================
prime = 40277
bits = 16
===================
prime = 63067
bits = 16
===================
prime = 51721
bits = 16
===================
prime = 41999
bits = 16
===================
prime = 37747
bits = 16
===================
test sra_wasm::tests::test_get_fixed_prime ... ok

test result: ok. 5 passed; 0 failed; 0 ignored