Home
last modified time | relevance | path

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

/crypto/
Drsa-pkcs1pad.c281 unsigned int pos; in pkcs1pad_decrypt_complete() local
305 for (pos = 1; pos < dst_len; pos++) in pkcs1pad_decrypt_complete()
306 if (out_buf[pos] == 0x00) in pkcs1pad_decrypt_complete()
308 if (pos < 9 || pos == dst_len) in pkcs1pad_decrypt_complete()
310 pos++; in pkcs1pad_decrypt_complete()
314 if (req->dst_len < dst_len - pos) in pkcs1pad_decrypt_complete()
316 req->dst_len = dst_len - pos; in pkcs1pad_decrypt_complete()
321 out_buf + pos, req->dst_len); in pkcs1pad_decrypt_complete()
442 unsigned int pos; in pkcs1pad_verify_complete() local
467 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.c286 unsigned int pos = 0; in crypto_aegis128_process_ad() local
295 if (pos + size >= AEGIS_BLOCK_SIZE) { in crypto_aegis128_process_ad()
296 if (pos > 0) { in crypto_aegis128_process_ad()
297 unsigned int fill = AEGIS_BLOCK_SIZE - pos; in crypto_aegis128_process_ad()
298 memcpy(buf.bytes + pos, src, fill); in crypto_aegis128_process_ad()
300 pos = 0; in crypto_aegis128_process_ad()
310 memcpy(buf.bytes + pos, src, left); in crypto_aegis128_process_ad()
312 pos += left; in crypto_aegis128_process_ad()
319 if (pos > 0) { in crypto_aegis128_process_ad()
320 memset(buf.bytes + pos, 0, AEGIS_BLOCK_SIZE - pos); in crypto_aegis128_process_ad()
Dghash-generic.c87 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update() local
93 *pos++ ^= *src++; in ghash_update()
Dnhpoly1305.c107 unsigned int pos; in nhpoly1305_units() local
110 pos = NH_MESSAGE_BYTES - state->nh_remaining; in nhpoly1305_units()
112 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.c333 const unsigned char *pos = curr->buf; in drbg_ctr_bcc() local
344 out[cnt] ^= *pos; in drbg_ctr_bcc()
345 pos++; in drbg_ctr_bcc()
2051 int pos = 0; in drbg_fill_array() local
2057 pos = 8; in drbg_fill_array()
2060 pos = 10; in drbg_fill_array()
2062 memcpy(alg->base.cra_driver_name + pos, core->cra_name, in drbg_fill_array()