Home
last modified time | relevance | path

Searched refs:cur (Results 1 – 4 of 4) sorted by relevance

/crypto/asymmetric_keys/
Dasym_tpm.c357 uint8_t *cur = buf; in derive_pub_key() local
363 cur = encode_tag_length(cur, 0x30, n_len + e_len); in derive_pub_key()
365 cur = encode_tag_length(cur, 0x02, len + 1); in derive_pub_key()
366 cur[0] = 0x00; in derive_pub_key()
367 memcpy(cur + 1, pub_key, len); in derive_pub_key()
368 cur += len + 1; in derive_pub_key()
369 cur = encode_tag_length(cur, 0x02, sizeof(e)); in derive_pub_key()
370 memcpy(cur, e, sizeof(e)); in derive_pub_key()
371 cur += sizeof(e); in derive_pub_key()
373 memzero_explicit(cur, SETKEY_PARAMS_SIZE); in derive_pub_key()
[all …]
/crypto/
Daf_alg.c498 if (!sg || sgl->cur >= MAX_SGL_ENTS) { in af_alg_alloc_tsgl()
506 sgl->cur = 0; in af_alg_alloc_tsgl()
542 for (i = 0; i < sgl->cur; i++) { in af_alg_count_tsgl()
598 for (i = 0; i < sgl->cur; i++) { in af_alg_pull_tsgl()
884 sg = sgl->sg + sgl->cur - 1; in af_alg_sendmsg()
920 if (sgl->cur) in af_alg_sendmsg()
921 sg_unmark_end(sg + sgl->cur - 1); in af_alg_sendmsg()
924 unsigned int i = sgl->cur; in af_alg_sendmsg()
947 sgl->cur++; in af_alg_sendmsg()
948 } while (len && sgl->cur < MAX_SGL_ENTS); in af_alg_sendmsg()
[all …]
Dtcrypt.c376 struct test_mb_aead_data *cur = &data[j]; in test_mb_aead_speed() local
378 assoc = cur->axbuf[0]; in test_mb_aead_speed()
381 sg_init_aead(cur->sg, cur->xbuf, in test_mb_aead_speed()
385 sg_init_aead(cur->sgout, cur->xoutbuf, in test_mb_aead_speed()
389 aead_request_set_ad(cur->req, aad_size); in test_mb_aead_speed()
393 aead_request_set_crypt(cur->req, in test_mb_aead_speed()
394 cur->sgout, in test_mb_aead_speed()
395 cur->sg, in test_mb_aead_speed()
397 ret = crypto_aead_encrypt(cur->req); in test_mb_aead_speed()
398 ret = do_one_aead_op(cur->req, ret); in test_mb_aead_speed()
[all …]
Dalgif_aead.c183 for (i = 0; i < tsgl->cur; i++) { in _aead_recvmsg()