Home
last modified time | relevance | path

Searched refs:SAFE_ALLOC (Results 1 – 25 of 32) sorted by relevance

12

/external/epid-sdk/epid/common/math/src/
Dfinitefield.c111 ipp_finitefield_ctx = (IppsGFpState*)SAFE_ALLOC(state_size_in_bytes); in NewFiniteField()
139 finitefield_ptr = (FiniteField*)SAFE_ALLOC(sizeof(FiniteField)); in NewFiniteField()
197 ipp_finitefield_ctx = (IppsGFpState*)SAFE_ALLOC(state_size_in_bytes); in NewFiniteFieldViaBinomalExtension()
219 finitefield_ptr = (FiniteField*)SAFE_ALLOC(sizeof(FiniteField)); in NewFiniteFieldViaBinomalExtension()
227 (IppOctStr)SAFE_ALLOC(ground_field->element_len * sizeof(Ipp32u)); in NewFiniteFieldViaBinomalExtension()
311 ipp_finitefield_ctx = (IppsGFpState*)SAFE_ALLOC(state_size_in_bytes); in NewFiniteFieldViaPolynomialExtension()
316 ff_elems = (FfElement**)SAFE_ALLOC(sizeof(FfElement*) * degree); in NewFiniteFieldViaPolynomialExtension()
322 (IppsGFpElement**)SAFE_ALLOC(sizeof(IppsGFpElement*) * degree); in NewFiniteFieldViaPolynomialExtension()
363 finitefield_ptr = (FiniteField*)SAFE_ALLOC(sizeof(FiniteField)); in NewFiniteFieldViaPolynomialExtension()
433 ipp_ff_elem = (IppsGFpElement*)SAFE_ALLOC(ctxsize); in NewFfElement()
[all …]
Decdsa_sign.c75 ec_ctx = (IppsECCPState*)SAFE_ALLOC(ctxsize); in EcdsaSignBuffer()
142 ecp_eph_public = (IppsECCPPointState*)SAFE_ALLOC(ctxsize); in EcdsaSignBuffer()
Decgroup.c93 grp = (EcGroup*)SAFE_ALLOC(sizeof(EcGroup)); in NewEcGroup()
99 state = (IppsGFpECState*)SAFE_ALLOC(stateSize); in NewEcGroup()
144 scratch_buffer = (OctStr)SAFE_ALLOC(scratch_size); in NewEcGroup()
209 ec_pt_context = (IppsGFpECPoint*)SAFE_ALLOC(sizeInBytes); in NewEcPoint()
223 ecpoint = SAFE_ALLOC(sizeof(EcPoint)); in NewEcPoint()
950 hash_buf = SAFE_ALLOC(hash_buf_size); in Epid11EcHash()
Decdsa_verify.c164 ec_state = (IppsECCPState*)SAFE_ALLOC(size); in NewSecp256r1Curve()
207 point = (IppsECCPPointState*)SAFE_ALLOC(size); in NewCurvePoint()
Dbignum.c51 ipp_bn_ctx = (IppsBigNumState*)SAFE_ALLOC(ctxsize); in NewBigNum()
67 bn = (BigNum*)SAFE_ALLOC(sizeof(BigNum)); in NewBigNum()
/external/epid-sdk/epid/common/src/
Dmemory.h83 #if !defined(SAFE_ALLOC)
85 #define SAFE_ALLOC(size) EpidAlloc(size); macro
Dgrouppubkey.c32 pubkey = SAFE_ALLOC(sizeof(GroupPubKey_)); in CreateGroupPubKey()
Dstack.c34 *stack = SAFE_ALLOC(sizeof(Stack)); in CreateStack()
Dcommitment.c95 t3mconcat_buf = SAFE_ALLOC(t3mconcat_size); in CalculateCommitmentHash()
/external/epid-sdk/epid/member/src/
Dallowed_basenames.c39 new_container = SAFE_ALLOC(sizeof(AllowedBasenames)); in CreateBasenames()
80 newnode = SAFE_ALLOC(sizeof(AllowedBasename) + (length - 1)); in AllowBasename()
Dnrprove_commitment.c71 commit_values = SAFE_ALLOC(commit_len); in HashNrProveCommitment()
Dnrprove.c139 s2 = SAFE_ALLOC(basename_len + sizeof(i)); in EpidNrProve()
222 digest = SAFE_ALLOC(digest_len); in EpidNrProve()
Dprivateexp.c59 digest = SAFE_ALLOC(digest_len); in EpidPrivateExp()
Dsignbasic.c132 p2x = (struct p2x_t*)SAFE_ALLOC(sizeof(struct p2x_t) + basename_len - 1); in EpidSignBasic()
254 digest = (uint8_t*)SAFE_ALLOC(digest_size); in EpidSignBasic()
Djoin.c113 digest = (uint8_t*)SAFE_ALLOC(digest_size); in EpidCreateJoinRequest()
/external/webp/src/enc/
Dpicture_csp_enc.c439 #define SAFE_ALLOC(W, H, T) ((T*)WebPSafeMalloc((W) * (H), sizeof(T))) macro
456 fixed_y_t* const tmp_buffer = SAFE_ALLOC(w * 3, 2, fixed_y_t); // scratch in PreprocessARGB()
457 fixed_y_t* const best_y_base = SAFE_ALLOC(w, h, fixed_y_t); in PreprocessARGB()
458 fixed_y_t* const target_y_base = SAFE_ALLOC(w, h, fixed_y_t); in PreprocessARGB()
459 fixed_y_t* const best_rgb_y = SAFE_ALLOC(w, 2, fixed_y_t); in PreprocessARGB()
460 fixed_t* const best_uv_base = SAFE_ALLOC(uv_w * 3, uv_h, fixed_t); in PreprocessARGB()
461 fixed_t* const target_uv_base = SAFE_ALLOC(uv_w * 3, uv_h, fixed_t); in PreprocessARGB()
462 fixed_t* const best_rgb_uv = SAFE_ALLOC(uv_w * 3, 1, fixed_t); in PreprocessARGB()
565 #undef SAFE_ALLOC
/external/epid-sdk/epid/verifier/src/
Dcontext.c124 verifier_ctx = SAFE_ALLOC(sizeof(VerifierCtx)); in EpidVerifierCreate()
377 verifier_rl = SAFE_ALLOC(ver_rl_size); in EpidVerifierSetVerifierRl()
469 ver_rl = SAFE_ALLOC(sizeof(VerifierRl)); in EpidBlacklistSig()
568 basename_buffer = SAFE_ALLOC(basename_len); in EpidVerifierSetBasename()
/external/epid-sdk/epid/common/1.1/src/
Dgrouppubkey.c40 pubkey = SAFE_ALLOC(sizeof(Epid11GroupPubKey_)); in CreateEpid11GroupPubKey()
Dcommitment.c105 t4mconcat_buf = SAFE_ALLOC(t4mconcat_size); in CalculateEpid11CommitmentHash()
/external/epid-sdk/epid/common-testhelper/
Doctstr-testhelper.cc61 ipp_bn_ctx = (IppsBigNumState*)SAFE_ALLOC(bignum_ctx_size); in create_BigNum()
/external/epid-sdk/epid/member/tpm2/src/
Dcontext.c46 tpm_ctx = SAFE_ALLOC(sizeof(Tpm2Ctx)); in Tpm2CreateContext()
Dnv.c126 ctx->nv[index].data = SAFE_ALLOC(ctx->nv[index].data_size); in Tpm2NvWrite()
/external/epid-sdk/epid/member/tpm2/ibm_tss/
Dcontext.c73 tpm_ctx = SAFE_ALLOC(sizeof(Tpm2Ctx)); in Tpm2CreateContext()
/external/epid-sdk/epid/verifier/1.1/src/
Dcontext.c124 verifier_ctx = SAFE_ALLOC(sizeof(Epid11VerifierCtx)); in Epid11VerifierCreate()
332 basename_buffer = SAFE_ALLOC(basename_len); in Epid11VerifierSetBasename()
Dnrverify.c99 commit_values = SAFE_ALLOC(commit_len); in Epid11NrVerify()

12