Searched refs:nbytes (Results 51 - 75 of 264) sorted by relevance

1234567891011

/freebsd-current/crypto/openssl/engines/
H A De_padlock.c314 const unsigned char *in_arg, size_t nbytes)
317 ALIGNED_CIPHER_DATA(ctx), nbytes);
322 const unsigned char *in_arg, size_t nbytes)
328 if ((ret = padlock_cbc_encrypt(out_arg, in_arg, cdata, nbytes)))
335 const unsigned char *in_arg, size_t nbytes)
347 while (chunk < AES_BLOCK_SIZE && nbytes != 0) {
349 chunk++, nbytes--;
351 while (chunk < AES_BLOCK_SIZE && nbytes != 0) {
354 ivp[chunk++] = c, nbytes--;
360 if (nbytes
313 padlock_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out_arg, const unsigned char *in_arg, size_t nbytes) argument
321 padlock_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out_arg, const unsigned char *in_arg, size_t nbytes) argument
334 padlock_cfb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out_arg, const unsigned char *in_arg, size_t nbytes) argument
405 padlock_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out_arg, const unsigned char *in_arg, size_t nbytes) argument
469 padlock_ctr_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out_arg, const unsigned char *in_arg, size_t nbytes) argument
[all...]
/freebsd-current/contrib/tcsh/
H A Dtc.alloc.c177 malloc(size_t nbytes) argument
198 nbytes++;
201 nbytes = MEMALIGN(MEMALIGN(sizeof(union overhead)) + nbytes + RSLOP);
202 shiftr = (nbytes - 1) >> 2;
219 xprintf(CGETS(19, 1, "nbytes=%zu: Out of memory\n"), nbytes);
234 p->ov_size = (p->ov_index <= 13) ? (U_short)nbytes - 1 : 0;
236 *((U_int *) (((caddr_t) p) + nbytes - RSLOP)) = RMAGIC;
240 if (nbytes)
386 realloc(ptr_t cp, size_t nbytes) argument
[all...]
/freebsd-current/contrib/arm-optimized-routines/networking/
H A Dchksum_common.h82 slurp_small(const void *ptr, uint32_t nbytes) argument
86 while (nbytes >= 4)
90 nbytes -= 4;
92 if (nbytes & 2)
97 if (nbytes & 1)
/freebsd-current/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_bcmraw.c147 size_t limit, nbytes; local
156 nbytes = 0;
166 if (outp == NULL || limit < nbytes) {
170 p = ((char *)outp) + nbytes;
171 prop_limit = limit - nbytes;
190 if (SIZE_MAX - nbytes < name_len)
193 nbytes += name_len;
212 if (SIZE_MAX - nbytes < value_len)
215 nbytes += value_len;
219 if (limit > nbytes)
[all...]
H A Dbhnd_nvram_value_fmts.c388 size_t limit, nbytes; local
422 nbytes = 0;
531 nbytes += sizeof(uint16_t);
532 if (limit >= nbytes)
540 nbytes += sizeof(uint32_t);
541 if (limit >= nbytes)
551 *olen = nbytes;
554 if (limit < nbytes && outp != NULL)
970 size_t nbytes, ndigits; local
972 nbytes
[all...]
H A Dbhnd_nvram_subr.c686 * @param[out] nbytes On success or failure, will be set to the total
709 size_t *nbytes, void *outp, size_t *olen, bhnd_nvram_type otype)
728 /* We always need a byte count. If the caller provides a NULL nbytes,
730 if (nbytes == NULL)
731 nbytes = &local_nbytes;
735 *nbytes = 0;
744 for (; *nbytes < maxlen; (*nbytes)++) {
745 if (!bhnd_nv_isspace(str[*nbytes]))
750 if (*nbytes
708 bhnd_nvram_parse_int(const char *str, size_t maxlen, u_int base, size_t *nbytes, void *outp, size_t *olen, bhnd_nvram_type otype) argument
[all...]
H A Dbhnd_nvram_data_btxt.c348 size_t limit, nbytes; local
357 nbytes = 0;
367 if (outp == NULL || limit < nbytes) {
371 p = ((char *)outp) + nbytes;
372 prop_limit = limit - nbytes;
391 if (SIZE_MAX - nbytes < name_len)
394 nbytes += name_len;
419 if (SIZE_MAX - nbytes < value_len)
422 nbytes += value_len;
426 *olen = nbytes;
799 size_t nbytes; local
838 size_t nbytes; local
878 size_t nbytes; local
[all...]
/freebsd-current/tests/sys/kern/
H A Dsocket_msg_trunc.c167 ssize_t nbytes; local
176 nbytes = send(sd[0], buf, sizeof(buf), 0);
177 ATF_REQUIRE_MSG(nbytes >= 0, "send failed: %s", strerror(errno));
178 ATF_REQUIRE((size_t)nbytes == sizeof(buf));
191 nbytes = recvmsg(sd[1], &msg, MSG_TRUNC);
192 ATF_REQUIRE_MSG(nbytes >= 0, "recvmsg failed: %s", strerror(errno));
193 ATF_REQUIRE((size_t)nbytes == sizeof(buf));
200 nbytes = read(fd, &ktr, sizeof(ktr));
201 ATF_REQUIRE_MSG(nbytes >= 0, "read failed: %s", strerror(errno));
202 ATF_REQUIRE((size_t)nbytes
[all...]
/freebsd-current/sys/x86/isa/
H A Disa_dma.c227 isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan) argument
234 dma_range_checked = isa_dmarangecheck(addr, nbytes, chan);
240 if ((chan < 4 && nbytes > (1<<16))
241 || (chan >= 4 && (nbytes > (1<<17) || (uintptr_t)addr & 1)))
265 || dma_bouncebufsize[chan] < nbytes)
272 bcopy(addr, newaddr, nbytes);
313 outb(waport + 1, --nbytes);
314 outb(waport + 1, nbytes>>8);
346 nbytes >>= 1;
347 outb(waport + 2, --nbytes);
357 isa_dmadone(int flags, caddr_t addr, int nbytes, int chan) argument
[all...]
/freebsd-current/contrib/ntp/libntp/lib/isc/
H A Dnetaddr.c75 unsigned int nbytes; /* Number of significant whole bytes */ local
107 nbytes = prefixlen / 8;
110 if (nbytes > 0) {
111 if (memcmp(pa, pb, nbytes) != 0)
116 INSIST(nbytes < ipabytes);
118 bytea = pa[nbytes];
119 byteb = pb[nbytes];
218 unsigned int nbits, nbytes, ipbytes = 0; local
237 nbytes = prefixlen / 8;
240 if ((p[nbytes]
251 unsigned int nbits = 0, nbytes = 0, ipbytes = 0, i; local
[all...]
/freebsd-current/contrib/libfido2/fuzz/
H A Dpreload-snoop.c164 read(int fd, void *buf, size_t nbytes) argument
187 return (read_f(fd, buf, nbytes));
189 if ((n = read_f(fd, buf, nbytes)) < 0 ||
197 write(int fd, const void *buf, size_t nbytes) argument
211 return (write_f(fd, buf, nbytes));
213 if ((n = write_f(fd, buf, nbytes)) < 0 ||
/freebsd-current/sys/dev/random/fenestrasX/
H A Dfx_main.c143 _fxrng_alg_read(uint8_t *output, size_t nbytes, uint64_t *seed_version_out) argument
251 fxrng_brng_read(rng, output, nbytes);
256 fxrng_alg_read(uint8_t *output, size_t nbytes) argument
258 _fxrng_alg_read(output, nbytes, NULL);
266 read_random_key(void *output, size_t nbytes, uint64_t *seed_version_out) argument
272 _fxrng_alg_read(output, nbytes, seed_version_out);
/freebsd-current/contrib/netbsd-tests/fs/hfs/
H A Dt_pathconvert.c40 int offset, nbytes; local
60 RL(nbytes = rump_sys_getdents(dirfd, buf, sizeof buf));
62 for (offset = 0; offset < nbytes; offset += dirent->d_reclen) {
/freebsd-current/sys/crypto/aesni/
H A Daesni.h103 unsigned char *tag, uint32_t nbytes, uint32_t abytes, int ibytes,
107 const unsigned char *tag, uint32_t nbytes, uint32_t abytes, int ibytes,
113 unsigned char *tag, uint32_t nbytes, uint32_t abytes, int nlen,
117 const unsigned char *tag, uint32_t nbytes, uint32_t abytes, int nlen,
H A Daesni_ccm.c192 unsigned char *tag, uint32_t nbytes, uint32_t abytes, int nlen,
220 key, nr, nbytes, tag_length);
232 while (total < nbytes) {
237 copy_amt = MIN(nbytes - total, sizeof(staging_block));
291 decrypt_loop(const unsigned char *in, unsigned char *out, size_t nbytes, argument
307 while (total < nbytes) {
308 size_t copy_amt = MIN(nbytes - total, sizeof(staging_block));
362 const unsigned char *tag, uint32_t nbytes, uint32_t abytes, int nlen,
386 key, nr, nbytes, tag_length);
395 decrypt_loop(in, NULL, nbytes, s
190 AES_CCM_encrypt(const unsigned char *in, unsigned char *out, const unsigned char *addt, const unsigned char *nonce, unsigned char *tag, uint32_t nbytes, uint32_t abytes, int nlen, int tag_length, const unsigned char *key, int nr) argument
360 AES_CCM_decrypt(const unsigned char *in, unsigned char *out, const unsigned char *addt, const unsigned char *nonce, const unsigned char *tag, uint32_t nbytes, uint32_t abytes, int nlen, int tag_length, const unsigned char *key, int nr) argument
[all...]
/freebsd-current/sys/powerpc/include/
H A Ddump.h43 void *dumpsys_dump_pmap(void *ctx, void *buf, u_long *nbytes);
/freebsd-current/contrib/file/src/
H A Dis_tar.c66 size_t nbytes = b->flen; local
77 tar = is_tar(buf, nbytes);
99 is_tar(const unsigned char *buf, size_t nbytes) argument
110 if (nbytes < sizeof(*header))
H A Dascmagic.c62 trim_nuls(const unsigned char *buf, size_t nbytes) argument
64 while (nbytes > 1 && buf[nbytes - 1] == '\0')
65 nbytes--;
67 return nbytes;
111 size_t nbytes = b->flen; local
133 nbytes = trim_nuls(buf, nbytes);
136 if (nbytes <= 1) {
/freebsd-current/libexec/rtld-elf/
H A Drtld_malloc.c114 __crt_malloc(size_t nbytes) argument
132 while (nbytes > amt - sizeof(*op)) {
251 __crt_realloc(void *cp, size_t nbytes) argument
259 return (__crt_malloc(nbytes));
277 if (nbytes <= onb && nbytes > (size_t)i)
279 if ((res = __crt_malloc(nbytes)) == NULL)
281 bcopy(cp, res, (nbytes < onb) ? nbytes : onb);
/freebsd-current/sys/kern/
H A Dtty_outq.c277 ttyoutq_write(struct ttyoutq *to, const void *buf, size_t nbytes) argument
284 while (nbytes > 0) {
309 l = MIN(nbytes, TTYOUTQ_DATASIZE - boff);
314 nbytes -= l;
322 ttyoutq_write_nofrag(struct ttyoutq *to, const void *buf, size_t nbytes) argument
326 if (ttyoutq_bytesleft(to) < nbytes)
330 ret = ttyoutq_write(to, buf, nbytes);
331 MPASS(ret == nbytes);
/freebsd-current/lib/libc/db/btree/
H A Dbt_put.c69 u_int32_t nbytes, tmp; local
196 nbytes = NBLEAFDBT(key->size, data->size);
197 if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) {
199 data, dflags, nbytes, idx)) != RET_SUCCESS)
209 h->linp[idx] = h->upper -= nbytes;
263 u_int32_t nbytes; local
277 nbytes = NBLEAFDBT(key->size, data->size);
278 if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t))
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Drandom.h42 get_random_bytes(void *buf, int nbytes) argument
45 arc4random_buf(buf, nbytes);
/freebsd-current/sys/sys/
H A Dsndstat.h40 size_t nbytes; /* [IN/OUT] buffer size/number of bytes filled */ member in struct:sndstioc_nv_arg
122 uint32_t nbytes; member in struct:sndstioc_nv_arg32
/freebsd-current/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c223 ssize_t nbytes; local
239 if ((nbytes = pread64(fd, &hdr, sizeof (hdr), 0)) <= 0)
240 return (ctf_set_open_errno(errp, nbytes < 0? errno : ECTF_FMT));
246 if (nbytes >= (ssize_t) sizeof (ctf_preamble_t) &&
277 if (nbytes >= (ssize_t) sizeof (Elf32_Ehdr) &&
296 if (nbytes < (ssize_t) sizeof (GElf_Ehdr))
334 nbytes = sizeof (GElf_Shdr) * shnum;
336 if ((sp = malloc(nbytes)) == NULL)
346 nbytes = sizeof (Elf32_Shdr) * shnum;
348 if ((sp32 = malloc(nbytes))
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Drandwritecomp.c50 rwc_pwrite(int fd, const void *buf, size_t nbytes, off_t offset) argument
52 size_t nleft = nbytes;
55 nwrite = pwrite(fd, buf, nbytes, offset);
65 (nbytes - nleft), nbytes);

Completed in 483 milliseconds

1234567891011