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->curve_id, sizeof(params->curve_id)); in crypto_ecdh_encode_key() 50 ptr = ecdh_pack_data(ptr, ¶ms->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(¶ms->curve_id, ptr, sizeof(params->curve_id)); in crypto_ecdh_decode_key() 71 ptr = ecdh_unpack_data(¶ms->key_size, ptr, sizeof(params->key_size)); in crypto_ecdh_decode_key() 78 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 | 183 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()
|
D | jitterentropy-kcapi.c | 64 void jent_zfree(void *ptr) in jent_zfree() argument 66 kzfree(ptr); in jent_zfree()
|
D | jitterentropy.c | 108 void jent_zfree(void *ptr);
|
D | testmgr.c | 3659 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/ |
D | public_key.c | 109 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 …]
|