/external/epid-sdk/epid/member/src/ |
D | nrprove.c | 61 EpidStatus sts = kEpidErr; in EpidNrProve() local 110 sts = NewEcPoint(G1, &B); in EpidNrProve() 111 BREAK_ON_EPID_ERROR(sts); in EpidNrProve() 112 sts = NewEcPoint(G1, &K); in EpidNrProve() 113 BREAK_ON_EPID_ERROR(sts); in EpidNrProve() 114 sts = NewEcPoint(G1, &rlB); in EpidNrProve() 115 BREAK_ON_EPID_ERROR(sts); in EpidNrProve() 116 sts = NewEcPoint(G1, &rlK); in EpidNrProve() 117 BREAK_ON_EPID_ERROR(sts); in EpidNrProve() 118 sts = NewEcPoint(G1, &D); in EpidNrProve() [all …]
|
D | signbasic.c | 49 EpidStatus sts = kEpidErr; in EpidSignBasic() local 111 sts = kEpidBadArgErr; in EpidSignBasic() 112 BREAK_ON_EPID_ERROR(sts); in EpidSignBasic() 116 sts = NewEcPoint(G1, &B); in EpidSignBasic() 117 BREAK_ON_EPID_ERROR(sts); in EpidSignBasic() 118 sts = NewEcPoint(G1, &k); in EpidSignBasic() 119 BREAK_ON_EPID_ERROR(sts); in EpidSignBasic() 120 sts = NewEcPoint(G1, &t); in EpidSignBasic() 121 BREAK_ON_EPID_ERROR(sts); in EpidSignBasic() 122 sts = NewEcPoint(G1, &e); in EpidSignBasic() [all …]
|
D | presig.c | 59 EpidStatus sts = MemberComputePreSig(ctx, &new_presigs[i]); in EpidAddPreSigs() local 60 if (kEpidNoErr != sts) { in EpidAddPreSigs() 63 return sts; in EpidAddPreSigs() 93 EpidStatus sts = kEpidErr; in MemberComputePreSig() local 138 sts = NewFfElement(Fq, &p2y); in MemberComputePreSig() 142 BREAK_ON_EPID_ERROR(sts); in MemberComputePreSig() 143 sts = NewEcPoint(G1, &B); in MemberComputePreSig() 144 BREAK_ON_EPID_ERROR(sts); in MemberComputePreSig() 145 sts = NewEcPoint(G1, &k); in MemberComputePreSig() 146 BREAK_ON_EPID_ERROR(sts); in MemberComputePreSig() [all …]
|
D | validatekey.c | 55 EpidStatus sts = kEpidErr; in EpidMemberIsKeyValid() local 64 sts = EpidMemberInitialProvision(ctx); in EpidMemberIsKeyValid() 65 BREAK_ON_EPID_ERROR(sts); in EpidMemberIsKeyValid() 69 sts = NewEcPoint(G2, &t1); in EpidMemberIsKeyValid() 70 BREAK_ON_EPID_ERROR(sts); in EpidMemberIsKeyValid() 72 sts = EcSscmExp(G2, g2, (BigNumStr const*)x_str, t1); in EpidMemberIsKeyValid() 73 BREAK_ON_EPID_ERROR(sts); in EpidMemberIsKeyValid() 76 sts = NewEcPoint(G2, &w); in EpidMemberIsKeyValid() 77 BREAK_ON_EPID_ERROR(sts); in EpidMemberIsKeyValid() 78 sts = ReadEcPoint(G2, w_str, sizeof(*w_str), w); in EpidMemberIsKeyValid() [all …]
|
D | privateexp.c | 37 EpidStatus sts = kEpidErr; in EpidPrivateExp() local 72 sts = EpidMemberInitialProvision(ctx); in EpidPrivateExp() 73 BREAK_ON_EPID_ERROR(sts); in EpidPrivateExp() 77 sts = NewEcPoint(G1, &k_pt); in EpidPrivateExp() 78 BREAK_ON_EPID_ERROR(sts); in EpidPrivateExp() 79 sts = NewEcPoint(G1, &l_pt); in EpidPrivateExp() 80 BREAK_ON_EPID_ERROR(sts); in EpidPrivateExp() 81 sts = NewEcPoint(G1, &e_pt); in EpidPrivateExp() 82 BREAK_ON_EPID_ERROR(sts); in EpidPrivateExp() 83 sts = NewEcPoint(G1, &t1); in EpidPrivateExp() [all …]
|
D | join.c | 42 EpidStatus sts = kEpidErr; in EpidCreateJoinRequest() local 71 sts = EpidMemberInitialProvision(ctx); in EpidCreateJoinRequest() 72 BREAK_ON_EPID_ERROR(sts); in EpidCreateJoinRequest() 76 sts = CreateGroupPubKey(pub_key, ctx->epid2_params->G1, in EpidCreateJoinRequest() 78 BREAK_ON_EPID_ERROR(sts); in EpidCreateJoinRequest() 80 sts = NewEcPoint(G1, &t); in EpidCreateJoinRequest() 81 BREAK_ON_EPID_ERROR(sts); in EpidCreateJoinRequest() 82 sts = NewEcPoint(G1, &h1); in EpidCreateJoinRequest() 83 BREAK_ON_EPID_ERROR(sts); in EpidCreateJoinRequest() 84 sts = ReadEcPoint(G1, &pub_key->h1, sizeof(pub_key->h1), h1); in EpidCreateJoinRequest() [all …]
|
D | context.c | 55 EpidStatus sts = kEpidErr; in EpidMemberInit() local 75 sts = CreateBasenames(&ctx->allowed_basenames); in EpidMemberInit() 76 BREAK_ON_EPID_ERROR(sts); in EpidMemberInit() 78 sts = CreateEpid2Params(&ctx->epid2_params); in EpidMemberInit() 79 BREAK_ON_EPID_ERROR(sts); in EpidMemberInit() 82 sts = Tpm2CreateContext(params, ctx->epid2_params, &ctx->rnd_func, in EpidMemberInit() 84 BREAK_ON_EPID_ERROR(sts); in EpidMemberInit() 87 sts = kEpidMemAllocErr; in EpidMemberInit() 88 BREAK_ON_EPID_ERROR(sts); in EpidMemberInit() 96 sts = NewEcPoint(ctx->epid2_params->G1, (EcPoint**)&ctx->A); in EpidMemberInit() [all …]
|
D | precomp.c | 34 EpidStatus sts = kEpidErr; in PrecomputeMemberPairing() local 49 sts = CreateGroupPubKey(pub_key, G1, G2, &pub_key_); in PrecomputeMemberPairing() 50 BREAK_ON_EPID_ERROR(sts); in PrecomputeMemberPairing() 52 sts = NewFfElement(GT, &e); in PrecomputeMemberPairing() 53 BREAK_ON_EPID_ERROR(sts); in PrecomputeMemberPairing() 56 sts = Pairing(ps_ctx, pub_key_->h1, g2, e); in PrecomputeMemberPairing() 57 BREAK_ON_EPID_ERROR(sts); in PrecomputeMemberPairing() 58 sts = WriteFfElement(GT, e, &precomp->e12, sizeof(precomp->e12)); in PrecomputeMemberPairing() 59 BREAK_ON_EPID_ERROR(sts); in PrecomputeMemberPairing() 62 sts = Pairing(ps_ctx, pub_key_->h2, g2, e); in PrecomputeMemberPairing() [all …]
|
D | startup.c | 42 EpidStatus sts = kEpidErr; in EpidMemberStartup() local 57 sts = EpidNvReadMembershipCredential(ctx->tpm2_ctx, nv_index, &ctx->pub_key, in EpidMemberStartup() 59 BREAK_ON_EPID_ERROR(sts); in EpidMemberStartup() 61 sts = PrecomputeMemberPairing(ctx->epid2_params, &ctx->pub_key, in EpidMemberStartup() 63 BREAK_ON_EPID_ERROR(sts); in EpidMemberStartup() 68 sts = EpidMemberInitialProvision(ctx); in EpidMemberStartup() 69 BREAK_ON_EPID_ERROR(sts); in EpidMemberStartup() 72 sts = ReadEcPoint(G1, &ctx->credential.A, sizeof(ctx->credential.A), A); in EpidMemberStartup() 73 BREAK_ON_EPID_ERROR(sts); in EpidMemberStartup() 75 sts = ReadFfElement(Fp, &ctx->credential.x, sizeof(ctx->credential.x), x); in EpidMemberStartup() [all …]
|
/external/epid-sdk/epid/verifier/src/ |
D | nrverify.c | 52 EpidStatus sts = kEpidErr; in EpidNrVerify() local 96 sts = kEpidMemAllocErr; in EpidNrVerify() 101 sts = NewEcPoint(G1, &t_pt); in EpidNrVerify() 102 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify() 103 sts = NewEcPoint(G1, &k_pt); in EpidNrVerify() 104 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify() 105 sts = NewEcPoint(G1, &b_pt); in EpidNrVerify() 106 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify() 107 sts = NewEcPoint(G1, &kp_pt); in EpidNrVerify() 108 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify() [all …]
|
/external/epid-sdk/epid/common/math/src/ |
D | pairing.c | 32 #define BREAK_ON_IPP_ERROR(sts, ret) \ argument 34 IppStatus temp_sts = (sts); \ 45 #define RETURN_ON_IPP_ERROR(sts) \ argument 47 IppStatus temp_sts = (sts); \ 136 IppStatus sts = ippStsNoErr; in NewPairingState() local 188 sts = ippsGFpNeg(xi->ipp_ff_elem, xi->ipp_ff_elem, Fq2); in NewPairingState() 189 BREAK_ON_IPP_ERROR(sts, result); in NewPairingState() 225 sts = ippsSub_BN(Ffq->modulus_0->ipp_bn, one->ipp_bn, e->ipp_bn); in NewPairingState() 226 BREAK_ON_IPP_ERROR(sts, result); in NewPairingState() 233 sts = ippsDiv_BN(e->ipp_bn, six->ipp_bn, e->ipp_bn, one->ipp_bn); in NewPairingState() [all …]
|
D | bignum.c | 31 IppStatus sts = ippStsNoErr; in NewBigNum() local 41 sts = ippsBigNumGetSize(wordsize, (int*)&ctxsize); in NewBigNum() 42 if (ippStsNoErr != sts) { in NewBigNum() 43 if (ippStsLengthErr == sts) { in NewBigNum() 57 sts = ippsBigNumInit(wordsize, ipp_bn_ctx); in NewBigNum() 58 if (ippStsNoErr != sts) { in NewBigNum() 59 if (ippStsLengthErr == sts) { in NewBigNum() 96 IppStatus sts; in ReadBigNum() local 127 sts = ippsSet_BN(IppsBigNumPOS, 1, &zero32, bn->ipp_bn); in ReadBigNum() 129 sts = ippsSetOctString_BN(bn_str, ipp_strlen, bn->ipp_bn); in ReadBigNum() [all …]
|
D | ecdsa_sign.c | 51 IppStatus sts = ippStsNoErr; in EcdsaSignBuffer() local 73 sts = ippsECCPGetSizeStd256r1(&ctxsize); in EcdsaSignBuffer() 74 if (ippStsNoErr != sts) break; in EcdsaSignBuffer() 80 sts = ippsECCPInitStd256r1(ec_ctx); in EcdsaSignBuffer() 81 if (ippStsNoErr != sts) break; in EcdsaSignBuffer() 82 sts = ippsECCPSetStd256r1(ec_ctx); in EcdsaSignBuffer() 83 if (ippStsNoErr != sts) break; in EcdsaSignBuffer() 96 sts = ippsSHA256MessageDigest(buf, (int)buf_len, hash); in EcdsaSignBuffer() 97 if (ippStsNoErr != sts) break; in EcdsaSignBuffer() 108 sts = ippsMod_BN(bn_hash->ipp_bn, bn_ec_order->ipp_bn, bn_hash->ipp_bn); in EcdsaSignBuffer() [all …]
|
D | ecgroup.c | 39 #define BREAK_ON_IPP_ERROR(sts, ret) \ argument 41 IppStatus temp_sts = (sts); \ 189 IppStatus sts = ippStsNoErr; in NewEcPoint() local 200 sts = ippsGFpECPointGetSize(g->ipp_ec, &sizeInBytes); in NewEcPoint() 201 if (ippStsContextMatchErr == sts) { in NewEcPoint() 204 } else if (ippStsNoErr != sts) { in NewEcPoint() 215 sts = ippsGFpECPointInit(NULL, NULL, ec_pt_context, g->ipp_ec); in NewEcPoint() 216 if (ippStsContextMatchErr == sts) { in NewEcPoint() 219 } else if (ippStsNoErr != sts) { in NewEcPoint() 281 IppStatus sts = ippStsNoErr; in eccontains() local [all …]
|
/external/epid-sdk/example/signmsg/src/ |
D | signmsg.c | 42 EpidStatus sts = kEpidErr; in SignMsg() local 56 sts = kEpidBadArgErr; in SignMsg() 61 sts = EpidParseGroupPubKeyFile(signed_pubkey, signed_pubkey_size, cacert, in SignMsg() 63 if (kEpidNoErr != sts) { in SignMsg() 70 sts = EpidDecompressPrivKey(&pub_key, (CompressedPrivKey*)priv_key_ptr, in SignMsg() 72 if (kEpidNoErr != sts) { in SignMsg() 78 sts = kEpidErr; in SignMsg() 83 sts = PrngCreate(&prng); in SignMsg() 84 if (kEpidNoErr != sts) { in SignMsg() 90 sts = EpidMemberGetSize(¶ms, &member_size); in SignMsg() [all …]
|
/external/epid-sdk/epid/member/tpm2/src/ |
D | commit.c | 60 EpidStatus sts = kEpidErr; in Tpm2Commit() local 100 sts = NewEcPoint(G1, &infinity); in Tpm2Commit() 101 BREAK_ON_EPID_ERROR(sts); in Tpm2Commit() 105 sts = NewFfElement(Fq, &x2); in Tpm2Commit() 106 BREAK_ON_EPID_ERROR(sts); in Tpm2Commit() 107 sts = FfHash(Fq, s2, s2_len, ctx->hash_alg, x2); in Tpm2Commit() 108 BREAK_ON_EPID_ERROR(sts); in Tpm2Commit() 112 sts = NewEcPoint(G1, &point); in Tpm2Commit() 113 BREAK_ON_EPID_ERROR(sts); in Tpm2Commit() 114 sts = WriteFfElement(Fq, x2, &point_str.x, sizeof(point_str.x)); in Tpm2Commit() [all …]
|
D | sign.c | 56 EpidStatus sts = kEpidErr; in Tpm2Sign() local 76 sts = GetCommitNonce(ctx, counter, &commit_nonce); in Tpm2Sign() 77 BREAK_ON_EPID_ERROR(sts); in Tpm2Sign() 79 sts = NewBigNum(digest_len, &digest_bn); in Tpm2Sign() 80 BREAK_ON_EPID_ERROR(sts); in Tpm2Sign() 81 sts = NewFfElement(Fp, &t); in Tpm2Sign() 82 BREAK_ON_EPID_ERROR(sts); in Tpm2Sign() 85 sts = ReadBigNum(digest, digest_len, digest_bn); in Tpm2Sign() 86 BREAK_ON_EPID_ERROR(sts); in Tpm2Sign() 87 sts = InitFfElementFromBn(Fp, digest_bn, t); in Tpm2Sign() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AVR/calling-conv/c/ |
D | basic.ll | 5 ; CHECK: sts 4, r24 12 ; CHECK: sts 4, r24 15 ; CHECK-NEXT: sts 8, r23 16 ; CHECK-NEXT: sts 7, r22 17 ; CHECK-NEXT: sts 6, r21 18 ; CHECK-NEXT: sts 5, r20 25 ; CHECK: sts 4, r24 27 ; CHECK-NEXT: sts 5, r22 29 ; CHECK-NEXT: sts 6, r20 31 ; CHECK-NEXT: sts 7, r18 [all …]
|
/external/epid-sdk/epid/verifier/1.1/src/ |
D | verify.c | 63 EpidStatus sts = kEpidErr; in Epid11PrVerify() local 72 sts = NewFfElement(Fp, &f); in Epid11PrVerify() 73 if (kEpidNoErr != sts) { in Epid11PrVerify() 74 sts = kEpidMathErr; in Epid11PrVerify() 77 sts = NewEcPoint(G3, &B); in Epid11PrVerify() 78 if (kEpidNoErr != sts) { in Epid11PrVerify() 79 sts = kEpidMathErr; in Epid11PrVerify() 82 sts = NewEcPoint(G3, &K); in Epid11PrVerify() 83 if (kEpidNoErr != sts) { in Epid11PrVerify() 84 sts = kEpidMathErr; in Epid11PrVerify() [all …]
|
/external/icu/icu4c/source/common/ |
D | uloc_keytype.cpp | 91 initFromResourceBundle(UErrorCode& sts) { in initFromResourceBundle() argument 95 gLocExtKeyMap = uhash_open(uhash_hashIChars, uhash_compareIChars, NULL, &sts); in initFromResourceBundle() 97 LocalUResourceBundlePointer keyTypeDataRes(ures_openDirect(NULL, "keyTypeData", &sts)); in initFromResourceBundle() 98 …alUResourceBundlePointer keyMapRes(ures_getByKey(keyTypeDataRes.getAlias(), "keyMap", NULL, &sts)); in initFromResourceBundle() 99 …UResourceBundlePointer typeMapRes(ures_getByKey(keyTypeDataRes.getAlias(), "typeMap", NULL, &sts)); in initFromResourceBundle() 101 if (U_FAILURE(sts)) { in initFromResourceBundle() 111 gKeyTypeStringPool = new UVector(uloc_deleteKeyTypeStringPoolEntry, NULL, sts); in initFromResourceBundle() 113 if (U_SUCCESS(sts)) { in initFromResourceBundle() 114 sts = U_MEMORY_ALLOCATION_ERROR; in initFromResourceBundle() 117 if (U_FAILURE(sts)) { in initFromResourceBundle() [all …]
|
/external/epid-sdk/epid/common-testhelper/ |
D | member_wrapper-testhelper.cc | 47 EpidStatus sts = kEpidErr; in MemberCtxObj() local 51 sts = EpidProvisionKey(ctx_, &pub_key, &priv_key, nullptr); in MemberCtxObj() 52 if (kEpidNoErr != sts) { in MemberCtxObj() 58 sts = EpidMemberStartup(ctx_); in MemberCtxObj() 59 if (kEpidNoErr != sts) { in MemberCtxObj() 71 EpidStatus sts = kEpidErr; in MemberCtxObj() local 75 sts = EpidProvisionCredential(ctx_, &pub_key, &cred, nullptr); in MemberCtxObj() 76 if (kEpidNoErr != sts) { in MemberCtxObj() 82 sts = EpidMemberStartup(ctx_); in MemberCtxObj() 83 if (kEpidNoErr != sts) { in MemberCtxObj() [all …]
|
D | octstr-testhelper.cc | 41 IppStatus sts = ippStsNoErr; in create_BigNum() local 51 sts = ippsBigNumGetSize(word_size, &bignum_ctx_size); in create_BigNum() 52 if (ippStsNoErr != sts) { in create_BigNum() 53 if (ippStsLengthErr == sts) { in create_BigNum() 67 sts = ippsBigNumInit(word_size, ipp_bn_ctx); in create_BigNum() 68 if (sts != ippStsNoErr) { in create_BigNum() 69 if (sts == ippStsLengthErr) { in create_BigNum() 77 sts = ippsSetOctString_BN((IppOctStr)str, byte_size, ipp_bn_ctx); in create_BigNum() 78 if (sts != ippStsNoErr) { in create_BigNum() 79 if (sts == ippStsLengthErr) { in create_BigNum() [all …]
|
/external/epid-sdk/epid/member/tpm2/ibm_tss/ |
D | commit.c | 43 EpidStatus sts = kEpidErr; in Tpm2Commit() local 81 sts = WriteEcPoint(G1, p1, &p1_str, sizeof(p1_str)); in Tpm2Commit() 82 BREAK_ON_EPID_ERROR(sts); in Tpm2Commit() 83 sts = ReadTpm2EcPoint(&p1_str, &in.P1); in Tpm2Commit() 84 BREAK_ON_EPID_ERROR(sts); in Tpm2Commit() 88 sts = WriteFfElement(Fq, y2, &y2_str, sizeof(y2_str)); in Tpm2Commit() 89 BREAK_ON_EPID_ERROR(sts); in Tpm2Commit() 90 sts = ReadTpm2FfElement(&y2_str.data, &in.y2); in Tpm2Commit() 91 BREAK_ON_EPID_ERROR(sts); in Tpm2Commit() 94 sts = kEpidBadArgErr; in Tpm2Commit() [all …]
|
/external/python/cpython2/Demo/scripts/ |
D | mboxconvert.py | 27 sts = 0 30 sts = dofile(sys.stdin) or sts 32 sts = mh(arg) or sts 38 sts = 1 40 sts = dofile(f) or sts 44 sts = 1 45 if sts: 46 sys.exit(sts) 51 sts = 0 61 sts = 1 [all …]
|
/external/epid-sdk/epid/common/src/ |
D | commitment.c | 49 EpidStatus sts; in SetCalculatedCommitValues() local 59 sts = WriteEcPoint(G1, R1, &values->R1, sizeof(values->R1)); in SetCalculatedCommitValues() 60 if (kEpidNoErr != sts) return sts; in SetCalculatedCommitValues() 61 sts = WriteFfElement(GT, R2, &values->R2, sizeof(values->R2)); in SetCalculatedCommitValues() 62 if (kEpidNoErr != sts) return sts; in SetCalculatedCommitValues() 70 EpidStatus sts; in CalculateCommitmentHash() local 86 sts = NewFfElement(Fp, &t3); in CalculateCommitmentHash() 87 if (kEpidNoErr != sts) break; in CalculateCommitmentHash() 91 sts = FfHash(Fp, values, sizeof(*values), hash_alg, t3); in CalculateCommitmentHash() 92 if (kEpidNoErr != sts) break; in CalculateCommitmentHash() [all …]
|