Home
last modified time | relevance | path

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

/crypto/
A Dzstd.c105 unsigned int pos, scur, dcur; in zstd_compress() local
136 outbuf.pos = 0; in zstd_compress()
151 inbuf.pos = 0; in zstd_compress()
171 } while (dcur != outbuf.pos); in zstd_compress()
173 total_out += outbuf.pos; in zstd_compress()
177 pos = outbuf.pos; in zstd_compress()
182 total_out += (outbuf.pos - pos); in zstd_compress()
241 inbuf.pos = 0; in zstd_decompress()
263 outbuf.pos = 0; in zstd_decompress()
273 total_out += outbuf.pos; in zstd_decompress()
[all …]
A Drsassa-pkcs1.c229 unsigned int pos; in rsassa_pkcs1_verify() local
277 for (pos = 1; pos < dst_len; pos++) in rsassa_pkcs1_verify()
278 if (out_buf[pos] != 0xff) in rsassa_pkcs1_verify()
281 if (pos < 9 || pos == dst_len || out_buf[pos] != 0x00) in rsassa_pkcs1_verify()
283 pos++; in rsassa_pkcs1_verify()
285 if (hash_prefix->size > dst_len - pos) in rsassa_pkcs1_verify()
287 if (crypto_memneq(out_buf + pos, hash_prefix->data, hash_prefix->size)) in rsassa_pkcs1_verify()
289 pos += hash_prefix->size; in rsassa_pkcs1_verify()
292 if (dlen != dst_len - pos) in rsassa_pkcs1_verify()
294 if (memcmp(digest, out_buf + pos, dlen) != 0) in rsassa_pkcs1_verify()
A Drsa-pkcs1pad.c181 unsigned int pos; in pkcs1pad_decrypt_complete() local
205 for (pos = 1; pos < dst_len; pos++) in pkcs1pad_decrypt_complete()
206 if (out_buf[pos] == 0x00) in pkcs1pad_decrypt_complete()
208 if (pos < 9 || pos == dst_len) in pkcs1pad_decrypt_complete()
210 pos++; in pkcs1pad_decrypt_complete()
214 if (req->dst_len < dst_len - pos) in pkcs1pad_decrypt_complete()
216 req->dst_len = dst_len - pos; in pkcs1pad_decrypt_complete()
221 out_buf + pos, req->dst_len); in pkcs1pad_decrypt_complete()
A Dproc.c21 static void *c_start(struct seq_file *m, loff_t *pos) in c_start() argument
24 return seq_list_start(&crypto_alg_list, *pos); in c_start()
27 static void *c_next(struct seq_file *m, void *p, loff_t *pos) in c_next() argument
29 return seq_list_next(p, &crypto_alg_list, pos); in c_next()
A Daegis128-core.c283 unsigned int pos = 0; in crypto_aegis128_process_ad() local
291 if (pos + size >= AEGIS_BLOCK_SIZE) { in crypto_aegis128_process_ad()
292 if (pos > 0) { in crypto_aegis128_process_ad()
293 unsigned int fill = AEGIS_BLOCK_SIZE - pos; in crypto_aegis128_process_ad()
294 memcpy(buf.bytes + pos, src, fill); in crypto_aegis128_process_ad()
296 pos = 0; in crypto_aegis128_process_ad()
306 memcpy(buf.bytes + pos, src, left); in crypto_aegis128_process_ad()
308 pos += left; in crypto_aegis128_process_ad()
313 if (pos > 0) { in crypto_aegis128_process_ad()
314 memset(buf.bytes + pos, 0, AEGIS_BLOCK_SIZE - pos); in crypto_aegis128_process_ad()
A 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()
A Dcrypto_user.c210 size_t pos = 0; in crypto_dump_report() local
222 if (pos >= start_pos) { in crypto_dump_report()
229 pos++; in crypto_dump_report()
231 cb->args[0] = pos; in crypto_dump_report()
A Ddrbg.c323 const unsigned char *pos = curr->buf; in drbg_ctr_bcc() local
334 out[cnt] ^= *pos; in drbg_ctr_bcc()
335 pos++; in drbg_ctr_bcc()
2063 int pos = 0; in drbg_fill_array() local
2069 pos = 8; in drbg_fill_array()
2072 pos = 10; in drbg_fill_array()
2074 memcpy(alg->base.cra_driver_name + pos, core->cra_name, in drbg_fill_array()

Completed in 23 milliseconds