Lines Matching refs:pubkey
27 GroupPubKey_* pubkey = NULL; in CreateGroupPubKey() local
32 pubkey = SAFE_ALLOC(sizeof(GroupPubKey_)); in CreateGroupPubKey()
33 if (!pubkey) { in CreateGroupPubKey()
37 result = NewEcPoint(G1, &pubkey->h1); in CreateGroupPubKey()
42 ReadEcPoint(G1, &pub_key_str->h1, sizeof(pub_key_str->h1), pubkey->h1); in CreateGroupPubKey()
46 result = NewEcPoint(G1, &pubkey->h2); in CreateGroupPubKey()
51 ReadEcPoint(G1, &pub_key_str->h2, sizeof(pub_key_str->h2), pubkey->h2); in CreateGroupPubKey()
55 result = NewEcPoint(G2, &pubkey->w); in CreateGroupPubKey()
60 ReadEcPoint(G2, &pub_key_str->w, sizeof(pub_key_str->w), pubkey->w); in CreateGroupPubKey()
64 pubkey->gid = pub_key_str->gid; in CreateGroupPubKey()
65 *pub_key = pubkey; in CreateGroupPubKey()
69 if (kEpidNoErr != result && pubkey) { in CreateGroupPubKey()
70 DeleteEcPoint(&pubkey->w); in CreateGroupPubKey()
71 DeleteEcPoint(&pubkey->h2); in CreateGroupPubKey()
72 DeleteEcPoint(&pubkey->h1); in CreateGroupPubKey()
73 SAFE_FREE(pubkey); in CreateGroupPubKey()