Home
last modified time | relevance | path

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

/system/core/libutils/
DUnicode.cpp287 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2) in strzcmp16() argument
290 const char16_t* e2 = s2+n2; in strzcmp16()
299 return n1 < n2 in strzcmp16()
301 : (n1 > n2 in strzcmp16()
306 int strzcmp16_h_n(const char16_t *s1H, size_t n1, const char16_t *s2N, size_t n2) in strzcmp16_h_n() argument
309 const char16_t* e2 = s2N+n2; in strzcmp16_h_n()
320 return n1 < n2 in strzcmp16_h_n()
322 : (n1 > n2 in strzcmp16_h_n()
/system/core/include/utils/
DUnicode.h40 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2);
43 int strzcmp16_h_n(const char16_t *s1H, size_t n1, const char16_t *s2N, size_t n2);
/system/bt/stack/smp/
Dsmp_int.h384 UINT8 *n2, UINT8 *a1, UINT8 *a2,
386 extern void smp_f5_calc_chk (UINT8 *w, UINT8 *n1, UINT8 *n2, UINT8 *a1, UINT8 *a2,
388 extern void smp_f6_calc_chk (UINT8 *w, UINT8 *n1, UINT8 *n2, UINT8 *r,
522 extern BOOLEAN smp_calculate_f5(UINT8 *w, UINT8 *n1, UINT8 *n2, UINT8 *a1, UINT8 *a2,
525 UINT8 *key_id, UINT8 *n1, UINT8 *n2, UINT8 *a1,
528 extern BOOLEAN smp_calculate_f6(UINT8 *w, UINT8 *n1, UINT8 *n2, UINT8 *r, UINT8 *iocap,
Dsmp_keys.c1498 BOOLEAN smp_calculate_f5(UINT8 *w, UINT8 *n1, UINT8 *n2, UINT8 *a1, UINT8 *a2, in smp_calculate_f5() argument
1529 p_prnt = n2; in smp_calculate_f5()
1547 if (!smp_calculate_f5_mackey_or_long_term_key(t, counter_mac_key, key_id, n1, n2, a1, a2, in smp_calculate_f5()
1558 if (!smp_calculate_f5_mackey_or_long_term_key(t, counter_ltk, key_id, n1, n2, a1, a2, in smp_calculate_f5()
1605 UINT8 *key_id, UINT8 *n1, UINT8 *n2, UINT8 *a1, UINT8 *a2, in smp_calculate_f5_mackey_or_long_term_key() argument
1630 p_prnt = n2; in smp_calculate_f5_mackey_or_long_term_key()
1650 ARRAY_TO_STREAM(p, n2, BT_OCTET16_LEN); in smp_calculate_f5_mackey_or_long_term_key()
1847 BOOLEAN smp_calculate_f6(UINT8 *w, UINT8 *n1, UINT8 *n2, UINT8 *r, UINT8 *iocap, UINT8 *a1, in smp_calculate_f6() argument
1865 p_print = n2; in smp_calculate_f6()
1892 ARRAY_TO_STREAM(p, n2, BT_OCTET16_LEN); in smp_calculate_f6()
Daes.c235 { uint_8t p1 = x, p2 = BPOLY, n1 = hibit(x), n2 = 0x80, v1 = 1, v2 = 0; in gf_inv() local
243 while(n2 >= n1) /* divide polynomial p2 by p1 */ in gf_inv()
245 n2 /= n1; /* shift smaller polynomial left */ in gf_inv()
246 p2 ^= (p1 * n2) & 0xff; /* and remove from larger one */ in gf_inv()
247 v2 ^= (v1 * n2); /* shift accumulated value and */ in gf_inv()
248 n2 = hibit(p2); /* add into result */ in gf_inv()
253 if(n2) /* repeat with values swapped */ in gf_inv()
254 while(n1 >= n2) in gf_inv()
256 n1 /= n2; in gf_inv()
/system/core/fs_mgr/
Dfs_mgr.c246 char *n2; in fs_match() local
250 n2 = strdup(in2); in fs_match()
253 remove_trailing_slashes(n2); in fs_match()
255 ret = !strcmp(n1, n2); in fs_match()
258 free(n2); in fs_match()
/system/core/include/mincrypt/
Dp256.h138 const p256_int *n1, const p256_int *n2,
/system/core/libmincrypt/
Dp256_ec.c1246 const p256_int* n1, const p256_int* n2, const p256_int* in_x, in p256_points_mul_vartime() argument
1251 if (p256_is_zero(n1) != 0 && p256_is_zero(n2) != 0) { in p256_points_mul_vartime()
1260 scalar_mult(x2, y2, z2, px, py, n2); in p256_points_mul_vartime()
1262 if (p256_is_zero(n2) != 0) { in p256_points_mul_vartime()
/system/bt/stack/rfcomm/
Drfc_int.h97 UINT8 n2; member
Drfc_ts_frames.c755 p_rx_frame->u.pn.n2 = *p_data++; in rfc_process_mx_message()