Searched refs:ptr (Results 1 – 8 of 8) sorted by relevance
/crypto/ |
D | dh_helper.c | 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, ¶ms->key_size, in crypto_dh_encode_key() 55 ptr = dh_pack_data(ptr, end, ¶ms->p_size, sizeof(params->p_size)); in crypto_dh_encode_key() 56 ptr = dh_pack_data(ptr, end, ¶ms->q_size, sizeof(params->q_size)); in crypto_dh_encode_key() 57 ptr = dh_pack_data(ptr, end, ¶ms->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 …]
|
D | ecdh_helper.c | 36 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, ¶ms->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(¶ms->key_size, ptr, sizeof(params->key_size)); in crypto_ecdh_decode_key() 79 params->key = (void *)ptr; in crypto_ecdh_decode_key()
|
D | rsa_helper.c | 20 const u8 *ptr = value; in rsa_get_n() local 28 while (n_sz && !*ptr) { in rsa_get_n() 29 ptr++; in rsa_get_n()
|
D | ansi_cprng.c | 184 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()
|
D | jitterentropy-kcapi.c | 58 void jent_zfree(void *ptr) in jent_zfree() argument 60 kfree_sensitive(ptr); in jent_zfree()
|
D | jitterentropy.h | 4 extern void jent_zfree(void *ptr);
|
D | testmgr.c | 3929 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/ |
D | public_key.c | 157 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 …]
|