Home
last modified time | relevance | path

Searched refs:IS_BIG_ENDIAN (Results 1 – 10 of 10) sorted by relevance

/base/security/crypto_framework/test/unittest/src/
Dcrypto_ecc_key_agreement_by_spec_test.cpp54 static const bool IS_BIG_ENDIAN = IsBigEndian(); variable
79 (IS_BIG_ENDIAN ? g_ecc224CorrectBigP : g_ecc224CorrectLittleP); in ConstructEcc224KeyPairParamsSpec()
81 eccKeyPairSpec->base.a.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigA : g_ecc224CorrectLittleA); in ConstructEcc224KeyPairParamsSpec()
83 eccKeyPairSpec->base.b.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigB : g_ecc224CorrectLittleB); in ConstructEcc224KeyPairParamsSpec()
85 … eccKeyPairSpec->base.g.x.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigGX : g_ecc224CorrectLittleGX); in ConstructEcc224KeyPairParamsSpec()
87 … eccKeyPairSpec->base.g.y.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigGY : g_ecc224CorrectLittleGY); in ConstructEcc224KeyPairParamsSpec()
89 eccKeyPairSpec->base.n.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigN : g_ecc224CorrectLittleN); in ConstructEcc224KeyPairParamsSpec()
92 eccKeyPairSpec->pk.x.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigPkX : g_ecc224CorrectLittlePkX); in ConstructEcc224KeyPairParamsSpec()
94 eccKeyPairSpec->pk.y.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigPkY : g_ecc224CorrectLittlePkY); in ConstructEcc224KeyPairParamsSpec()
96 eccKeyPairSpec->sk.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigSk : g_ecc224CorrectLittleSk); in ConstructEcc224KeyPairParamsSpec()
[all …]
Dcrypto_asy_key_generator_cov_test.cpp60 static const bool IS_BIG_ENDIAN = IsBigEndian(); variable
233 .data = IS_BIG_ENDIAN ? g_dsa2048PrivBigE : g_dsa2048PrivLittleE, .len = DSA2048_PRI_SIZE };
235 .data = IS_BIG_ENDIAN ? g_dsa2048PubBigE : g_dsa2048PubLittleE, .len = DSA2048_PUB_SIZE };
237 .data = IS_BIG_ENDIAN ? g_dsa2048PBigE : g_dsa2048PLittleE, .len = DSA2048_P_SIZE };
239 .data = IS_BIG_ENDIAN ? g_dsa2048QBigE : g_dsa2048QLittleE, .len = DSA2048_Q_SIZE };
241 .data = IS_BIG_ENDIAN ? g_dsa2048GBigE : g_dsa2048GLittleE, .len = DSA2048_G_SIZE };
250 .data = IS_BIG_ENDIAN ? g_dsa2048PrivBigE : g_dsa2048PrivLittleE, .len = 0 };
252 .data = IS_BIG_ENDIAN ? g_dsa2048PubBigE : g_dsa2048PubLittleE, .len = 0 };
253 static HcfBigInteger g_dsaNoLenPBn = { .data = IS_BIG_ENDIAN ? g_dsa2048PBigE : g_dsa2048PLittleE, …
254 static HcfBigInteger g_dsaNoLenQBn = { .data = IS_BIG_ENDIAN ? g_dsa2048QBigE : g_dsa2048QLittleE, …
[all …]
Dcrypto_ecc_asy_key_generator_by_spec_test.cpp140 static const bool IS_BIG_ENDIAN = IsBigEndian(); variable
178 …((HcfECFieldFp *)(eccCommSpec->field))->p.data = (IS_BIG_ENDIAN ? g_ecc192CorrectBigP : g_ecc192Co… in ConstructEcc192CommParamsSpec()
180 eccCommSpec->a.data = (IS_BIG_ENDIAN ? g_ecc192CorrectBigA : g_ecc192CorrectLittleA); in ConstructEcc192CommParamsSpec()
182 eccCommSpec->b.data = (IS_BIG_ENDIAN ? g_ecc192CorrectBigB : g_ecc192CorrectLittleB); in ConstructEcc192CommParamsSpec()
184 eccCommSpec->g.x.data = (IS_BIG_ENDIAN ? g_ecc192CorrectBigGX : g_ecc192CorrectLittleGX); in ConstructEcc192CommParamsSpec()
186 eccCommSpec->g.y.data = (IS_BIG_ENDIAN ? g_ecc192CorrectBigGY : g_ecc192CorrectLittleGY); in ConstructEcc192CommParamsSpec()
188 eccCommSpec->n.data = (IS_BIG_ENDIAN ? g_ecc192CorrectBigN : g_ecc192CorrectLittleN); in ConstructEcc192CommParamsSpec()
205 …((HcfECFieldFp *)(eccCommSpec->field))->p.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigP : g_ecc224Co… in ConstructEcc224CommParamsSpec()
207 eccCommSpec->a.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigA : g_ecc224CorrectLittleA); in ConstructEcc224CommParamsSpec()
209 eccCommSpec->b.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigB : g_ecc224CorrectLittleB); in ConstructEcc224CommParamsSpec()
[all …]
Dcrypto_ecc_no_length_sign_test.cpp62 static const bool IS_BIG_ENDIAN = IsBigEndian(); variable
87 (IS_BIG_ENDIAN ? g_ecc224CorrectBigP : g_ecc224CorrectLittleP); in ConstructEcc224KeyPairParamsSpec()
89 eccKeyPairSpec->base.a.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigA : g_ecc224CorrectLittleA); in ConstructEcc224KeyPairParamsSpec()
91 eccKeyPairSpec->base.b.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigB : g_ecc224CorrectLittleB); in ConstructEcc224KeyPairParamsSpec()
93 … eccKeyPairSpec->base.g.x.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigGX : g_ecc224CorrectLittleGX); in ConstructEcc224KeyPairParamsSpec()
95 … eccKeyPairSpec->base.g.y.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigGY : g_ecc224CorrectLittleGY); in ConstructEcc224KeyPairParamsSpec()
97 eccKeyPairSpec->base.n.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigN : g_ecc224CorrectLittleN); in ConstructEcc224KeyPairParamsSpec()
100 eccKeyPairSpec->pk.x.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigPkX : g_ecc224CorrectLittlePkX); in ConstructEcc224KeyPairParamsSpec()
102 eccKeyPairSpec->pk.y.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigPkY : g_ecc224CorrectLittlePkY); in ConstructEcc224KeyPairParamsSpec()
104 eccKeyPairSpec->sk.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigSk : g_ecc224CorrectLittleSk); in ConstructEcc224KeyPairParamsSpec()
[all …]
Dcrypto_dsa_exception_test.cpp56 static const bool IS_BIG_ENDIAN = IsBigEndian(); variable
168 static HcfBigInteger p_BN = { .data = IS_BIG_ENDIAN ? g_dsa2048PBigE : g_dsa2048PLittleE, .len = DS…
169 static HcfBigInteger q_BN = { .data = IS_BIG_ENDIAN ? g_dsa2048QBigE : g_dsa2048QLittleE, .len = DS…
170 static HcfBigInteger g_BN = { .data = IS_BIG_ENDIAN ? g_dsa2048GBigE : g_dsa2048GLittleE, .len = DS…
172 static HcfBigInteger p_EXBN = { .data = IS_BIG_ENDIAN ? g_dsa2048PBigE : g_dsa2048PLittleE, .len = …
Dcrypto_ecc_no_length_verify_test.cpp62 static const bool IS_BIG_ENDIAN = IsBigEndian(); variable
87 (IS_BIG_ENDIAN ? g_ecc224CorrectBigP : g_ecc224CorrectLittleP); in ConstructEcc224KeyPairParamsSpec()
89 eccKeyPairSpec->base.a.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigA : g_ecc224CorrectLittleA); in ConstructEcc224KeyPairParamsSpec()
91 eccKeyPairSpec->base.b.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigB : g_ecc224CorrectLittleB); in ConstructEcc224KeyPairParamsSpec()
93 … eccKeyPairSpec->base.g.x.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigGX : g_ecc224CorrectLittleGX); in ConstructEcc224KeyPairParamsSpec()
95 … eccKeyPairSpec->base.g.y.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigGY : g_ecc224CorrectLittleGY); in ConstructEcc224KeyPairParamsSpec()
97 eccKeyPairSpec->base.n.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigN : g_ecc224CorrectLittleN); in ConstructEcc224KeyPairParamsSpec()
100 eccKeyPairSpec->pk.x.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigPkX : g_ecc224CorrectLittlePkX); in ConstructEcc224KeyPairParamsSpec()
102 eccKeyPairSpec->pk.y.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigPkY : g_ecc224CorrectLittlePkY); in ConstructEcc224KeyPairParamsSpec()
104 eccKeyPairSpec->sk.data = (IS_BIG_ENDIAN ? g_ecc224CorrectBigSk : g_ecc224CorrectLittleSk); in ConstructEcc224KeyPairParamsSpec()
[all …]
Dcrypto_dsa_sign_test.cpp58 static const bool IS_BIG_ENDIAN = IsBigEndian(); variable
231 .data = IS_BIG_ENDIAN ? g_dsa2048PrivBigE : g_dsa2048PrivLittleE, .len = DSA2048_PRI_SIZE };
233 .data = IS_BIG_ENDIAN ? g_dsa2048PubBigE : g_dsa2048PubLittleE, .len = DSA2048_PUB_SIZE };
234 static HcfBigInteger p_BN = { .data = IS_BIG_ENDIAN ? g_dsa2048PBigE : g_dsa2048PLittleE, .len = DS…
235 static HcfBigInteger q_BN = { .data = IS_BIG_ENDIAN ? g_dsa2048QBigE : g_dsa2048QLittleE, .len = DS…
236 static HcfBigInteger g_BN = { .data = IS_BIG_ENDIAN ? g_dsa2048GBigE : g_dsa2048GLittleE, .len = DS…
Dcrypto_dsa_asy_key_generator_by_spec_test.cpp53 static const bool IS_BIG_ENDIAN = IsBigEndian(); variable
226 .data = IS_BIG_ENDIAN ? g_dsa2048PrivBigE : g_dsa2048PrivLittleE, .len = DSA2048_PRI_SIZE };
228 .data = IS_BIG_ENDIAN ? g_dsa2048PubBigE : g_dsa2048PubLittleE, .len = DSA2048_PUB_SIZE };
229 static HcfBigInteger p_BN = { .data = IS_BIG_ENDIAN ? g_dsa2048PBigE : g_dsa2048PLittleE, .len = DS…
230 static HcfBigInteger q_BN = { .data = IS_BIG_ENDIAN ? g_dsa2048QBigE : g_dsa2048QLittleE, .len = DS…
231 static HcfBigInteger g_BN = { .data = IS_BIG_ENDIAN ? g_dsa2048GBigE : g_dsa2048GLittleE, .len = DS…
/base/security/device_auth/common_lib/impl/src/
Dhc_tlv_parser.c23 #ifdef IS_BIG_ENDIAN in ParseTlvHead()
36 #ifdef IS_BIG_ENDIAN in ParseTlvHead()
96 #ifdef IS_BIG_ENDIAN in EncodeTlvNode()
110 #ifdef IS_BIG_ENDIAN in EncodeTlvNode()
444 #ifdef IS_BIG_ENDIAN
Dhc_parcel.c101 #ifdef IS_BIG_ENDIAN in ParcelReadWithoutPopData()