Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 8 of 8) sorted by relevance

/crypto/
Ddh_helper.c42 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()
[all …]
Decdh_helper.c36 u8 *ptr = buf; in crypto_ecdh_encode_key() local
48 ptr = ecdh_pack_data(ptr, &secret, sizeof(secret)); in crypto_ecdh_encode_key()
49 ptr = ecdh_pack_data(ptr, &params->curve_id, sizeof(params->curve_id)); in crypto_ecdh_encode_key()
50 ptr = ecdh_pack_data(ptr, &params->key_size, sizeof(params->key_size)); in crypto_ecdh_encode_key()
51 ecdh_pack_data(ptr, params->key, params->key_size); in crypto_ecdh_encode_key()
60 const u8 *ptr = buf; in crypto_ecdh_decode_key() local
66 ptr = ecdh_unpack_data(&secret, ptr, sizeof(secret)); in crypto_ecdh_decode_key()
70 ptr = ecdh_unpack_data(&params->curve_id, ptr, sizeof(params->curve_id)); in crypto_ecdh_decode_key()
71 ptr = ecdh_unpack_data(&params->key_size, ptr, sizeof(params->key_size)); in crypto_ecdh_decode_key()
78 params->key = (void *)ptr; in crypto_ecdh_decode_key()
Drsa_helper.c20 const u8 *ptr = value; in rsa_get_n() local
28 while (n_sz && !*ptr) { in rsa_get_n()
29 ptr++; in rsa_get_n()
Dansi_cprng.c183 unsigned char *ptr = buf; in get_prng_bytes() local
230 *ptr = ctx->rand_data[ctx->rand_data_valid]; in get_prng_bytes()
231 ptr++; in get_prng_bytes()
252 memcpy(ptr, ctx->rand_data, DEFAULT_BLK_SZ); in get_prng_bytes()
254 ptr += DEFAULT_BLK_SZ; in get_prng_bytes()
Djitterentropy-kcapi.c64 void jent_zfree(void *ptr) in jent_zfree() argument
66 kzfree(ptr); in jent_zfree()
Djitterentropy.c108 void jent_zfree(void *ptr);
Dtestmgr.c3659 u8 *key, *ptr; in test_akcipher_one() local
3675 ptr = key + vecs->key_len; in test_akcipher_one()
3676 ptr = test_pack_u32(ptr, vecs->algo); in test_akcipher_one()
3677 ptr = test_pack_u32(ptr, vecs->param_len); in test_akcipher_one()
3678 memcpy(ptr, vecs->params, vecs->param_len); in test_akcipher_one()
/crypto/asymmetric_keys/
Dpublic_key.c109 u8 *key, *ptr; in software_key_query() local
127 ptr = key + pkey->keylen; in software_key_query()
128 ptr = pkey_pack_u32(ptr, pkey->algo); in software_key_query()
129 ptr = pkey_pack_u32(ptr, pkey->paramlen); in software_key_query()
130 memcpy(ptr, pkey->params, pkey->paramlen); in software_key_query()
172 char *key, *ptr; in software_key_eds_op() local
198 ptr = key + pkey->keylen; in software_key_eds_op()
199 ptr = pkey_pack_u32(ptr, pkey->algo); in software_key_eds_op()
200 ptr = pkey_pack_u32(ptr, pkey->paramlen); in software_key_eds_op()
201 memcpy(ptr, pkey->params, pkey->paramlen); in software_key_eds_op()
[all …]