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->key_size, sizeof(params->key_size)); in crypto_ecdh_encode_key()
50 ecdh_pack_data(ptr, params->key, params->key_size); in crypto_ecdh_encode_key()
59 const u8 *ptr = buf; in crypto_ecdh_decode_key() local
65 ptr = ecdh_unpack_data(&secret, ptr, sizeof(secret)); in crypto_ecdh_decode_key()
72 ptr = ecdh_unpack_data(&params->key_size, ptr, sizeof(params->key_size)); in crypto_ecdh_decode_key()
79 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.c184 unsigned char *ptr = buf; in get_prng_bytes() local
231 *ptr = ctx->rand_data[ctx->rand_data_valid]; in get_prng_bytes()
232 ptr++; in get_prng_bytes()
253 memcpy(ptr, ctx->rand_data, DEFAULT_BLK_SZ); in get_prng_bytes()
255 ptr += DEFAULT_BLK_SZ; in get_prng_bytes()
Djitterentropy-kcapi.c58 void jent_zfree(void *ptr) in jent_zfree() argument
60 kfree_sensitive(ptr); in jent_zfree()
Djitterentropy.h4 extern void jent_zfree(void *ptr);
Dtestmgr.c3929 u8 *key, *ptr; in test_akcipher_one() local
3945 ptr = key + vecs->key_len; in test_akcipher_one()
3946 ptr = test_pack_u32(ptr, vecs->algo); in test_akcipher_one()
3947 ptr = test_pack_u32(ptr, vecs->param_len); in test_akcipher_one()
3948 memcpy(ptr, vecs->params, vecs->param_len); in test_akcipher_one()
/crypto/asymmetric_keys/
Dpublic_key.c157 u8 *key, *ptr; in software_key_query() local
175 ptr = key + pkey->keylen; in software_key_query()
176 ptr = pkey_pack_u32(ptr, pkey->algo); in software_key_query()
177 ptr = pkey_pack_u32(ptr, pkey->paramlen); in software_key_query()
178 memcpy(ptr, pkey->params, pkey->paramlen); in software_key_query()
240 char *key, *ptr; in software_key_eds_op() local
265 ptr = key + pkey->keylen; in software_key_eds_op()
266 ptr = pkey_pack_u32(ptr, pkey->algo); in software_key_eds_op()
267 ptr = pkey_pack_u32(ptr, pkey->paramlen); in software_key_eds_op()
268 memcpy(ptr, pkey->params, pkey->paramlen); in software_key_eds_op()
[all …]