| /freebsd-12-stable/contrib/nvi/common/ |
| D | mem.h | 20 #define BINC_GOTO(sp, type, lp, llen, nlen) do { \ argument 23 if ((nlen) > llen) { \ 24 if ((L__bincp = binc(sp, lp, &(llen), nlen)) == NULL) \ 33 #define BINC_GOTOC(sp, lp, llen, nlen) \ argument 34 BINC_GOTO(sp, char, lp, llen, nlen) 35 #define BINC_GOTOW(sp, lp, llen, nlen) \ argument 36 BINC_GOTO(sp, CHAR_T, lp, llen, (nlen) * sizeof(CHAR_T)) 37 #define BINC_RET(sp, type, lp, llen, nlen) do { \ argument 40 if ((nlen) > llen) { \ 41 if ((L__bincp = binc(sp, lp, &(llen), nlen)) == NULL) \ [all …]
|
| D | key.h | 13 #define FILE2INT5(sp,buf,n,nlen,w,wlen) \ argument 14 sp->conv.file2int(sp, n, nlen, &buf, &wlen, &w) 15 #define INT2FILE(sp,w,wlen,n,nlen) \ argument 16 sp->conv.int2file(sp, w, wlen, &sp->cw, &nlen, &n) 17 #define CHAR2INT5(sp,buf,n,nlen,w,wlen) \ argument 18 sp->conv.sys2int(sp, n, nlen, &buf, &wlen, &w) 19 #define INT2CHAR(sp,w,wlen,n,nlen) \ argument 20 sp->conv.int2sys(sp, w, wlen, &sp->cw, &nlen, &n) 21 #define INPUT2INT5(sp,cw,n,nlen,w,wlen) \ argument 22 sp->conv.input2int(sp, n, nlen, &(cw), &wlen, &w) [all …]
|
| /freebsd-12-stable/contrib/bearssl/src/ec/ |
| D | ecdsa_i31_sign_raw.c | 49 size_t hash_len, nlen, ulen; in br_ecdsa_i31_sign_raw() local 80 nlen = cd->order_len; in br_ecdsa_i31_sign_raw() 81 br_i31_decode(n, cd->order, nlen); in br_ecdsa_i31_sign_raw() 115 br_i31_encode(tt, nlen, x); in br_ecdsa_i31_sign_raw() 116 br_i31_encode(tt + nlen, nlen, m); in br_ecdsa_i31_sign_raw() 117 br_hmac_drbg_init(&drbg, hf, tt, nlen << 1); in br_ecdsa_i31_sign_raw() 119 br_hmac_drbg_generate(&drbg, tt, nlen); in br_ecdsa_i31_sign_raw() 120 br_ecdsa_i31_bits2int(k, tt, nlen, n[0]); in br_ecdsa_i31_sign_raw() 135 br_i31_encode(tt, nlen, k); in br_ecdsa_i31_sign_raw() 136 ulen = impl->mulgen(eU, tt, nlen, sk->curve); in br_ecdsa_i31_sign_raw() [all …]
|
| D | ecdsa_i15_sign_raw.c | 49 size_t hash_len, nlen, ulen; in br_ecdsa_i15_sign_raw() local 81 nlen = cd->order_len; in br_ecdsa_i15_sign_raw() 82 br_i15_decode(n, cd->order, nlen); in br_ecdsa_i15_sign_raw() 116 br_i15_encode(tt, nlen, x); in br_ecdsa_i15_sign_raw() 117 br_i15_encode(tt + nlen, nlen, m); in br_ecdsa_i15_sign_raw() 118 br_hmac_drbg_init(&drbg, hf, tt, nlen << 1); in br_ecdsa_i15_sign_raw() 120 br_hmac_drbg_generate(&drbg, tt, nlen); in br_ecdsa_i15_sign_raw() 121 br_ecdsa_i15_bits2int(k, tt, nlen, n[0]); in br_ecdsa_i15_sign_raw() 136 br_i15_encode(tt, nlen, k); in br_ecdsa_i15_sign_raw() 137 ulen = impl->mulgen(eU, tt, nlen, sk->curve); in br_ecdsa_i15_sign_raw() [all …]
|
| D | ecdsa_i15_vrfy_raw.c | 47 size_t nlen, rlen, ulen; in br_ecdsa_i15_vrfy_raw() local 94 nlen = cd->order_len; in br_ecdsa_i15_vrfy_raw() 95 br_i15_decode(n, cd->order, nlen); in br_ecdsa_i15_vrfy_raw() 117 memcpy(tx, cd->order, nlen); in br_ecdsa_i15_vrfy_raw() 118 tx[nlen - 1] -= 2; in br_ecdsa_i15_vrfy_raw() 119 br_i15_modpow(s, tx, nlen, n, n0i, t1, t2); in br_ecdsa_i15_vrfy_raw() 135 br_i15_encode(ty, nlen, t2); in br_ecdsa_i15_vrfy_raw() 141 br_i15_encode(tx, nlen, t1); in br_ecdsa_i15_vrfy_raw() 149 tx, nlen, ty, nlen, cd->curve); in br_ecdsa_i15_vrfy_raw()
|
| D | ecdsa_i31_vrfy_raw.c | 47 size_t nlen, rlen, ulen; in br_ecdsa_i31_vrfy_raw() local 93 nlen = cd->order_len; in br_ecdsa_i31_vrfy_raw() 94 br_i31_decode(n, cd->order, nlen); in br_ecdsa_i31_vrfy_raw() 116 memcpy(tx, cd->order, nlen); in br_ecdsa_i31_vrfy_raw() 117 tx[nlen - 1] -= 2; in br_ecdsa_i31_vrfy_raw() 118 br_i31_modpow(s, tx, nlen, n, n0i, t1, t2); in br_ecdsa_i31_vrfy_raw() 134 br_i31_encode(ty, nlen, t2); in br_ecdsa_i31_vrfy_raw() 140 br_i31_encode(tx, nlen, t1); in br_ecdsa_i31_vrfy_raw() 148 tx, nlen, ty, nlen, cd->curve); in br_ecdsa_i31_vrfy_raw()
|
| /freebsd-12-stable/contrib/bearssl/src/rsa/ |
| D | rsa_i31_pub.c | 39 size_t nlen; in br_rsa_i31_public() local 51 nlen = pk->nlen; in br_rsa_i31_public() 52 while (nlen > 0 && *n == 0) { in br_rsa_i31_public() 54 nlen --; in br_rsa_i31_public() 56 if (nlen == 0 || nlen > (BR_MAX_RSA_SIZE >> 3) || xlen != nlen) { in br_rsa_i31_public() 59 z = (long)nlen << 3; in br_rsa_i31_public() 82 br_i31_decode(m, n, nlen); in br_rsa_i31_public()
|
| D | rsa_i62_pub.c | 41 size_t nlen; in br_rsa_i62_public() local 53 nlen = pk->nlen; in br_rsa_i62_public() 54 while (nlen > 0 && *n == 0) { in br_rsa_i62_public() 56 nlen --; in br_rsa_i62_public() 58 if (nlen == 0 || nlen > (BR_MAX_RSA_SIZE >> 3) || xlen != nlen) { in br_rsa_i62_public() 61 z = (long)nlen << 3; in br_rsa_i62_public() 82 br_i31_decode(m, n, nlen); in br_rsa_i62_public()
|
| D | rsa_i15_pub.c | 39 size_t nlen; in br_rsa_i15_public() local 52 nlen = pk->nlen; in br_rsa_i15_public() 53 while (nlen > 0 && *n == 0) { in br_rsa_i15_public() 55 nlen --; in br_rsa_i15_public() 57 if (nlen == 0 || nlen > (BR_MAX_RSA_SIZE >> 3) || xlen != nlen) { in br_rsa_i15_public() 60 z = (long)nlen << 3; in br_rsa_i15_public() 89 br_i15_decode(m, n, nlen); in br_rsa_i15_public()
|
| D | rsa_i32_pub.c | 33 size_t nlen; in br_rsa_i32_public() local 45 nlen = pk->nlen; in br_rsa_i32_public() 46 while (nlen > 0 && *n == 0) { in br_rsa_i32_public() 48 nlen --; in br_rsa_i32_public() 50 if (nlen == 0 || nlen > (BR_MAX_RSA_SIZE >> 3) || xlen != nlen) { in br_rsa_i32_public() 53 br_i32_decode(m, n, nlen); in br_rsa_i32_public()
|
| D | rsa_i15_modulus.c | 34 size_t nlen, plen, qlen, tlen; in br_rsa_i15_compute_modulus() local 92 nlen = (sk->n_bitlen + 7) >> 3; in br_rsa_i15_compute_modulus() 96 br_i15_encode(n, nlen, t); in br_rsa_i15_compute_modulus() 98 return nlen; in br_rsa_i15_compute_modulus()
|
| D | rsa_i31_modulus.c | 34 size_t nlen, plen, qlen, tlen; in br_rsa_i31_compute_modulus() local 92 nlen = (sk->n_bitlen + 7) >> 3; in br_rsa_i31_compute_modulus() 96 br_i31_encode(n, nlen, t); in br_rsa_i31_compute_modulus() 98 return nlen; in br_rsa_i31_compute_modulus()
|
| /freebsd-12-stable/contrib/bearssl/tools/ |
| D | vector.c | 46 size_t nlen; in vector_expand() local 52 nlen = (*len << 1); in vector_expand() 53 if (nlen - *ptr < extra) { in vector_expand() 54 nlen = extra + *ptr; in vector_expand() 55 if (nlen < 8) { in vector_expand() 56 nlen = 8; in vector_expand() 59 nbuf = xmalloc(nlen * esize); in vector_expand() 64 *len = nlen; in vector_expand()
|
| /freebsd-12-stable/sys/crypto/aesni/ |
| D | aesni_ccm.c | 199 unsigned char *tag, uint32_t nbytes, uint32_t abytes, int nlen, in AES_CCM_encrypt() argument 213 if (nlen < 7 || nlen > 13) in AES_CCM_encrypt() 214 panic("%s: bad nonce length %d", __FUNCTION__, nlen); in AES_CCM_encrypt() 223 L = sizeof(__m128i) - 1 - nlen; in AES_CCM_encrypt() 238 rolling_mac = cbc_mac_start(addt, abytes, nonce, nlen, in AES_CCM_encrypt() 244 bcopy(nonce, &byte_ptr[1], nlen); in AES_CCM_encrypt() 381 const unsigned char *tag, uint32_t nbytes, uint32_t abytes, int nlen, in AES_CCM_decrypt() argument 391 if (nlen < 0 || nlen > 15) in AES_CCM_decrypt() 392 panic("%s: bad nonce length %d", __FUNCTION__, nlen); in AES_CCM_decrypt() 400 L = sizeof(__m128i) - 1 - nlen; in AES_CCM_decrypt() [all …]
|
| /freebsd-12-stable/sys/compat/linux/ |
| D | linux_sysctl.c | 137 if (la.nlen <= 0 || la.nlen > LINUX_CTL_MAXNAME) { in linux_sysctl() 138 LIN_SDT_PROBE2(sysctl, linux_sysctl, wrong_length, la.nlen, in linux_sysctl() 144 mib = malloc(la.nlen * sizeof(l_int), M_LINUX, M_WAITOK); in linux_sysctl() 145 error = copyin(PTRIN(la.name), mib, la.nlen * sizeof(l_int)); in linux_sysctl() 155 if (la.nlen < 2) in linux_sysctl() 172 sb = sbuf_new(NULL, NULL, 20 + la.nlen * 5, SBUF_AUTOEXTEND); in linux_sysctl() 179 for (i = 0; i < la.nlen; i++) in linux_sysctl()
|
| /freebsd-12-stable/contrib/wpa/src/utils/ |
| D | ext_password_test.c | 48 size_t nlen; in ext_password_test_get() local 55 nlen = os_strlen(name); in ext_password_test_get() 58 if (os_strncmp(pos, name, nlen) == 0 && pos[nlen] == '=') { in ext_password_test_get() 60 pos += nlen + 1; in ext_password_test_get()
|
| /freebsd-12-stable/contrib/ntp/sntp/ |
| D | networking.c | 79 u_int nlen; /* next extension length */ in skip_efields() local 81 nlen = ntohl(*head) & 0xffff; in skip_efields() 83 nlen = (nlen + 3) >> 2; in skip_efields() 84 if (nlen > (u_int)(tail - head) || nlen < 4) in skip_efields() 86 head += nlen; in skip_efields()
|
| /freebsd-12-stable/stand/libofw/ |
| D | ofw_copy.c | 53 size_t nlen; in ofw_mapmem() local 57 nlen = len; in ofw_mapmem() 72 nlen -= (last_dest + last_len) - dest; in ofw_mapmem() 83 if ((nlen + resid) < PAGE_SIZE*MAPMEM_PAGE_INC) { in ofw_mapmem() 86 dlen = roundup(nlen + resid, PAGE_SIZE); in ofw_mapmem()
|
| /freebsd-12-stable/contrib/nvi/vi/ |
| D | v_txt.c | 1741 size_t nlen; in v_txt_auto() local 1765 if ((nlen = (p - t)) == 0) in v_txt_auto() 1769 BINC_RETW(sp, tp->lb, tp->lb_len, tp->len + nlen); in v_txt_auto() 1773 MEMMOVE(tp->lb + nlen, tp->lb, tp->len); in v_txt_auto() 1774 tp->len += nlen; in v_txt_auto() 1777 MEMMOVE(tp->lb, t, nlen); in v_txt_auto() 1780 tp->ai = nlen; in v_txt_auto() 1973 size_t indx, len, nlen, off; in txt_fc() local 2035 nlen = STRLEN(cmd.argv[0]->bp); in txt_fc() 2043 for (nlen = cmd.argv[0]->len; --argc > 0;) { in txt_fc() [all …]
|
| /freebsd-12-stable/crypto/heimdal/lib/roken/ |
| D | snprintf.c | 148 int nstart, nlen; in append_number() local 159 nlen = 0; in append_number() 164 ++nlen; in append_number() 170 nlen--; in append_number() 194 if(prec <= nlen && nstr[nstart] != '0' && nstr[nstart] != '\0') in append_number() 195 prec = nlen + 1; in append_number() 207 if(prec > nlen) in append_number() 210 width -= nlen; in append_number() 232 if(prec - nlen > width - len - nlen) in append_number() 233 len += pad(state, prec - nlen, '0'); in append_number() [all …]
|
| /freebsd-12-stable/contrib/nvi/ex/ |
| D | ex_args.c | 50 size_t nlen; in ex_next() local 90 INT2CHAR(sp, argv[0]->bp, argv[0]->len, np, nlen); in ex_next() 91 if ((*ap = v_strdup(sp, np, nlen)) == NULL) in ex_next() 132 size_t nlen; in ex_N_next() local 143 INT2CHAR(sp, cmdp->argv[0]->bp, cmdp->argv[0]->len + 1, np, nlen); in ex_N_next() 306 size_t nlen; in ex_buildargv() local 319 INT2CHAR(sp, argv[0]->bp, argv[0]->len, np, nlen); in ex_buildargv() 320 if ((*ap = v_strdup(sp, np, nlen)) == NULL) in ex_buildargv()
|
| /freebsd-12-stable/usr.sbin/bsnmpd/modules/snmp_lm75/ |
| D | snmp_lm75.c | 138 sysctlname(int *oid, int nlen, char *name, size_t len) in sysctlname() argument 142 if (nlen > (int)(sizeof(mib) / sizeof(int) - 2)) in sysctlname() 147 memcpy(mib + 2, oid, nlen * sizeof(int)); in sysctlname() 149 if (sysctl(mib, nlen + 2, name, &len, 0, 0) == -1) in sysctlname() 156 sysctlgetnext(int *oid, int nlen, int *next, size_t *nextlen) in sysctlgetnext() argument 160 if (nlen > (int)(sizeof(mib) / sizeof(int) - 2)) in sysctlgetnext() 165 memcpy(mib + 2, oid, nlen * sizeof(int)); in sysctlgetnext() 167 if (sysctl(mib, nlen + 2, next, nextlen, 0, 0) == -1) in sysctlgetnext()
|
| /freebsd-12-stable/usr.bin/systat/ |
| D | fetch.c | 66 size_t nlen = len; in getsysctl() local 68 if (sysctlbyname(name, ptr, &nlen, NULL, 0) != 0) { in getsysctl() 72 if (nlen != len) { in getsysctl() 73 error("sysctl(%s...) expected %zu, got %zu", name, len, nlen); in getsysctl()
|
| /freebsd-12-stable/contrib/ipfilter/ |
| D | ip_fil_compat.c | 1943 int nlen = fr->fr_namelen; local 1947 fr->fr_ifnames[0] = nlen; 1948 nlen = ipf_addfrstr(names, nlen, old->fr_ifnames[0], 1952 fr->fr_ifnames[1] = nlen; 1953 nlen = ipf_addfrstr(names, nlen, old->fr_ifnames[1], 1957 fr->fr_ifnames[2] = nlen; 1958 nlen = ipf_addfrstr(names, nlen, old->fr_ifnames[2], 1962 fr->fr_ifnames[3] = nlen; 1963 nlen = ipf_addfrstr(names, nlen, old->fr_ifnames[3], 1967 fr->fr_tifs[0].fd_name = nlen; [all …]
|
| /freebsd-12-stable/usr.sbin/ckdist/ |
| D | ckdist.c | 359 size_t plen, nlen; in distname() local 369 nlen = strlen(name); in distname() 370 if (ext && nlen > 4 && name[nlen - 4] == '.' && in distname() 371 disttype(name + nlen - 3) == DISTINF) in distname() 372 nlen -= 4; in distname() 379 if (plen + (plen > 0) + nlen + (ext ? 3 : 0) >= sizeof(buf)) in distname() 387 memcpy(s, name, nlen); in distname() 388 s += nlen; in distname()
|