/netbsd-current/bin/sh/ |
H A D | machdep.h | 47 #define SHELL_ALIGN(nbytes) (((nbytes) + SHELL_SIZE) & ~SHELL_SIZE)
|
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | swab.c | 42 swab (char *from, char *to, int nbytes) argument 44 while(nbytes >= 2) { 49 nbytes -= 2;
|
H A D | net_write.c | 49 net_write (rk_socket_t fd, const void *buf, size_t nbytes) argument 53 size_t rem = nbytes; 65 return nbytes - rem; 73 return nbytes; 79 net_write(rk_socket_t sock, const void *buf, size_t nbytes) argument 83 size_t rem = nbytes; 112 return nbytes - rem; 121 return nbytes - rem; 130 return nbytes;
|
H A D | ewrite.c | 45 ewrite (int fd, const void *buf, size_t nbytes) argument 49 ret = net_write (fd, buf, nbytes);
|
H A D | eread.c | 45 eread (int fd, void *buf, size_t nbytes) argument 49 ret = net_read (fd, buf, nbytes);
|
/netbsd-current/external/bsd/libuuid_ul/lib/libuuid_ul/ |
H A D | randutils.h | 37 random_get_bytes(void *buf, size_t nbytes) argument 39 arc4random_buf(buf, nbytes);
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/ |
H A D | interrupt.c | 21 int nbytes; local 31 nbytes = read (0, &x, 1); 32 if (nbytes < 0) 42 else if (nbytes == 0)
|
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
H A D | interrupt.c | 21 int nbytes; local 31 nbytes = read (0, &x, 1); 32 if (nbytes < 0) 42 else if (nbytes == 0)
|
/netbsd-current/lib/libc/arch/mips/gen/ |
H A D | cacheflush.c | 37 _cacheflush(void *addr, size_t nbytes, int whichcache) argument 42 cfa.nbytes = nbytes;
|
/netbsd-current/sys/crypto/aes/arch/arm/ |
H A D | aes_armv8.c | 126 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 130 KASSERT(nbytes % 16 == 0); 133 aesarmv8_cbc_enc(enc, in, out, nbytes, iv, nrounds); 139 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 143 KASSERT(nbytes % 16 == 0); 147 if (nbytes % 128) { 148 aesarmv8_cbc_dec1(dec, in, out, nbytes % 128, iv, nrounds); 149 in += nbytes % 128; 150 out += nbytes % 128; 151 nbytes 125 aesarmv8_cbc_enc_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 138 aesarmv8_cbc_dec_impl(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 162 aesarmv8_xts_enc_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16], uint32_t nrounds) argument 186 aesarmv8_xts_dec_impl(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16], uint32_t nrounds) argument 210 aesarmv8_cbcmac_update1_impl(const struct aesenc *enc, const uint8_t in[static 16], size_t nbytes, uint8_t auth[static 16], uint32_t nrounds) argument 224 aesarmv8_ccm_enc1_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument 238 aesarmv8_ccm_dec1_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument [all...] |
H A D | aes_neon_subr.c | 83 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 88 KASSERT(nbytes); 91 for (; nbytes; nbytes -= 16, in += 16, out += 16) { 101 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 106 KASSERT(nbytes); 107 KASSERT(nbytes % 16 == 0); 110 cv = loadblock(in + nbytes - 16); 113 if (nbytes % 32) { 114 KASSERT(nbytes 82 aes_neon_cbc_enc(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 100 aes_neon_cbc_dec(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 202 aes_neon_xts_enc(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16], uint32_t nrounds) argument 239 aes_neon_xts_dec(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16], uint32_t nrounds) argument 276 aes_neon_cbcmac_update1(const struct aesenc *enc, const uint8_t in[static 16], size_t nbytes, uint8_t auth0[static 16], uint32_t nrounds) argument 291 aes_neon_ccm_enc1(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument 323 aes_neon_ccm_dec1(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument [all...] |
/netbsd-current/sys/crypto/aes/arch/x86/ |
H A D | aes_ni.c | 124 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 128 KASSERT(nbytes % 16 == 0); 131 aesni_cbc_enc(enc, in, out, nbytes, iv, nrounds); 137 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 141 KASSERT(nbytes % 16 == 0); 145 if (nbytes % 128) { 146 aesni_cbc_dec1(dec, in, out, nbytes % 128, iv, nrounds); 147 in += nbytes % 128; 148 out += nbytes % 128; 149 nbytes 123 aesni_cbc_enc_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 136 aesni_cbc_dec_impl(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 160 aesni_xts_enc_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 184 aesni_xts_dec_impl(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 208 aesni_cbcmac_update1_impl(const struct aesenc *enc, const uint8_t in[static 16], size_t nbytes, uint8_t auth[static 16], uint32_t nrounds) argument 222 aesni_ccm_enc1_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument 236 aesni_ccm_dec1_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument [all...] |
H A D | aes_sse2_subr.c | 128 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 135 KASSERT(nbytes); 136 KASSERT(nbytes % 16 == 0); 144 for (; nbytes; nbytes -= 16, in += 16, out += 16) { 168 uint8_t out[static 16], size_t nbytes, uint8_t ivp[static 16], 175 KASSERT(nbytes); 176 KASSERT(nbytes % 16 == 0); 185 cv = _mm_loadu_epi8(in + nbytes - 16); 191 if (nbytes 127 aes_sse2_cbc_enc(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 167 aes_sse2_cbc_dec(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t ivp[static 16], uint32_t nrounds) argument 346 aes_sse2_xts_enc(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16], uint32_t nrounds) argument 435 aes_sse2_xts_dec(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16], uint32_t nrounds) argument 524 aes_sse2_cbcmac_update1(const struct aesenc *enc, const uint8_t in[static 16], size_t nbytes, uint8_t auth[static 16], uint32_t nrounds) argument 555 aes_sse2_ccm_enc1(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument 612 aes_sse2_ccm_dec1(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument [all...] |
H A D | aes_sse2_impl.c | 96 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 100 if (nbytes == 0) 103 aes_sse2_cbc_enc(enc, in, out, nbytes, iv, nrounds); 109 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 113 if (nbytes == 0) 116 aes_sse2_cbc_dec(dec, in, out, nbytes, iv, nrounds); 122 uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16], 126 if (nbytes == 0) 129 aes_sse2_xts_enc(enc, in, out, nbytes, tweak, nrounds); 135 uint8_t out[static 16], size_t nbytes, uint8_ 95 aes_sse2_cbc_enc_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 108 aes_sse2_cbc_dec_impl(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 121 aes_sse2_xts_enc_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16], uint32_t nrounds) argument 134 aes_sse2_xts_dec_impl(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16], uint32_t nrounds) argument 147 aes_sse2_cbcmac_update1_impl(const struct aesenc *enc, const uint8_t in[static 16], size_t nbytes, uint8_t auth[static 16], uint32_t nrounds) argument 158 aes_sse2_ccm_enc1_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument 169 aes_sse2_ccm_dec1_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument [all...] |
H A D | aes_ssse3_impl.c | 89 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 93 if (nbytes == 0) 96 aes_ssse3_cbc_enc(enc, in, out, nbytes, iv, nrounds); 102 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 106 if (nbytes == 0) 109 aes_ssse3_cbc_dec(dec, in, out, nbytes, iv, nrounds); 115 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 119 if (nbytes == 0) 122 aes_ssse3_xts_enc(enc, in, out, nbytes, iv, nrounds); 128 uint8_t out[static 16], size_t nbytes, uint8_ 88 aes_ssse3_cbc_enc_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 101 aes_ssse3_cbc_dec_impl(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 114 aes_ssse3_xts_enc_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 127 aes_ssse3_xts_dec_impl(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 140 aes_ssse3_cbcmac_update1_impl(const struct aesenc *enc, const uint8_t in[static 16], size_t nbytes, uint8_t auth[static 16], uint32_t nrounds) argument 151 aes_ssse3_ccm_enc1_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument 162 aes_ssse3_ccm_dec1_impl(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument [all...] |
H A D | aes_ssse3_subr.c | 80 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 85 KASSERT(nbytes); 88 for (; nbytes; nbytes -= 16, in += 16, out += 16) { 98 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], 103 KASSERT(nbytes); 104 KASSERT(nbytes % 16 == 0); 107 cv = loadblock(in + nbytes - 16); 112 if ((nbytes -= 16) == 0) 114 cv = loadblock(in + nbytes 79 aes_ssse3_cbc_enc(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 97 aes_ssse3_cbc_dec(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16], uint32_t nrounds) argument 172 aes_ssse3_xts_enc(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16], uint32_t nrounds) argument 192 aes_ssse3_xts_dec(const struct aesdec *dec, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16], uint32_t nrounds) argument 212 aes_ssse3_cbcmac_update1(const struct aesenc *enc, const uint8_t in[static 16], size_t nbytes, uint8_t auth0[static 16], uint32_t nrounds) argument 227 aes_ssse3_ccm_enc1(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument 254 aes_ssse3_ccm_dec1(const struct aesenc *enc, const uint8_t in[static 16], uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32], uint32_t nrounds) argument [all...] |
/netbsd-current/external/bsd/ntp/dist/libntp/ |
H A D | ntp_crypto_rnd.c | 32 arc4random_buf(void *buf, size_t nbytes); 35 evutil_secure_rng_get_bytes(void *buf, size_t nbytes); 38 arc4random_buf(void *buf, size_t nbytes) argument 40 evutil_secure_rng_get_bytes(buf, nbytes); 93 size_t nbytes 99 rc = RAND_bytes(buf, size2int_chk(nbytes)); 113 arc4random_buf(buf, nbytes);
|
/netbsd-current/external/bsd/openldap/dist/libraries/liblutil/ |
H A D | entropy.c | 43 * lutil_entropy() provides nbytes of entropy in buf. 54 int lutil_entropy( unsigned char *buf, ber_len_t nbytes ) 56 if( nbytes == 0 ) return 0; 69 rc = read( fd, buf, nbytes ); 73 nbytes-=rc; 76 } while( nbytes > 0 ); 79 return nbytes > 0 ? -1 : 0; 92 if(!CryptGenRandom(hProv, (DWORD) nbytes, (BYTE *) buf)) { 143 for( n = 0; n < nbytes; n += 16 ) { 163 lutil_MD5Update( &ctx, buf, nbytes ); [all...] |
/netbsd-current/external/bsd/ntp/dist/include/ |
H A D | ntp_random.h | 7 int ntp_crypto_random_buf(void *buf, size_t nbytes);
|
/netbsd-current/sys/arch/mips/include/ |
H A D | sysarch.h | 39 size_t nbytes; member in struct:mips_cacheflush_args 45 size_t nbytes; member in struct:mips_cachectl_args
|
/netbsd-current/usr.bin/hexdump/ |
H A D | odsyntax.c | 60 int nbytes; member in struct:odformat 224 int nbytes = 0; local 232 nbytes = 1; 238 nbytes = sizeof(float); 241 nbytes = sizeof(double); 244 nbytes = sizeof(long double); 253 nbytes = strtol(type_string, &tmp, 10); 256 nbytes = 8; 265 nbytes = sizeof(char); 268 nbytes [all...] |
/netbsd-current/external/gpl2/groff/dist/src/libs/libbib/ |
H A D | map.c | 43 char *mapread(int fd, int nbytes) argument 45 char *p = (char *)mmap((void *)0, (size_t)nbytes, PROT_READ, 72 char *mapread(int fd, int nbytes) argument
|
/netbsd-current/lib/libc/string/ |
H A D | swab.c | 39 swab(const void *__restrict src, void *__restrict dst, ssize_t nbytes) argument 48 if (nbytes <= 1) 52 * Round nbytes/2 down; we ignore the last byte altogether if 53 * nbytes is odd. This way, if the destination array is 57 for (n = nbytes/2; n --> 0; p += 2, q += 2) {
|
/netbsd-current/sys/external/bsd/drm2/include/linux/ |
H A D | kfifo.h | 75 _init_kfifo(struct kfifo_meta *meta, size_t nbytes) argument 81 meta->kfm_nbytes = nbytes; 97 _kfifo_alloc(struct kfifo_meta *meta, void *bufp, size_t nbytes, gfp_t gfp) argument 101 buf = kmalloc(nbytes, gfp); 108 _init_kfifo(meta, nbytes); 139 const size_t nbytes = meta->kfm_nbytes; local 141 return (head <= tail ? tail - head : nbytes + tail - head); 157 const size_t nbytes = meta->kfm_nbytes; local 164 if (size <= nbytes - head) { 167 } else if (size <= nbytes 192 const size_t nbytes = meta->kfm_nbytes; local 230 const size_t nbytes = meta->kfm_nbytes; local [all...] |
/netbsd-current/sbin/nvmectl/ |
H A D | humanize_bignum.c | 107 BIGNUM *nbytes = NULL, *max = NULL; local 113 if ((nbytes = BN_dup(bytes)) == NULL) 149 if (BN_is_negative(nbytes)) { 152 BN_set_negative(nbytes, 0); 159 BN_mul(t1, nbytes, BN_value_100(), NULL); 160 BN_swap(nbytes, t1); 195 for (i = 0; BN_cmp(nbytes, max) >= 0 && i < maxscale; i++) { 196 if (BN_div(t1, t2, nbytes, divisor, NULL) == 0) 198 BN_swap(nbytes, t1); 209 if (BN_div(t1, t2, nbytes, diviso [all...] |