p = helper.gen_prime 32
g = 2n
seca = helper.gen_prime 16
secb = helper.gen_prime 16
a = g ** seca % p
b = g ** secb % p
ka = b ** seca % p
kb = a ** secb % p
console.log "ka", ka.toString(16)
console.log "kb", kb.toString(16)
ka 5df54a61
kb 5df54a61
p = helper.gen_prime 32
g = 2n
p 2827174543
g 2
seca = helper.gen_prime 16
a = g ** seca % p
seca 33757
a 866fb924
secb = helper.gen_prime 16
b = g ** secb % p
secb 54361
b 41fd543f
ka = b ** seca % p
ka 29ad564a
kb = a ** secb % p
kb 29ad564a