Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 8 of 8) 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()
Dpolyval-generic.c157 u8 *pos; in polyval_update() local
163 pos = dctx->buffer + dctx->bytes - 1; in polyval_update()
169 *pos-- ^= *src++; in polyval_update()
185 pos = dctx->buffer + POLYVAL_BLOCK_SIZE - 1; in polyval_update()
187 *pos-- ^= *src++; in polyval_update()
Daegis128-core.c283 unsigned int pos = 0; in crypto_aegis128_process_ad() local
292 if (pos + size >= AEGIS_BLOCK_SIZE) { in crypto_aegis128_process_ad()
293 if (pos > 0) { in crypto_aegis128_process_ad()
294 unsigned int fill = AEGIS_BLOCK_SIZE - pos; in crypto_aegis128_process_ad()
295 memcpy(buf.bytes + pos, src, fill); in crypto_aegis128_process_ad()
297 pos = 0; in crypto_aegis128_process_ad()
307 memcpy(buf.bytes + pos, src, left); in crypto_aegis128_process_ad()
309 pos += left; in crypto_aegis128_process_ad()
316 if (pos > 0) { in crypto_aegis128_process_ad()
317 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()