/lib/crypto/ |
D | poly1305.c | 24 desc->buflen = 0; in poly1305_init_generic() 35 if (unlikely(desc->buflen)) { in poly1305_update_generic() 36 bytes = min(nbytes, POLY1305_BLOCK_SIZE - desc->buflen); in poly1305_update_generic() 37 memcpy(desc->buf + desc->buflen, src, bytes); in poly1305_update_generic() 40 desc->buflen += bytes; in poly1305_update_generic() 42 if (desc->buflen == POLY1305_BLOCK_SIZE) { in poly1305_update_generic() 45 desc->buflen = 0; in poly1305_update_generic() 57 desc->buflen = nbytes; in poly1305_update_generic() 65 if (unlikely(desc->buflen)) { in poly1305_final_generic() 66 desc->buf[desc->buflen++] = 1; in poly1305_final_generic() [all …]
|
D | blake2s.c | 26 const size_t fill = BLAKE2S_BLOCK_SIZE - state->buflen; in blake2s_update() 31 memcpy(state->buf + state->buflen, in, fill); in blake2s_update() 33 state->buflen = 0; in blake2s_update() 43 memcpy(state->buf + state->buflen, in, inlen); in blake2s_update() 44 state->buflen += inlen; in blake2s_update() 52 memset(state->buf + state->buflen, 0, in blake2s_final() 53 BLAKE2S_BLOCK_SIZE - state->buflen); /* Padding */ in blake2s_final() 54 blake2s_compress(state, state->buf, 1, state->buflen); in blake2s_final()
|
/lib/ |
D | test_hexdump.c | 160 static void __init test_hexdump_overflow(size_t buflen, size_t len, in test_hexdump_overflow() argument 174 r = hex_dump_to_buffer(data_b, len, rs, gs, buf, buflen, ascii); in test_hexdump_overflow() 188 f = min_t(int, e + 1, buflen); in test_hexdump_overflow() 189 if (buflen) { in test_hexdump_overflow() 201 len, buflen, strnlen(buf, sizeof(buf))); in test_hexdump_overflow() 208 static void __init test_hexdump_overflow_set(size_t buflen, bool ascii) in test_hexdump_overflow_set() argument 217 test_hexdump_overflow(buflen, rounddown(len, gs), rs, gs, ascii); in test_hexdump_overflow_set()
|
D | scatterlist.c | 138 void sg_init_one(struct scatterlist *sg, const void *buf, unsigned int buflen) in sg_init_one() argument 141 sg_set_buf(sg, buf, buflen); in sg_init_one() 949 size_t buflen, off_t skip, bool to_buffer) in sg_copy_buffer() argument 965 while ((offset < buflen) && sg_miter_next(&miter)) { in sg_copy_buffer() 968 len = min(miter.length, buflen - offset); in sg_copy_buffer() 995 const void *buf, size_t buflen) in sg_copy_from_buffer() argument 997 return sg_copy_buffer(sgl, nents, (void *)buf, buflen, 0, false); in sg_copy_from_buffer() 1012 void *buf, size_t buflen) in sg_copy_to_buffer() argument 1014 return sg_copy_buffer(sgl, nents, buf, buflen, 0, true); in sg_copy_to_buffer() 1030 const void *buf, size_t buflen, off_t skip) in sg_pcopy_from_buffer() argument [all …]
|
D | kobject_uevent.c | 254 int buffer_size = sizeof(env->buf) - env->buflen; in init_uevent_argv() 257 len = strlcpy(&env->buf[env->buflen], subsystem, buffer_size); in init_uevent_argv() 265 env->argv[1] = &env->buf[env->buflen]; in init_uevent_argv() 268 env->buflen += len + 1; in init_uevent_argv() 290 skb = alloc_skb(len + env->buflen, GFP_KERNEL); in alloc_uevent_skb() 298 skb_put_data(skb, env->buf, env->buflen); in alloc_uevent_skb() 436 env->buflen - len); in zap_modalias_env() 443 env->buflen -= len; in zap_modalias_env() 665 len = vsnprintf(&env->buf[env->buflen], in add_uevent_var() 666 sizeof(env->buf) - env->buflen, in add_uevent_var() [all …]
|
D | bitmap.c | 906 int bitmap_parse(const char *start, unsigned int buflen, in bitmap_parse() argument 909 const char *end = strnchrnul(start, buflen, '\n') - 1; in bitmap_parse()
|
/lib/mpi/ |
D | mpicoder.c | 556 size_t buflen, size_t *nwritten, MPI a) in mpi_print() argument 577 len = buflen; in mpi_print()
|