Home
last modified time | relevance | path

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

/crypto/
Drsa-pkcs1pad.c282 unsigned int pos; in pkcs1pad_decrypt_complete() local
306 for (pos = 1; pos < dst_len; pos++) in pkcs1pad_decrypt_complete()
307 if (out_buf[pos] == 0x00) in pkcs1pad_decrypt_complete()
309 if (pos < 9 || pos == dst_len) in pkcs1pad_decrypt_complete()
311 pos++; in pkcs1pad_decrypt_complete()
315 if (req->dst_len < dst_len - pos) in pkcs1pad_decrypt_complete()
317 req->dst_len = dst_len - pos; in pkcs1pad_decrypt_complete()
322 out_buf + pos, req->dst_len); in pkcs1pad_decrypt_complete()
444 unsigned int pos; in pkcs1pad_verify_complete() local
469 for (pos = 1; pos < dst_len; pos++) in pkcs1pad_verify_complete()
[all …]
Dproc.c20 static void *c_start(struct seq_file *m, loff_t *pos) in c_start() argument
23 return seq_list_start(&crypto_alg_list, *pos); in c_start()
26 static void *c_next(struct seq_file *m, void *p, loff_t *pos) in c_next() argument
28 return seq_list_next(p, &crypto_alg_list, pos); in c_next()
Daegis128-core.c287 unsigned int pos = 0; in crypto_aegis128_process_ad() local
296 if (pos + size >= AEGIS_BLOCK_SIZE) { in crypto_aegis128_process_ad()
297 if (pos > 0) { in crypto_aegis128_process_ad()
298 unsigned int fill = AEGIS_BLOCK_SIZE - pos; in crypto_aegis128_process_ad()
299 memcpy(buf.bytes + pos, src, fill); in crypto_aegis128_process_ad()
301 pos = 0; in crypto_aegis128_process_ad()
311 memcpy(buf.bytes + pos, src, left); in crypto_aegis128_process_ad()
313 pos += left; in crypto_aegis128_process_ad()
320 if (pos > 0) { in crypto_aegis128_process_ad()
321 memset(buf.bytes + pos, 0, AEGIS_BLOCK_SIZE - pos); in crypto_aegis128_process_ad()
Dghash-generic.c89 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update() local
95 *pos++ ^= *src++; in ghash_update()
Dnhpoly1305.c106 unsigned int pos; in nhpoly1305_units() local
109 pos = NH_MESSAGE_BYTES - state->nh_remaining; in nhpoly1305_units()
111 nh_fn(&key->nh_key[pos / 4], src, bytes, tmp_hash); in nhpoly1305_units()
Dcrypto_user_base.c227 size_t pos = 0; in crypto_dump_report() local
239 if (pos >= start_pos) { in crypto_dump_report()
246 pos++; in crypto_dump_report()
248 cb->args[0] = pos; in crypto_dump_report()
Ddrbg.c332 const unsigned char *pos = curr->buf; in drbg_ctr_bcc() local
343 out[cnt] ^= *pos; in drbg_ctr_bcc()
344 pos++; in drbg_ctr_bcc()
2057 int pos = 0; in drbg_fill_array() local
2063 pos = 8; in drbg_fill_array()
2066 pos = 10; in drbg_fill_array()
2068 memcpy(alg->base.cra_driver_name + pos, core->cra_name, in drbg_fill_array()
Dtestmgr.c767 size_t pos; in mutate_buffer() local
773 pos = prandom_u32() % (count * 8); in mutate_buffer()
774 buf[pos / 8] ^= 1 << (pos % 8); in mutate_buffer()