Searched refs:commit_values (Results 1 – 10 of 10) sorted by relevance
/external/epid-sdk/epid/member/src/ |
D | nrprove_commitment.c | 53 NrProveCommitValues* commit_values = NULL; in HashNrProveCommitment() local 61 ((SIZE_MAX - sizeof(*commit_values)) + sizeof(*commit_values->msg))) in HashNrProveCommitment() 66 sizeof(*commit_values) - sizeof(*commit_values->msg) + msg_len; in HashNrProveCommitment() 71 commit_values = SAFE_ALLOC(commit_len); in HashNrProveCommitment() 72 if (!commit_values) { in HashNrProveCommitment() 77 commit_values->p = params.p; in HashNrProveCommitment() 78 commit_values->g1 = params.g1; in HashNrProveCommitment() 79 commit_values->B = *B_str; in HashNrProveCommitment() 80 commit_values->K = *K_str; in HashNrProveCommitment() 81 commit_values->rlB = sigrl_entry->b; in HashNrProveCommitment() [all …]
|
D | join_commitment.c | 57 JoinPCommitValues commit_values = {0}; in HashJoinCommitment() local 62 commit_values.p = params.p; in HashJoinCommitment() 63 commit_values.g1 = params.g1; in HashJoinCommitment() 64 commit_values.g2 = params.g2; in HashJoinCommitment() 65 commit_values.h1 = pub_key->h1; in HashJoinCommitment() 66 commit_values.h2 = pub_key->h2; in HashJoinCommitment() 67 commit_values.w = pub_key->w; in HashJoinCommitment() 68 commit_values.F = *F_str; in HashJoinCommitment() 69 commit_values.R = *R_str; in HashJoinCommitment() 70 commit_values.NI = *NI; in HashJoinCommitment() [all …]
|
/external/epid-sdk/epid/verifier/1.1/src/ |
D | nrverify.c | 57 Epid11NrVerifyCommitValues* commit_values = NULL; in Epid11NrVerify() local 99 commit_values = SAFE_ALLOC(commit_len); in Epid11NrVerify() 100 if (commit_values == NULL) { in Epid11NrVerify() 146 res = WriteBigNum(ctx->epid11_params->p_tick, sizeof(commit_values->p_tick), in Epid11NrVerify() 147 &commit_values->p_tick); in Epid11NrVerify() 149 if (memcmp(&proof->smu, &commit_values->p_tick, sizeof(FpElemStr)) >= 0 || in Epid11NrVerify() 150 memcmp(&proof->snu, &commit_values->p_tick, sizeof(FpElemStr)) >= 0) { in Epid11NrVerify() 215 if (0 != memcpy_S(&commit_values->msg[0], msg_len, msg, msg_len)) { in Epid11NrVerify() 220 commit_values->g3 = ctx->commit_values.g3; in Epid11NrVerify() 221 commit_values->B = sig->B; in Epid11NrVerify() [all …]
|
D | verifybasic.c | 101 Epid11CommitValues commit_values = ctx->commit_values; in Epid11VerifyBasicSig() local 220 if (memcmp(&sig->sx, &ctx->commit_values.p, sizeof(FpElemStr)) >= 0 || in Epid11VerifyBasicSig() 221 memcmp(&sig->sy, &ctx->commit_values.p, sizeof(FpElemStr)) >= 0 || in Epid11VerifyBasicSig() 222 memcmp(&sig->sa, &ctx->commit_values.p, sizeof(FpElemStr)) >= 0 || in Epid11VerifyBasicSig() 223 memcmp(&sig->sb, &ctx->commit_values.p, sizeof(FpElemStr)) >= 0 || in Epid11VerifyBasicSig() 224 memcmp(&sig->salpha, &ctx->commit_values.p, sizeof(FpElemStr)) >= 0 || in Epid11VerifyBasicSig() 225 memcmp(&sig->sbeta, &ctx->commit_values.p, sizeof(FpElemStr)) >= 0) { in Epid11VerifyBasicSig() 371 &commit_values); in Epid11VerifyBasicSig() 373 res = CalculateEpid11CommitmentHash(&commit_values, msg, (uint32_t)msg_len, in Epid11VerifyBasicSig()
|
D | context.h | 41 Epid11CommitValues commit_values; ///< Hashed values to create commitment member
|
D | context.c | 140 SetKeySpecificEpid11CommitValues(pub_key, &verifier_ctx->commit_values); in Epid11VerifierCreate()
|
/external/epid-sdk/epid/verifier/src/ |
D | nrverify.c | 53 NrVerifyCommitValues* commit_values = NULL; in EpidNrVerify() local 54 size_t const commit_len = sizeof(*commit_values) + msg_len - 1; in EpidNrVerify() 94 commit_values = SAFE_ALLOC(commit_len); in EpidNrVerify() 95 if (commit_values == NULL) { in EpidNrVerify() 202 if (0 != memcpy_S(&commit_values->msg[0], msg_len, msg, msg_len)) { in EpidNrVerify() 207 commit_values->p = ctx->commit_values.p; in EpidNrVerify() 208 commit_values->g1 = ctx->commit_values.g1; in EpidNrVerify() 209 commit_values->b = sig->B; in EpidNrVerify() 210 commit_values->k = sig->K; in EpidNrVerify() 211 commit_values->bp = sigrl_entry->b; in EpidNrVerify() [all …]
|
D | verifybasic.c | 82 CommitValues commit_values = ctx->commit_values; in EpidVerifyBasicSig() local 277 &commit_values); in EpidVerifyBasicSig() 279 res = CalculateCommitmentHash(&commit_values, Fp, ctx->hash_alg, msg, in EpidVerifyBasicSig()
|
D | context.h | 41 CommitValues commit_values; ///< Values that are hashed to create commitment member
|
D | context.c | 149 result = SetKeySpecificCommitValues(pubkey, &verifier_ctx->commit_values); in EpidVerifierCreate()
|