Lines Matching refs:src
28 NativeBasicSignature const* src) { in BasicSignatureSerialize() argument
30 EFqSerialize(&dest->B, &src->B); in BasicSignatureSerialize()
31 EFqSerialize(&dest->K, &src->K); in BasicSignatureSerialize()
32 EFqSerialize(&dest->T, &src->T); in BasicSignatureSerialize()
33 FpSerialize(&dest->c, &src->c); in BasicSignatureSerialize()
34 FpSerialize(&dest->sx, &src->sx); in BasicSignatureSerialize()
35 FpSerialize(&dest->sf, &src->sf); in BasicSignatureSerialize()
36 FpSerialize(&dest->sa, &src->sa); in BasicSignatureSerialize()
37 FpSerialize(&dest->sb, &src->sb); in BasicSignatureSerialize()
40 SwapNativeAndPortableLayout(dest, sizeof(*dest), src, sizeof(*src)); in BasicSignatureSerialize()
46 BasicSignature const* src) { in BasicSignatureDeserialize() argument
48 EFqDeserialize(&dest->B, &src->B); in BasicSignatureDeserialize()
49 EFqDeserialize(&dest->K, &src->K); in BasicSignatureDeserialize()
50 EFqDeserialize(&dest->T, &src->T); in BasicSignatureDeserialize()
51 FpDeserialize(&dest->c, &src->c); in BasicSignatureDeserialize()
52 FpDeserialize(&dest->sx, &src->sx); in BasicSignatureDeserialize()
53 FpDeserialize(&dest->sf, &src->sf); in BasicSignatureDeserialize()
54 FpDeserialize(&dest->sa, &src->sa); in BasicSignatureDeserialize()
55 FpDeserialize(&dest->sb, &src->sb); in BasicSignatureDeserialize()
56 return src + 1; in BasicSignatureDeserialize()
58 SwapNativeAndPortableLayout(dest, sizeof(*dest), src, sizeof(*src)); in BasicSignatureDeserialize()
59 return src + 1; in BasicSignatureDeserialize()
63 void* GroupPubKeySerialize(GroupPubKey* dest, NativeGroupPubKey const* src) { in GroupPubKeySerialize() argument
65 EFqSerialize(&dest->h1, &src->h1); in GroupPubKeySerialize()
66 EFqSerialize(&dest->h2, &src->h2); in GroupPubKeySerialize()
67 EFq2Serialize(&dest->w, &src->w); in GroupPubKeySerialize()
68 dest->gid = src->gid; in GroupPubKeySerialize()
71 dest->gid = src->gid; in GroupPubKeySerialize()
74 (uint8_t*)src + sizeof(src->gid), sizeof(*src) - sizeof(src->gid)); in GroupPubKeySerialize()
80 GroupPubKey const* src) { in GroupPubKeyDeserialize() argument
82 EFqDeserialize(&dest->h1, &src->h1); in GroupPubKeyDeserialize()
83 EFqDeserialize(&dest->h2, &src->h2); in GroupPubKeyDeserialize()
84 EFq2Deserialize(&dest->w, &src->w); in GroupPubKeyDeserialize()
85 dest->gid = src->gid; in GroupPubKeyDeserialize()
86 return src + 1; in GroupPubKeyDeserialize()
88 dest->gid = src->gid; in GroupPubKeyDeserialize()
91 (uint8_t*)src + sizeof(src->gid), sizeof(*src) - sizeof(src->gid)); in GroupPubKeyDeserialize()
92 return src + 1; in GroupPubKeyDeserialize()
96 void const* PrivKeyDeserialize(NativePrivKey* dest, PrivKey const* src) { in PrivKeyDeserialize() argument
98 EFqDeserialize(&dest->cred.A, &src->A); in PrivKeyDeserialize()
99 FpDeserialize(&dest->cred.x, &src->x); in PrivKeyDeserialize()
100 FpDeserialize(&dest->f, &src->f); in PrivKeyDeserialize()
101 dest->cred.gid = src->gid; in PrivKeyDeserialize()
102 return src + 1; in PrivKeyDeserialize()
104 dest->cred.gid = src->gid; in PrivKeyDeserialize()
107 (uint8_t*)src + sizeof(src->gid), in PrivKeyDeserialize()
108 sizeof(*src) - sizeof(src->gid)); in PrivKeyDeserialize()
109 return src + 1; in PrivKeyDeserialize()
114 MemberPrecomp const* src) { in PreCompDeserialize() argument
116 Fq12Deserialize(&dest->ea2, (Fq12ElemStr*)&src->ea2); in PreCompDeserialize()
117 Fq12Deserialize(&dest->e12, (Fq12ElemStr*)&src->e12); in PreCompDeserialize()
118 Fq12Deserialize(&dest->e22, (Fq12ElemStr*)&src->e22); in PreCompDeserialize()
119 Fq12Deserialize(&dest->e2w, (Fq12ElemStr*)&src->e2w); in PreCompDeserialize()
120 return src + 1; in PreCompDeserialize()
122 SwapNativeAndPortableLayout(dest, sizeof(*dest), src, sizeof(*src)); in PreCompDeserialize()
123 return src + 1; in PreCompDeserialize()
128 MembershipCredential const* src) { in MembershipCredentialDeserialize() argument
130 EFqDeserialize(&dest->A, &src->A); in MembershipCredentialDeserialize()
131 FpDeserialize(&dest->x, &src->x); in MembershipCredentialDeserialize()
132 dest->gid = src->gid; in MembershipCredentialDeserialize()
133 return src + 1; in MembershipCredentialDeserialize()
135 dest->gid = src->gid; in MembershipCredentialDeserialize()
138 (uint8_t*)src + sizeof(src->gid), sizeof(*src) - sizeof(src->gid)); in MembershipCredentialDeserialize()
139 return src + 1; in MembershipCredentialDeserialize()