• Home
  • Raw
  • Download

Lines Matching refs:ptr

42 	u8 *ptr = buf;  in crypto_dh_encode_key()  local
43 u8 * const end = ptr + len; in crypto_dh_encode_key()
52 ptr = dh_pack_data(ptr, end, &secret, sizeof(secret)); in crypto_dh_encode_key()
53 ptr = dh_pack_data(ptr, end, &params->key_size, in crypto_dh_encode_key()
55 ptr = dh_pack_data(ptr, end, &params->p_size, sizeof(params->p_size)); in crypto_dh_encode_key()
56 ptr = dh_pack_data(ptr, end, &params->q_size, sizeof(params->q_size)); in crypto_dh_encode_key()
57 ptr = dh_pack_data(ptr, end, &params->g_size, sizeof(params->g_size)); in crypto_dh_encode_key()
58 ptr = dh_pack_data(ptr, end, params->key, params->key_size); in crypto_dh_encode_key()
59 ptr = dh_pack_data(ptr, end, params->p, params->p_size); in crypto_dh_encode_key()
60 ptr = dh_pack_data(ptr, end, params->q, params->q_size); in crypto_dh_encode_key()
61 ptr = dh_pack_data(ptr, end, params->g, params->g_size); in crypto_dh_encode_key()
62 if (ptr != end) in crypto_dh_encode_key()
70 const u8 *ptr = buf; in crypto_dh_decode_key() local
76 ptr = dh_unpack_data(&secret, ptr, sizeof(secret)); in crypto_dh_decode_key()
80 ptr = dh_unpack_data(&params->key_size, ptr, sizeof(params->key_size)); in crypto_dh_decode_key()
81 ptr = dh_unpack_data(&params->p_size, ptr, sizeof(params->p_size)); in crypto_dh_decode_key()
82 ptr = dh_unpack_data(&params->q_size, ptr, sizeof(params->q_size)); in crypto_dh_decode_key()
83 ptr = dh_unpack_data(&params->g_size, ptr, sizeof(params->g_size)); in crypto_dh_decode_key()
98 params->key = (void *)ptr; in crypto_dh_decode_key()
99 params->p = (void *)(ptr + params->key_size); in crypto_dh_decode_key()
100 params->q = (void *)(ptr + params->key_size + params->p_size); in crypto_dh_decode_key()
101 params->g = (void *)(ptr + params->key_size + params->p_size + in crypto_dh_decode_key()