Searched refs:nbytes (Results 26 - 50 of 232) sorted by relevance

12345678910

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libgcrypt-1.5.0/random/
H A Drandom.c182 gcry_random_bytes (size_t nbytes, enum gcry_random_level level)
186 buffer = gcry_xmalloc (nbytes);
187 do_randomize (buffer, nbytes, level);
196 gcry_random_bytes_secure (size_t nbytes, enum gcry_random_level level)
203 buffer = gcry_xmalloc_secure (nbytes);
204 do_randomize (buffer, nbytes, level);
181 gcry_random_bytes(size_t nbytes, enum gcry_random_level level) argument
195 gcry_random_bytes_secure(size_t nbytes, enum gcry_random_level level) argument
H A Drndegd.c78 do_write( int fd, void *buf, size_t nbytes )
80 size_t nleft = nbytes;
99 do_read( int fd, void *buf, size_t nbytes )
107 n = read(fd, (char*)buf + nread, nbytes );
115 nbytes -= n;
117 while( nread < nbytes );
221 int nbytes; local
235 nbytes = length < 255? length : 255;
238 buffer[1] = nbytes;
271 nbytes
[all...]
H A Drandom-daemon.c209 size_t nbytes;
246 nbytes = req_nbytes > sizeof (buf) ? sizeof (buf) : req_nbytes;
247 req_nbytes -= nbytes;
257 buf[2] = nbytes;
292 if (buf[1] < nbytes)
298 else if (buf[1] > nbytes)
305 assert (nbytes <= sizeof (buf));
307 rc = readn (daemon_socket, buf, nbytes, &nread);
315 if (nread != nbytes)
323 memcpy (buffer, buf, nbytes);
208 size_t nbytes; local
[all...]
H A Drand-internal.h55 void *_gcry_rngcsprng_get_bytes (size_t nbytes,
57 void *_gcry_rngcsprng_get_bytes_secure (size_t nbytes,
72 void *_gcry_rngfips_get_bytes (size_t nbytes,
74 void *_gcry_rngfips_get_bytes_secure (size_t nbytes,
H A Drndlinux.c164 int nbytes = length < sizeof(buffer)? length : sizeof(buffer); local
165 n = read(fd, buffer, nbytes );
166 if( n >= 0 && n > nbytes )
169 n = nbytes;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/zorro/
H A Dproc.c48 proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument
58 if (nbytes >= sizeof(struct ConfigDev))
59 nbytes = sizeof(struct ConfigDev);
60 if (pos + nbytes > sizeof(struct ConfigDev))
61 nbytes = sizeof(struct ConfigDev) - pos;
71 if (copy_to_user(buf, &cd, nbytes))
73 *ppos += nbytes;
75 return nbytes;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/
H A Dcuda.h33 void (*done)(struct adb_request *), int nbytes, ...);
H A Dadb.h47 int nbytes; member in struct:adb_request
91 int flags, int nbytes, ...);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/e2fsprogs/old_e2fsprogs/ext2fs/
H A Drw_bitmaps.c45 static void ext2fs_swap_bitmap(ext2_filsys fs, char *bitmap, int nbytes) argument
50 for (n = nbytes / sizeof(__u32); n > 0; --n, ++p)
58 size_t nbytes; local
70 nbytes = (size_t) ((EXT2_INODES_PER_GROUP(fs->super)+7) / 8);
77 memcpy(bitmap_block, inode_bitmap, nbytes);
83 ext2fs_swap_bitmap(fs, bitmap_block, nbytes);
90 inode_bitmap += nbytes;
101 int nbytes; local
114 nbytes = EXT2_BLOCKS_PER_GROUP(fs->super) / 8;
120 memcpy(bitmap_block, block_bitmap, nbytes);
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/include/
H A Dbcmsrom.h32 uint byteoff, uint nbytes, uint16 *buf,
36 uint byteoff, uint nbytes, uint16 *buf);
41 extern int srom_otp_write_region_crc(si_t *sih, uint nbytes, uint16* buf16, bool write);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libgcrypt-1.5.0/src/
H A Dgetrandom.c129 int req_nbytes, nbytes, n; local
228 nbytes = req_nbytes > 255? 255 : req_nbytes;
229 req_nbytes -= nbytes;
240 buffer[2] = nbytes;
265 if (buffer[1] < nbytes)
270 else if (buffer[1] > nbytes && !do_ping)
275 nbytes = buffer[1];
276 if (nbytes > sizeof buffer)
282 for (nleft=nbytes, nread=0; nleft > 0; )
298 for (n=0; n < nbytes;
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/alpha/boot/
H A Dmain.c156 int nbytes; local
179 nbytes = callback_getenv(ENV_BOOTED_OSFLAGS, envval, sizeof(envval));
180 if (nbytes < 0) {
181 nbytes = 0;
183 envval[nbytes] = '\0';
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/jpeg-7/
H A Djdatasrc.c93 size_t nbytes; local
95 nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE);
97 if (nbytes <= 0) {
104 nbytes = 2;
108 src->pub.bytes_in_buffer = nbytes;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/crypto/
H A Dpadlock-aes.c478 unsigned int nbytes)
484 blkcipher_walk_init(&walk, dst, src, nbytes);
487 while ((nbytes = walk.nbytes)) {
490 nbytes / AES_BLOCK_SIZE);
491 nbytes &= AES_BLOCK_SIZE - 1;
492 err = blkcipher_walk_done(desc, &walk, nbytes);
500 unsigned int nbytes)
506 blkcipher_walk_init(&walk, dst, src, nbytes);
509 while ((nbytes
476 ecb_aes_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument
498 ecb_aes_decrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument
542 cbc_aes_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument
566 cbc_aes_decrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/pnp/isapnp/
H A Dproc.c57 static ssize_t isapnp_proc_bus_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument
67 if (nbytes >= size)
68 nbytes = size;
69 if (pos + nbytes > size)
70 nbytes = size - pos;
71 cnt = nbytes;
85 return nbytes;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/macintosh/
H A Dvia-pmu68k.c290 for (i = 0; i < req->nbytes - 1; ++i)
292 --req->nbytes;
303 if (req->nbytes != 2)
306 req->nbytes = 1;
314 if (req->nbytes != 6)
317 req->nbytes = 5;
327 if (req->nbytes != 4)
332 req->nbytes = 3;
340 if (req->nbytes != 5)
346 req->nbytes
451 pmu_request(struct adb_request *req, void (*done)(struct adb_request *), int nbytes, ...) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/engine/
H A Deng_padlock.c670 const unsigned char *in, size_t nbytes);
848 const unsigned char *in_arg, size_t nbytes)
858 padlock_xcrypt_ecb(nbytes/AES_BLOCK_SIZE, cdata, out_arg, in_arg);
863 iv = padlock_xcrypt_cbc(nbytes/AES_BLOCK_SIZE, cdata, out_arg, in_arg);
869 iv = padlock_xcrypt_cfb(nbytes/AES_BLOCK_SIZE, cdata, out_arg, in_arg);
875 padlock_xcrypt_ofb(nbytes/AES_BLOCK_SIZE, cdata, out_arg, in_arg);
899 const unsigned char *in_arg, size_t nbytes)
919 while (chunk<AES_BLOCK_SIZE && nbytes!=0) {
921 chunk++, nbytes--;
923 else while (chunk<AES_BLOCK_SIZE && nbytes!
847 padlock_aes_cipher_omnivorous(EVP_CIPHER_CTX *ctx, unsigned char *out_arg, const unsigned char *in_arg, size_t nbytes) argument
898 padlock_aes_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out_arg, const unsigned char *in_arg, size_t nbytes) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/crypto/engine/
H A Dhw_cswift.c506 sw_param.up.exp.modulus.nbytes = BN_bn2bin(m,
509 sw_param.up.exp.exponent.nbytes = BN_bn2bin(p,
531 arg.nbytes = BN_bn2bin(a, (unsigned char *)argument->d);
533 res.nbytes = BN_num_bytes(m);
534 memset(result->d, 0, res.nbytes);
547 BN_bin2bn((unsigned char *)result->d, res.nbytes, r);
606 sw_param.up.crt.p.nbytes = BN_bn2bin(p, (unsigned char *)rsa_p->d);
608 sw_param.up.crt.q.nbytes = BN_bn2bin(q, (unsigned char *)rsa_q->d);
610 sw_param.up.crt.dmp1.nbytes = BN_bn2bin(dmp1,
613 sw_param.up.crt.dmq1.nbytes
933 size_t nbytes = 0; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/char/
H A Drandom.c104 * void get_random_bytes(void *buf, int nbytes);
644 size_t nbytes, int min, int rsvd);
651 static void xfer_secondary_pool(struct entropy_store *r, size_t nbytes) argument
655 if (r->pull && r->entropy_count < nbytes * 8 &&
658 min_t(int, nbytes, sizeof(tmp)));
663 r->name, bytes * 8, nbytes * 8, r->entropy_count);
684 static size_t account(struct entropy_store *r, size_t nbytes, int min, argument
695 nbytes * 8, r->name);
699 nbytes = 0;
702 if (r->limit && nbytes
763 extract_entropy(struct entropy_store *r, void * buf, size_t nbytes, int min, int reserved) argument
787 extract_entropy_user(struct entropy_store *r, void __user *buf, size_t nbytes) argument
829 get_random_bytes(void *buf, int nbytes) argument
901 random_read(struct file * file, char __user * buf, size_t nbytes, loff_t *ppos) argument
963 urandom_read(struct file * file, char __user * buf, size_t nbytes, loff_t *ppos) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/
H A Dsync.c133 * a file in the range offset .. (offset+nbytes-1) inclusive. If nbytes is
177 asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, argument
190 endbyte = offset + nbytes;
212 nbytes = 0;
216 if (nbytes == 0)
242 loff_t offset, loff_t nbytes)
244 return sys_sync_file_range(fd, offset, nbytes, flags);
241 sys_sync_file_range2(int fd, unsigned int flags, loff_t offset, loff_t nbytes) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/crypto/
H A Decb.c47 unsigned int nbytes; local
52 while ((nbytes = walk->nbytes)) {
61 } while ((nbytes -= bsize) >= bsize);
63 err = blkcipher_walk_done(desc, walk, nbytes);
71 unsigned int nbytes)
78 blkcipher_walk_init(&walk, dst, src, nbytes);
85 unsigned int nbytes)
92 blkcipher_walk_init(&walk, dst, src, nbytes);
69 crypto_ecb_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument
83 crypto_ecb_decrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/zlib-1.2.3/contrib/masmx64/
H A Dinffasx64.asm188 sub rax, [rsp+40] ; /* nbytes = out - beg */
191 jb L_clip_window ; /* if (dist > nbytes) 4.2% */
263 mov ecx, eax ; /* ecx = nbytes */
265 neg ecx ; /* nbytes = -nbytes */
270 add ecx, r15d ; /* nbytes = dist - nbytes */
275 sub eax, ecx ; /* eax -= nbytes */
276 add rsi, rax ; /* from += wsize - nbytes */
280 jbe L_do_copy ; /* if (nbytes >
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/zlib-1.2.3/contrib/masmx64/
H A Dinffasx64.asm188 sub rax, [rsp+40] ; /* nbytes = out - beg */
191 jb L_clip_window ; /* if (dist > nbytes) 4.2% */
263 mov ecx, eax ; /* ecx = nbytes */
265 neg ecx ; /* nbytes = -nbytes */
270 add ecx, r15d ; /* nbytes = dist - nbytes */
275 sub eax, ecx ; /* eax -= nbytes */
276 add rsi, rax ; /* from += wsize - nbytes */
280 jbe L_do_copy ; /* if (nbytes >
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libgcrypt-1.5.0/mpi/
H A Dmpicoder.c37 unsigned int nbits, nbytes, nlimbs, nread=0; local
52 nbytes = (nbits+7) / 8;
53 nlimbs = (nbytes+BYTES_PER_MPI_LIMB-1) / BYTES_PER_MPI_LIMB;
55 i = BYTES_PER_MPI_LIMB - nbytes % BYTES_PER_MPI_LIMB;
93 unsigned int nbits, nbytes, nlimbs; local
110 nbytes = (nbits+7) / 8;
111 nlimbs = (nbytes+BYTES_PER_MPI_LIMB-1) / BYTES_PER_MPI_LIMB;
116 i = BYTES_PER_MPI_LIMB - (nbytes % BYTES_PER_MPI_LIMB);
232 do_get_buffer (gcry_mpi_t a, unsigned int *nbytes, int *sign, int force_secure) argument
242 *nbytes
282 _gcry_mpi_get_buffer(gcry_mpi_t a, unsigned int *nbytes, int *sign) argument
288 _gcry_mpi_get_secure_buffer(gcry_mpi_t a, unsigned *nbytes, int *sign) argument
299 _gcry_mpi_set_buffer(gcry_mpi_t a, const void *buffer_arg, unsigned int nbytes, int sign) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/lib/
H A Dstream.c333 int nbytes;
335 nbytes = readn (fd, s->data + s->putp, size);
337 if (nbytes > 0)
339 s->putp += nbytes;
340 s->endp += nbytes;
342 return nbytes;
349 int nbytes;
354 nbytes = read (fd, s->data + s->putp, size);
357 if (nbytes > 0)
359 s->putp += nbytes;
329 int nbytes; local
345 int nbytes; local
405 int nbytes; local
[all...]

Completed in 300 milliseconds

12345678910