D | jpaketest.c | 26 static int run_jpake(JPAKE_CTX *alice, JPAKE_CTX *bob) in run_jpake() argument 38 JPAKE_STEP1_generate(&alice_s1, alice); in run_jpake() 51 if(!JPAKE_STEP1_process(alice, &bob_s1)) in run_jpake() 62 JPAKE_STEP2_generate(&alice_s2, alice); in run_jpake() 75 if(!JPAKE_STEP2_process(alice, &bob_s2)) in run_jpake() 83 showbn("Alice's key", JPAKE_get_shared_key(alice)); in run_jpake() 89 JPAKE_STEP3A_generate(&alice_s3a, alice); in run_jpake() 102 if(!JPAKE_STEP3B_process(alice, &bob_s3b)) in run_jpake() 115 JPAKE_CTX *alice; in main() local 153 alice = JPAKE_CTX_new("Alice", "Bob", p, g, q, secret); in main() [all …]
|