Lines Matching full:bob
25 * and Bob want to derive a secret 'x' without sharing the
28 * a generator G. Alice (resp. Bob) generates a private value
30 * Alice (resp. Bob) computes and shares Q_Alice = d_Alice x G
32 * and Bob now both can compute the same point Q such that
56 * where Alice and Bob exchange data.
59 /* Global array holding Alice to Bob public value
68 /* Global array holding Bob to Alice public value
78 static const u8 Bob[] = "Bob"; variable
79 #define CHECK_SIZE LOCAL_MIN(sizeof(Alice), sizeof(Bob))
87 /* The private scalar value for Alice and Bob, as well as their in ECDH_helper()
109 /****** Alice => Bob *********************************************************/ in ECDH_helper()
111 ret = are_equal(role, Bob, CHECK_SIZE, &check2); EG(ret, err); in ECDH_helper()
119 /****** Bob => Alice *********************************************************/ in ECDH_helper()
254 /* Perform ECDH between Alice and Bob! */ in main()
261 if(ECDH_helper(curve_name, Bob) != 1){ in main()
267 * since she was waiting for Bob to send his public data. in main()