Home
last modified time | relevance | path

Searched refs:G1 (Results 1 – 25 of 349) sorted by relevance

12345678910>>...14

/external/epid-sdk/epid/member/tpm2/unittests/
Dcommit-simulator-test.cc43 EcPointObj k(&params.G1), l(&params.G1), e(&params.G1); in TEST_F()
44 EcPointObj p1(&params.G1, this->kP1Str); in TEST_F()
58 EcPointObj p1_exp_r(&params.G1), p2_exp_r(&params.G1); in TEST_F()
60 EcPointObj p2(&params.G1, this->kP2Sha256Str); in TEST_F()
68 THROW_ON_EPIDERR(EcExp(params.G1, p1, (BigNumStr const*)&r_str, p1_exp_r)); in TEST_F()
70 WriteEcPoint(params.G1, p1_exp_r, &p1_exp_r_str, sizeof(p1_exp_r_str))); in TEST_F()
71 THROW_ON_EPIDERR(EcExp(params.G1, p2, (BigNumStr const*)&r_str, p2_exp_r)); in TEST_F()
73 WriteEcPoint(params.G1, p2_exp_r, &p2_exp_r_str, sizeof(p2_exp_r_str))); in TEST_F()
76 THROW_ON_EPIDERR(WriteEcPoint(params.G1, k, &k_str, sizeof(k_str))); in TEST_F()
77 THROW_ON_EPIDERR(WriteEcPoint(params.G1, l, &l_str, sizeof(l_str))); in TEST_F()
[all …]
Dcommit-test.cc41 EcPointObj k(&params.G1), l(&params.G1), e(&params.G1); in TEST_F()
42 EcPointObj p1(&params.G1, this->kP1Str); in TEST_F()
78 EcPointObj k(&params.G1), l(&params.G1), e(&params.G1); in TEST_F()
79 EcPointObj p1(&params.G1, this->kP1Str); in TEST_F()
99 EcPointObj k(&params.G1), l(&params.G1), e(&params.G1); in TEST_F()
100 EcPointObj p1(&params.G1, this->kP1Str); in TEST_F()
116 EcPointObj k(&params.G1), l(&params.G1), e(&params.G1); in TEST_F()
117 EcPointObj p1(&params.G1, this->kP1Str); in TEST_F()
137 EcPointObj k(&params.G1), l(&params.G1), e(&params.G1); in TEST_F()
139 EcPointObj infinity(&params.G1, infinity_str); in TEST_F()
[all …]
Dsign-test.cc62 EcPointObj v1(&params.G1); in IsSignatureValid()
64 THROW_ON_EPIDERR(EcExp(params.G1, point, &exp, v1)); in IsSignatureValid()
66 EcPointObj v2(&params.G1); in IsSignatureValid()
68 THROW_ON_EPIDERR(EcExp(params.G1, private_exp, &exp, v2)); in IsSignatureValid()
70 THROW_ON_EPIDERR(EcMul(params.G1, random_exp, v2, v2)); in IsSignatureValid()
73 THROW_ON_EPIDERR(WriteEcPoint(params.G1, v1, &v1_str, sizeof(v1_str))); in IsSignatureValid()
74 THROW_ON_EPIDERR(WriteEcPoint(params.G1, v2, &v2_str, sizeof(v2_str))); in IsSignatureValid()
92 EcPointObj p2(&params.G1, kP2Sha256Str); in TEST_F()
93 EcPointObj p2_exp_f(&params.G1, kP2Sha256ExpF); in TEST_F()
95 EcPointObj k(&params.G1), l(&params.G1), e(&params.G1); in TEST_F()
[all …]
/external/swiftshader/third_party/LLVM/unittests/ExecutionEngine/
DExecutionEngineTest.cpp43 GlobalVariable *G1 = in TEST_F() local
46 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
47 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
49 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
50 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
51 Engine->updateGlobalMapping(G1, NULL); in TEST_F()
52 EXPECT_EQ(NULL, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
53 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
54 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
64 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)) in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ExecutionEngine/
DExecutionEngineTest.cpp53 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F() local
55 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
56 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
59 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
60 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
61 Engine->updateGlobalMapping(G1, nullptr); in TEST_F()
62 EXPECT_EQ(nullptr, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
63 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
64 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
73 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)) in TEST_F()
[all …]
/external/llvm/unittests/ExecutionEngine/
DExecutionEngineTest.cpp53 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F() local
55 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
56 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
59 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
60 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
61 Engine->updateGlobalMapping(G1, nullptr); in TEST_F()
62 EXPECT_EQ(nullptr, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
63 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
64 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
73 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)) in TEST_F()
[all …]
/external/epid-sdk/epid/member/unittests/
Dprivateexp-test.cc46 EcPointObj a(&params.G1, this->kGroupPublicKey.h1), r(&params.G1); in TEST_F()
64 EcPointObj a(&params.G1, this->kGroupPublicKey.h1), r(&params.G1); in TEST_F()
83 EcPointObj a(&params.G1, this->kGroupPublicKey.h1), r(&params.G1), in TEST_F()
84 r_expected(&params.G1); in TEST_F()
91 params.G1, a, (BigNumStr const*)&this->kMemberPrivateKey.f, r_expected)); in TEST_F()
93 THROW_ON_EPIDERR(WriteEcPoint(params.G1, r, &r_str, sizeof(r_str))); in TEST_F()
94 THROW_ON_EPIDERR(WriteEcPoint(params.G1, r_expected, &r_expected_str, in TEST_F()
111 EcPointObj a(&params.G1, this->kGroupPublicKey.h1), r(&params.G1), in TEST_F()
112 r_expected(&params.G1); in TEST_F()
119 params.G1, a, (BigNumStr const*)&this->kMemberPrivateKey.f, r_expected)); in TEST_F()
[all …]
/external/epid-sdk/epid/member/src/
Dnrprove.c98 EcGroup* G1 = ctx->epid2_params->G1; in EpidNrProve() local
110 sts = NewEcPoint(G1, &B); in EpidNrProve()
112 sts = NewEcPoint(G1, &K); in EpidNrProve()
114 sts = NewEcPoint(G1, &rlB); in EpidNrProve()
116 sts = NewEcPoint(G1, &rlK); in EpidNrProve()
118 sts = NewEcPoint(G1, &D); in EpidNrProve()
120 sts = NewEcPoint(G1, &t); in EpidNrProve()
125 sts = NewEcPoint(G1, &k_tpm); in EpidNrProve()
127 sts = NewEcPoint(G1, &l_tpm); in EpidNrProve()
129 sts = NewEcPoint(G1, &e_tpm); in EpidNrProve()
[all …]
Dprivateexp.c69 EcGroup* G1 = ctx->epid2_params->G1; in EpidPrivateExp() local
77 sts = NewEcPoint(G1, &k_pt); in EpidPrivateExp()
79 sts = NewEcPoint(G1, &l_pt); in EpidPrivateExp()
81 sts = NewEcPoint(G1, &e_pt); in EpidPrivateExp()
83 sts = NewEcPoint(G1, &t1); in EpidPrivateExp()
85 sts = NewEcPoint(G1, &h); in EpidPrivateExp()
108 sts = EcSscmExp(G1, a, &tmp_ff_str, t1); in EpidPrivateExp()
112 sts = EcInverse(G1, e_pt, e_pt); in EpidPrivateExp()
116 sts = EcMul(G1, t1, e_pt, h); in EpidPrivateExp()
122 sts = EcSscmExp(G1, h, &tmp_ff_str, r); in EpidPrivateExp()
Djoin.c66 EcGroup* G1 = ctx->epid2_params->G1; in EpidCreateJoinRequest() local
76 sts = CreateGroupPubKey(pub_key, ctx->epid2_params->G1, in EpidCreateJoinRequest()
80 sts = NewEcPoint(G1, &t); in EpidCreateJoinRequest()
82 sts = NewEcPoint(G1, &h1); in EpidCreateJoinRequest()
84 sts = ReadEcPoint(G1, &pub_key->h1, sizeof(pub_key->h1), h1); in EpidCreateJoinRequest()
90 sts = WriteEcPoint(G1, t, &request.F, sizeof(request.F)); in EpidCreateJoinRequest()
95 sts = NewEcPoint(G1, &K); in EpidCreateJoinRequest()
97 sts = NewEcPoint(G1, &l); in EpidCreateJoinRequest()
99 sts = NewEcPoint(G1, &e); in EpidCreateJoinRequest()
104 sts = WriteEcPoint(G1, e, &R, sizeof(R)); in EpidCreateJoinRequest()
Dvalidatekey.c56 EcGroup* G1 = ctx->epid2_params->G1; in EpidMemberIsKeyValid() local
86 sts = NewEcPoint(G1, &A); in EpidMemberIsKeyValid()
88 sts = ReadEcPoint(G1, A_str, sizeof(*A_str), A); in EpidMemberIsKeyValid()
94 sts = NewEcPoint(G1, &t2); in EpidMemberIsKeyValid()
96 sts = NewEcPoint(G1, &h1); in EpidMemberIsKeyValid()
98 sts = ReadEcPoint(G1, h1_str, sizeof(*h1_str), h1); in EpidMemberIsKeyValid()
104 sts = EcMul(G1, t2, g1, t2); in EpidMemberIsKeyValid()
Dhash_basename.c29 EpidStatus HashBaseName(EcGroup* G1, HashAlg hash_alg, void const* basename, in HashBaseName() argument
35 if (!G1 || (0 != basename_len && !basename) || !B_str) { in HashBaseName()
40 sts = NewEcPoint(G1, &B); in HashBaseName()
43 sts = EcHash(G1, basename, basename_len, hash_alg, B, iterations); in HashBaseName()
45 sts = WriteEcPoint(G1, B, B_str, sizeof(*B_str)); in HashBaseName()
Dpresig.c123 EcGroup* G1 = ctx->epid2_params->G1; in MemberComputePreSig() local
143 sts = NewEcPoint(G1, &B); in MemberComputePreSig()
145 sts = NewEcPoint(G1, &k); in MemberComputePreSig()
147 sts = NewEcPoint(G1, &t); in MemberComputePreSig()
149 sts = NewEcPoint(G1, &e); in MemberComputePreSig()
172 sts = EcHash(G1, (const void*)&p2x.bsn, sizeof(p2x.bsn), ctx->hash_alg, B, in MemberComputePreSig()
176 sts = WriteEcPoint(G1, B, &precompsig->B, sizeof(precompsig->B)); in MemberComputePreSig()
186 sts = WriteEcPoint(G1, k, &precompsig->K, sizeof(precompsig->K)); in MemberComputePreSig()
189 sts = WriteEcPoint(G1, t, &precompsig->R1, sizeof(precompsig->R1)); in MemberComputePreSig()
198 sts = EcExp(G1, h2, (BigNumStr*)&precompsig->a, t); in MemberComputePreSig()
[all …]
/external/epid-sdk/epid/verifier/src/
Dcheck_privrl_entry.c30 EcGroup* G1 = NULL; in EpidCheckPrivRlEntry() local
35 if (!ctx->epid2_params || !ctx->epid2_params->G1) { in EpidCheckPrivRlEntry()
43 G1 = ctx->epid2_params->G1; in EpidCheckPrivRlEntry()
48 result = NewEcPoint(G1, &b); in EpidCheckPrivRlEntry()
52 result = NewEcPoint(G1, &k); in EpidCheckPrivRlEntry()
56 result = NewEcPoint(G1, &t4); in EpidCheckPrivRlEntry()
65 result = ReadEcPoint(G1, &sig->B, sizeof(sig->B), b); in EpidCheckPrivRlEntry()
69 result = ReadEcPoint(G1, &sig->K, sizeof(sig->K), k); in EpidCheckPrivRlEntry()
73 result = EcExp(G1, b, (BigNumStr const*)f, t4); in EpidCheckPrivRlEntry()
77 result = EcIsEqual(G1, t4, k, &compare_result); in EpidCheckPrivRlEntry()
Dnrverify.c76 if (!ctx->epid2_params || !ctx->epid2_params->G1 || !ctx->epid2_params->Fp) { in EpidNrVerify()
80 EcGroup* G1 = ctx->epid2_params->G1; in EpidNrVerify() local
101 sts = NewEcPoint(G1, &t_pt); in EpidNrVerify()
103 sts = NewEcPoint(G1, &k_pt); in EpidNrVerify()
105 sts = NewEcPoint(G1, &b_pt); in EpidNrVerify()
107 sts = NewEcPoint(G1, &kp_pt); in EpidNrVerify()
109 sts = NewEcPoint(G1, &bp_pt); in EpidNrVerify()
111 sts = NewEcPoint(G1, &r1_pt); in EpidNrVerify()
113 sts = NewEcPoint(G1, &r2_pt); in EpidNrVerify()
127 sts = ReadEcPoint(G1, &proof->T, sizeof(proof->T), t_pt); in EpidNrVerify()
[all …]
Dverifybasic.c75 EcGroup* G1 = ctx->epid2_params->G1; in EpidVerifyBasicSig() local
85 if (!G1 || !G2 || !GT || !Fp || !g1 || !g2 || !w) { in EpidVerifyBasicSig()
93 res = NewEcPoint(G1, &B); in EpidVerifyBasicSig()
95 res = NewEcPoint(G1, &K); in EpidVerifyBasicSig()
97 res = NewEcPoint(G1, &T); in EpidVerifyBasicSig()
99 res = NewEcPoint(G1, &R1); in EpidVerifyBasicSig()
101 res = NewEcPoint(G1, &t4); in EpidVerifyBasicSig()
135 res = ReadEcPoint(G1, &(sig->B), sizeof(sig->B), B); in EpidVerifyBasicSig()
143 res = EcIsIdentity(G1, B, &cmp_result); in EpidVerifyBasicSig()
152 res = EcIsEqual(G1, basename_hash, B, &cmp_result); in EpidVerifyBasicSig()
[all …]
/external/epid-sdk/epid/common/math/unittests/
Dtatepairing-test.cc84 THROW_ON_EPIDERR(NewEpid11PairingState(this->params->G1, this->params->G2, in TEST_F()
100 NewEpid11PairingState(this->params->G1, this->params->G2, in TEST_F()
111 EXPECT_EQ(kEpidBadArgErr, NewEpid11PairingState(this->params->G1, nullptr, in TEST_F()
116 NewEpid11PairingState(this->params->G1, this->params->G2, nullptr, &ps)); in TEST_F()
119 NewEpid11PairingState(this->params->G1, this->params->G2, in TEST_F()
136 NewEpid11PairingState(this->params->G1, this->params->G1, in TEST_F()
145 EXPECT_EQ(kEpidBadArgErr, NewEpid11PairingState(this->params->G1, in TEST_F()
173 EcPointObj ga_elem(&this->params->G1, this->kGaElemStr); in TEST_F()
177 THROW_ON_EPIDERR(NewEpid11PairingState(this->params->G1, this->params->G2, in TEST_F()
193 EcPointObj ga_elem(&this->params->G1); in TEST_F()
[all …]
Dpairing-test.cc94 NewPairingState(this->params->G1, this->params->G2, in TEST_F()
111 NewPairingState(this->params->G1, this->params->G2, in TEST_F()
124 NewPairingState(this->params->G1, nullptr, this->params->GT, in TEST_F()
127 EXPECT_EQ(kEpidBadArgErr, NewPairingState(this->params->G1, this->params->G2, in TEST_F()
131 NewPairingState(this->params->G1, this->params->G2, in TEST_F()
135 NewPairingState(this->params->G1, this->params->G2, in TEST_F()
158 NewPairingState(this->params->G1, &gb, this->params->GT, in TEST_F()
168 EXPECT_EQ(kEpidBadArgErr, NewPairingState(this->params->G1, this->params->G2, in TEST_F()
215 EcPointObj ga_elem(&this->params->G1, this->ga_elem_str); in TEST_F()
219 THROW_ON_EPIDERR(NewPairingState(this->params->G1, this->params->G2, in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/RISCV/
Dfixups-expr.s14 .globl G1 symbol
17 G1: label
24 .dword G2-G1
26 .word G2-G1
28 .half G2-G1
30 .byte G2-G1
34 # RELAX: 0x8 R_RISCV_SUB64 G1 0x0
38 # RELAX: 0x14 R_RISCV_SUB32 G1 0x0
42 # RELAX: 0x1A R_RISCV_SUB16 G1 0x0
46 # RELAX: 0x1D R_RISCV_SUB8 G1 0x0
/external/epid-sdk/epid/member/tpm2/src/
Dcommit.c63 EcGroup* G1 = NULL; in Tpm2Commit() local
98 G1 = ctx->epid2_params->G1; in Tpm2Commit()
100 sts = NewEcPoint(G1, &infinity); in Tpm2Commit()
112 sts = NewEcPoint(G1, &point); in Tpm2Commit()
118 sts = ReadEcPoint(G1, &point_str, sizeof(point_str), point); in Tpm2Commit()
143 sts = EcExp(G1, point, &f_str, k); in Tpm2Commit()
148 sts = EcExp(G1, point, &r_str, l); in Tpm2Commit()
150 sts = EcIsEqual(G1, k, infinity, &is_equal); in Tpm2Commit()
156 sts = EcIsEqual(G1, l, infinity, &is_equal); in Tpm2Commit()
165 sts = EcExp(G1, p1, &r_str, e); in Tpm2Commit()
[all …]
/external/swiftshader/third_party/subzero/tests_lit/llvm2ice_tests/
Dnonsfi.ll12 @G1 = internal global [4 x i8] zeroinitializer, align 4
45 %a = bitcast [4 x i8]* @G1 to i32*
51 ; NONSFI: mov {{.*}} R_386_GOTOFF {{G1|.bss}}
58 ; ARM32-NONSFI: movw [[REG:r[0-9]+]], {{.*}} R_ARM_MOVW_PREL_NC {{.*}}G1
59 ; ARM32-NONSFI-NEXT: movt [[REG]], {{.*}} R_ARM_MOVT_PREL {{.*}}G1
64 %a = ptrtoint [4 x i8]* @G1 to i32
72 ; NONSFI: mov {{.*}}+0x4] {{.*}} R_386_GOTOFF {{G1|.bss}}
78 ; ARM32-NONSFI: movw [[REG:r[0-9]+]], {{.*}} R_ARM_MOVW_PREL_NC {{.*}}G1
79 ; ARM32-NONSFI-NEXT: movt [[REG]], {{.*}} R_ARM_MOVT_PREL {{.*}}G1
86 %a = ptrtoint [4 x i8]* @G1 to i32
[all …]
/external/epid-sdk/epid/common/src/
Dgrouppubkey.c24 EpidStatus CreateGroupPubKey(GroupPubKey const* pub_key_str, EcGroup* G1, in CreateGroupPubKey() argument
28 if (!pub_key_str || !G1 || !G2 || !pub_key) { 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()
/external/epid-sdk/epid/common/1.1/src/
Dgrouppubkey.c32 EcGroup* G1, EcGroup* G2, in CreateEpid11GroupPubKey() argument
36 if (!pub_key_str || !G1 || !G2 || !pub_key) { in CreateEpid11GroupPubKey()
45 result = NewEcPoint(G1, &pubkey->h1); in CreateEpid11GroupPubKey()
48 ReadEcPoint(G1, &pub_key_str->h1, sizeof(pub_key_str->h1), pubkey->h1); in CreateEpid11GroupPubKey()
50 result = NewEcPoint(G1, &pubkey->h2); in CreateEpid11GroupPubKey()
53 ReadEcPoint(G1, &pub_key_str->h2, sizeof(pub_key_str->h2), pubkey->h2); in CreateEpid11GroupPubKey()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/
DSparcRegisterInfo.cpp59 Reserved.set(SP::G1); in getReservedRegs()
129 BuildMI(*MI.getParent(), II, dl, TII.get(SP::SETHIi), SP::G1) in replaceFI()
134 BuildMI(*MI.getParent(), II, dl, TII.get(SP::ADDrr), SP::G1).addReg(SP::G1) in replaceFI()
137 MI.getOperand(FIOperandNum).ChangeToRegister(SP::G1, false); in replaceFI()
147 BuildMI(*MI.getParent(), II, dl, TII.get(SP::SETHIi), SP::G1) in replaceFI()
149 BuildMI(*MI.getParent(), II, dl, TII.get(SP::XORri), SP::G1) in replaceFI()
150 .addReg(SP::G1).addImm(LOX10(Offset)); in replaceFI()
152 BuildMI(*MI.getParent(), II, dl, TII.get(SP::ADDrr), SP::G1).addReg(SP::G1) in replaceFI()
155 MI.getOperand(FIOperandNum).ChangeToRegister(SP::G1, false); in replaceFI()
/external/llvm/lib/Target/Sparc/
DSparcRegisterInfo.cpp59 Reserved.set(SP::G1); in getReservedRegs()
129 BuildMI(*MI.getParent(), II, dl, TII.get(SP::SETHIi), SP::G1) in replaceFI()
134 BuildMI(*MI.getParent(), II, dl, TII.get(SP::ADDrr), SP::G1).addReg(SP::G1) in replaceFI()
137 MI.getOperand(FIOperandNum).ChangeToRegister(SP::G1, false); in replaceFI()
147 BuildMI(*MI.getParent(), II, dl, TII.get(SP::SETHIi), SP::G1) in replaceFI()
149 BuildMI(*MI.getParent(), II, dl, TII.get(SP::XORri), SP::G1) in replaceFI()
150 .addReg(SP::G1).addImm(LOX10(Offset)); in replaceFI()
152 BuildMI(*MI.getParent(), II, dl, TII.get(SP::ADDrr), SP::G1).addReg(SP::G1) in replaceFI()
155 MI.getOperand(FIOperandNum).ChangeToRegister(SP::G1, false); in replaceFI()

12345678910>>...14