Home
last modified time | relevance | path

Searched refs:keyLength (Results 1 – 7 of 7) sorted by relevance

/system/bt/stack/smp/
Dp_256_ecc_pp.cc41 static void ECC_Double(Point* q, Point* p, uint32_t keyLength) { in ECC_Double() argument
52 if (multiprecision_iszero(p->z, keyLength)) { in ECC_Double()
53 multiprecision_init(q->z, keyLength); in ECC_Double()
64 multiprecision_mersenns_squa_mod(t1, z1, keyLength); // t1=z1^2 in ECC_Double()
65 multiprecision_sub_mod(t2, x1, t1, keyLength); // t2=x1-t1 in ECC_Double()
66 multiprecision_add_mod(t1, x1, t1, keyLength); // t1=x1+t1 in ECC_Double()
67 multiprecision_mersenns_mult_mod(t2, t1, t2, keyLength); // t2=t2*t1 in ECC_Double()
68 multiprecision_lshift_mod(t3, t2, keyLength); in ECC_Double()
69 multiprecision_add_mod(t2, t3, t2, keyLength); // t2=3t2 in ECC_Double()
71 multiprecision_mersenns_mult_mod(z3, y1, z1, keyLength); // z3=y1*z1 in ECC_Double()
[all …]
Dp_256_multprecision.h36 int multiprecision_compare(uint32_t* a, uint32_t* b, uint32_t keyLength);
37 int multiprecision_iszero(uint32_t* a, uint32_t keyLength);
38 void multiprecision_init(uint32_t* c, uint32_t keyLength);
39 void multiprecision_copy(uint32_t* c, uint32_t* a, uint32_t keyLength);
41 uint32_t multiprecision_most_signdwords(uint32_t* a, uint32_t keyLength);
42 uint32_t multiprecision_most_signbits(uint32_t* a, uint32_t keyLength);
43 void multiprecision_inv_mod(uint32_t* aminus, uint32_t* a, uint32_t keyLength);
45 uint32_t keyLength); // c=a+b
47 uint32_t keyLength);
49 uint32_t keyLength); // c=a-b
[all …]
Dp_256_multprecision.cc30 void multiprecision_init(uint32_t* c, uint32_t keyLength) { in multiprecision_init() argument
31 for (uint32_t i = 0; i < keyLength; i++) c[i] = 0; in multiprecision_init()
34 void multiprecision_copy(uint32_t* c, uint32_t* a, uint32_t keyLength) { in multiprecision_copy() argument
35 for (uint32_t i = 0; i < keyLength; i++) c[i] = a[i]; in multiprecision_copy()
38 int multiprecision_compare(uint32_t* a, uint32_t* b, uint32_t keyLength) { in multiprecision_compare() argument
39 for (int i = keyLength - 1; i >= 0; i--) { in multiprecision_compare()
46 int multiprecision_iszero(uint32_t* a, uint32_t keyLength) { in multiprecision_iszero() argument
47 for (uint32_t i = 0; i < keyLength; i++) in multiprecision_iszero()
61 uint32_t multiprecision_most_signdwords(uint32_t* a, uint32_t keyLength) { in multiprecision_most_signdwords() argument
63 for (i = keyLength - 1; i >= 0; i--) in multiprecision_most_signdwords()
[all …]
Dp_256_ecc_pp.h61 void ECC_PointMult_Bin_NAF(Point* q, Point* p, uint32_t* n, uint32_t keyLength);
63 #define ECC_PointMult(q, p, n, keyLength) \ argument
64 ECC_PointMult_Bin_NAF(q, p, n, keyLength)
66 void p_256_init_curve(uint32_t keyLength);
Dp_256_curvepara.cc28 void p_256_init_curve(uint32_t keyLength) { in p_256_init_curve() argument
31 if (keyLength == KEY_LENGTH_DWORDS_P256) { in p_256_init_curve()
/system/security/keystore/
Dkeystore_get_wifi_hidl.cpp36 ssize_t keystore_get(const char *key, size_t keyLength, uint8_t** value) { in keystore_get() argument
37 if (key == nullptr || keyLength == 0 || value == nullptr) { in keystore_get()
58 Return<void> ret = service->getBlob(hidl_string(key, keyLength), cb); in keystore_get()
Dkeystore_get.cpp26 ssize_t keystore_get(const char* key, size_t keyLength, uint8_t** value) { in keystore_get() argument
37 auto ret = service->get(String16(key, keyLength), -1, &result); in keystore_get()