Home
last modified time | relevance | path

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

/device/soc/esp/esp32/components/bt/host/bluedroid/stack/smp/
Dp_256_ecc_pp.c50 static void ECC_Double(Point *q, Point *p, uint32_t keyLength) in ECC_Double() argument
62 if (multiprecision_iszero(p->z, keyLength)) { in ECC_Double()
63 multiprecision_init(q->z, keyLength); in ECC_Double()
70 multiprecision_mersenns_squa_mod(t1, z1, keyLength); // t1=z1^2 in ECC_Double()
71 multiprecision_sub_mod(t2, x1, t1, keyLength); // t2=x1-t1 in ECC_Double()
72 multiprecision_add_mod(t1, x1, t1, keyLength); // t1=x1+t1 in ECC_Double()
73 multiprecision_mersenns_mult_mod(t2, t1, t2, keyLength); // t2=t2*t1 in ECC_Double()
74 multiprecision_lshift_mod(t3, t2, keyLength); in ECC_Double()
75 multiprecision_add_mod(t2, t3, t2, keyLength); // t2=3t2 in ECC_Double()
77 multiprecision_mersenns_mult_mod(z3, y1, z1, keyLength); // z3=y1*z1 in ECC_Double()
[all …]
Dp_256_multprecision.c30 void multiprecision_init(DWORD *c, uint32_t keyLength) in multiprecision_init() argument
32 for (uint32_t i = 0; i < keyLength; i++) { in multiprecision_init()
37 void multiprecision_copy(DWORD *c, DWORD *a, uint32_t keyLength) in multiprecision_copy() argument
39 for (uint32_t i = 0; i < keyLength; i++) { in multiprecision_copy()
44 int multiprecision_compare(DWORD *a, DWORD *b, uint32_t keyLength) in multiprecision_compare() argument
46 for (int i = keyLength - 1; i >= 0; i--) { in multiprecision_compare()
57 int multiprecision_iszero(DWORD *a, uint32_t keyLength) in multiprecision_iszero() argument
59 for (uint32_t i = 0; i < keyLength; i++) in multiprecision_iszero()
78 UINT32 multiprecision_most_signdwords(DWORD *a, uint32_t keyLength) in multiprecision_most_signdwords() argument
81 for (i = keyLength - 1; i >= 0; i--) in multiprecision_most_signdwords()
[all …]
Dp_256_curvepara.c28 void p_256_init_curve(UINT32 keyLength) in p_256_init_curve() argument
32 if (keyLength == KEY_LENGTH_DWORDS_P256) { in p_256_init_curve()
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/smp/include/
Dp_256_multprecision.h39 int multiprecision_compare(DWORD *a, DWORD *b, uint32_t keyLength);
40 int multiprecision_iszero(DWORD *a, uint32_t keyLength);
41 void multiprecision_init(DWORD *c, uint32_t keyLength);
42 void multiprecision_copy(DWORD *c, DWORD *a, uint32_t keyLength);
44 UINT32 multiprecision_most_signdwords(DWORD *a, uint32_t keyLength);
45 UINT32 multiprecision_most_signbits(DWORD *a, uint32_t keyLength);
46 void multiprecision_inv_mod(DWORD *aminus, DWORD *a, uint32_t keyLength);
47 DWORD multiprecision_add(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a+b
48 void multiprecision_add_mod(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength);
49 DWORD multiprecision_sub(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a-b
[all …]
Dp_256_ecc_pp.h68 void ECC_PointMult_Bin_NAF(Point *q, Point *p, DWORD *n, uint32_t keyLength);
72 #define ECC_PointMult(q, p, n, keyLength) ECC_PointMult_Bin_NAF(q, p, n, keyLength) argument
74 void p_256_init_curve(UINT32 keyLength);
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/wlan/
Dwsm.h1411 u8 keyLength; /* Key length in bytes */ member
1417 u8 keyLength; /* Key length in bytes */ member
Dsta.c1197 wsm_key->wepPairwiseKey.keyLength = key->keylen; in xradio_set_key()
1204 wsm_key->wepGroupKey.keyLength = key->keylen; in xradio_set_key()