/openbsd/sys/netinet6/ |
H A D | in6_cksum.c | 92 int mlen = 0; in in6_cksum() local 167 mlen = len; in in6_cksum() 168 len -= mlen; in in6_cksum() 177 mlen--; in in6_cksum() 191 mlen += 32; in in6_cksum() 196 mlen += 8; in in6_cksum() 210 mlen = 0; in in6_cksum() 212 mlen = -1; in in6_cksum() 253 mlen--; in in6_cksum() 267 mlen += 32; in in6_cksum() [all …]
|
/openbsd/sys/arch/powerpc/powerpc/ |
H A D | in_cksum.c | 65 int mlen = 0; in in_cksum_internal() local 101 if (len < mlen) in in_cksum_internal() 102 mlen = len; in in_cksum_internal() 103 len -= mlen; in in_cksum_internal() 113 mlen--; in in_cksum_internal() 130 mlen -= 2; in in_cksum_internal() 135 n = mlen >> 6; in in_cksum_internal() 184 n = mlen >> 3; in in_cksum_internal() 200 mlen -= n * 8; in in_cksum_internal() 219 mlen = 0; in in_cksum_internal() [all …]
|
/openbsd/sys/netinet/ |
H A D | in_cksum.c | 54 int mlen = 0; in in_cksum() local 69 if (mlen == -1) { in in_cksum() 85 if (len < mlen) in in_cksum() 86 mlen = len; in in_cksum() 87 len -= mlen; in in_cksum() 96 mlen--; in in_cksum() 110 mlen += 32; in in_cksum() 115 mlen += 8; in in_cksum() 129 mlen = 0; in in_cksum() 131 mlen = -1; in in_cksum() [all …]
|
H A D | in4_cksum.c | 93 int mlen = 0; in in4_cksum() local 137 if (mlen == -1) { in in4_cksum() 154 if (len < mlen) in in4_cksum() 155 mlen = len; in in4_cksum() 156 len -= mlen; in in4_cksum() 165 mlen--; in in4_cksum() 179 mlen += 32; in in4_cksum() 184 mlen += 8; in in4_cksum() 198 mlen = 0; in in4_cksum() 200 mlen = -1; in in4_cksum() [all …]
|
/openbsd/sys/arch/hppa/hppa/ |
H A D | in_cksum.c | 81 register int mlen = m->m_len; local 84 if (!mlen) 86 if (len < mlen) 87 mlen = len; 88 len -= mlen; 91 if (mlen > 16) { 105 while ((mlen -= 32) >= 0) 108 mlen += 32; 109 if (mlen >= 16) { 111 mlen -= 16; [all …]
|
/openbsd/sys/arch/alpha/alpha/ |
H A D | in_cksum.c | 170 int mlen = 0; in in_cksum() local 179 mlen = m->m_len; in in_cksum() 180 if (len < mlen) in in_cksum() 181 mlen = len; in in_cksum() 188 clen += mlen; in in_cksum() 189 len -= mlen; in in_cksum() 199 int mlen = 0; in in4_cksum() local 237 if (len < mlen) in in4_cksum() 238 mlen = len; in in4_cksum() 245 clen += mlen; in in4_cksum() [all …]
|
/openbsd/sys/arch/m88k/m88k/ |
H A D | in_cksum.c | 46 #define SHIFT(n) (w += (n), mlen -= (n)) 53 int mlen; in in_cksum_internal() local 60 mlen = m->m_len - off; in in_cksum_internal() 62 if (len < mlen) in in_cksum_internal() 63 mlen = len; in in_cksum_internal() 64 len -= mlen; in in_cksum_internal() 71 while (mlen >= 2) { in in_cksum_internal() 76 if (mlen == 1) in in_cksum_internal()
|
/openbsd/usr.bin/signify/ |
H A D | mod_ed25519.c | 52 const unsigned char *m,unsigned long long mlen, in crypto_sign_ed25519() argument 70 *smlen = mlen+64; in crypto_sign_ed25519() 71 for(i=0;i<mlen;i++) in crypto_sign_ed25519() 76 crypto_hash_sha512(hmg, sm+32, mlen+32); /* Generate k as h(extsk[32],...,extsk[63],m) */ in crypto_sign_ed25519() 87 get_hram(hram, sm, sk+32, sm, mlen+64); in crypto_sign_ed25519() 103 unsigned char *m,unsigned long long *mlen, in crypto_sign_ed25519_open() argument 115 *mlen = (unsigned long long) -1; in crypto_sign_ed25519_open() 135 *mlen = smlen-64; in crypto_sign_ed25519_open()
|
/openbsd/sys/crypto/ |
H A D | cmac.c | 59 u_int mlen; in AES_CMAC_Update() local 62 mlen = MIN(16 - ctx->M_n, len); in AES_CMAC_Update() 63 memcpy(ctx->M_last + ctx->M_n, data, mlen); in AES_CMAC_Update() 64 ctx->M_n += mlen; in AES_CMAC_Update() 65 if (ctx->M_n < 16 || len == mlen) in AES_CMAC_Update() 69 data += mlen; in AES_CMAC_Update() 70 len -= mlen; in AES_CMAC_Update()
|
/openbsd/regress/lib/libcrypto/x509/ |
H A D | callback.pl | 79 my $mlen = scalar(@Modern); 81 print "$Test has $llen legacy lines and $mlen modern lines\n"; 82 while ($mlen > 0 && $llen > 0) { 84 my $mline = $Modern[$mlen - 1]; 92 $mlen--;
|
/openbsd/sys/nfs/ |
H A D | krpc_subr.c | 491 int mlen; /* message length */ in xdr_string_encode() local 494 mlen = dlen + 4; in xdr_string_encode() 500 if (mlen > MLEN) { in xdr_string_encode() 508 m->m_len = mlen; in xdr_string_encode() 521 mlen = sizeof(u_int32_t); in xdr_string_decode() 523 if (m->m_pkthdr.len < mlen) { in xdr_string_decode() 527 if (m->m_len < mlen) { in xdr_string_decode() 528 m = m_pullup(m, mlen); in xdr_string_decode() 538 mlen += (slen + 3) & ~3; in xdr_string_decode() 542 if (m->m_pkthdr.len < mlen) { in xdr_string_decode() [all …]
|
/openbsd/gnu/gcc/gcc/ |
H A D | c-cppbuiltin.c | 631 size_t mlen = strlen (macro); in builtin_define_with_value() local 638 buf = (char *) alloca (mlen + elen + extra); in builtin_define_with_value() 653 size_t mlen = strlen (macro); in builtin_define_with_value_n() local 656 buf = (char *) alloca (mlen + elen + 2); in builtin_define_with_value_n() 657 memcpy (buf, macro, mlen); in builtin_define_with_value_n() 658 buf[mlen] = '='; in builtin_define_with_value_n() 659 memcpy (buf + mlen + 1, expansion, elen); in builtin_define_with_value_n() 660 buf[mlen + elen + 1] = '\0'; in builtin_define_with_value_n() 670 size_t mlen = strlen (macro); in builtin_define_with_int_value() local 675 memcpy (buf, macro, mlen); in builtin_define_with_int_value() [all …]
|
/openbsd/lib/libc/stdio/ |
H A D | vswscanf.c | 59 size_t len, mlen; in vswscanf() local 72 if ((mlen = wcsrtombs(mbstr, &strp, len, &mbs)) == (size_t)-1) { in vswscanf() 76 if (mlen == len) in vswscanf() 81 f._bf._size = f._r = mlen; in vswscanf()
|
/openbsd/usr.bin/ssh/ |
H A D | msg.c | 46 u_int mlen = sshbuf_len(m); in ssh_msg_send() local 50 put_u32(buf, mlen + 1); in ssh_msg_send() 56 if (atomicio(vwrite, fd, sshbuf_mutable_ptr(m), mlen) != mlen) { in ssh_msg_send()
|
H A D | digest-libc.c | 34 typedef void md_update_fn(void *mdctx, const u_int8_t *m, size_t mlen); 182 ssh_digest_update(struct ssh_digest_ctx *ctx, const void *m, size_t mlen) in ssh_digest_update() argument 188 digest->md_update(ctx->mdctx, m, mlen); in ssh_digest_update() 229 ssh_digest_memory(int alg, const void *m, size_t mlen, u_char *d, size_t dlen) in ssh_digest_memory() argument 235 if (ssh_digest_update(ctx, m, mlen) != 0 || in ssh_digest_memory()
|
H A D | digest-openssl.c | 127 ssh_digest_update(struct ssh_digest_ctx *ctx, const void *m, size_t mlen) in ssh_digest_update() argument 129 if (EVP_DigestUpdate(ctx->mdctx, m, mlen) != 1) in ssh_digest_update() 167 ssh_digest_memory(int alg, const void *m, size_t mlen, u_char *d, size_t dlen) in ssh_digest_memory() argument 179 if (!EVP_Digest(m, mlen, d, &mdlen, digest->mdfunc(), NULL)) in ssh_digest_memory()
|
H A D | ssh-ed25519.c | 212 unsigned long long smlen = 0, mlen = 0; in ssh_ed25519_verify() local 244 mlen = smlen; in ssh_ed25519_verify() 245 if ((sm = malloc(smlen)) == NULL || (m = malloc(mlen)) == NULL) { in ssh_ed25519_verify() 251 if ((ret = crypto_sign_ed25519_open(m, &mlen, sm, smlen, in ssh_ed25519_verify() 255 if (ret != 0 || mlen != dlen) { in ssh_ed25519_verify()
|
/openbsd/usr.bin/vi/common/ |
H A D | msg.c | 43 size_t blen, len, mlen, nlen; in msgq() local 114 #define REM (blen - mlen) in msgq() 116 mlen = 0; in msgq() 124 mlen += len; in msgq() 136 if ((mlen += len) > blen) in msgq() 141 if ((mlen += len) > blen) in msgq() 159 if ((mlen += len) > blen) in msgq() 164 if ((mlen += len) > blen) in msgq() 170 if ((mlen += 1) > blen) in msgq() 177 gp->scr_msg(sp, mt, bp, mlen); in msgq() [all …]
|
/openbsd/lib/libcrypto/modes/ |
H A D | ccm128.c | 80 const unsigned char *nonce, size_t nlen, size_t mlen) in CRYPTO_ccm128_setiv() argument 87 if (sizeof(mlen) == 8 && L >= 3) { in CRYPTO_ccm128_setiv() 88 ctx->nonce.c[8] = (u8)(mlen >> (56 % (sizeof(mlen)*8))); in CRYPTO_ccm128_setiv() 89 ctx->nonce.c[9] = (u8)(mlen >> (48 % (sizeof(mlen)*8))); in CRYPTO_ccm128_setiv() 90 ctx->nonce.c[10] = (u8)(mlen >> (40 % (sizeof(mlen)*8))); in CRYPTO_ccm128_setiv() 91 ctx->nonce.c[11] = (u8)(mlen >> (32 % (sizeof(mlen)*8))); in CRYPTO_ccm128_setiv() 95 ctx->nonce.c[12] = (u8)(mlen >> 24); in CRYPTO_ccm128_setiv() 96 ctx->nonce.c[13] = (u8)(mlen >> 16); in CRYPTO_ccm128_setiv() 97 ctx->nonce.c[14] = (u8)(mlen >> 8); in CRYPTO_ccm128_setiv() 98 ctx->nonce.c[15] = (u8)mlen; in CRYPTO_ccm128_setiv()
|
/openbsd/gnu/lib/libreadline/ |
H A D | isearch.c | 104 int msglen, searchlen, mlen; local 108 mlen = searchlen + 33; 109 message = (char *)xmalloc (mlen); 115 snprintf (message, mlen, "[%d]", where + history_base); 125 strlcat (message, "reverse-", mlen); 128 strlcat (message, "i-search)`", mlen); 132 strlcat (message, search_string, mlen); 135 strlcat (message, "': ", mlen);
|
/openbsd/sys/arch/sparc64/sparc64/ |
H A D | in_cksum.S | 86 cmp %o1, %o2 ! if (len < mlen) 87 movl %icc, %o1, %o2 ! mlen = len; 91 sub %o1, %o2, %o1 ! len -= mlen 102 bl,a,pn %icc, Lnext ! mlen >= 1) { 115 deccc 2, %o2 ! mlen >= 1) { 122 deccc 0xc, %o2 ! while (mlen >= 12) {
|
/openbsd/sys/net/ |
H A D | if_pfsync.c | 863 mlen += sizeof(h->ph); in pfsync_encap() 865 h->ph.len = htons(mlen); in pfsync_encap() 868 mlen += sizeof(h->ip); in pfsync_encap() 891 if (mlen > MHLEN) { in pfsync_bulk_req_send() 1432 if (mlen > MHLEN) { in pfsync_slice_write() 1848 unsigned int hlen, mlen; in pfsync_clear_states() local 1871 if (mlen > MHLEN) { in pfsync_clear_states() 2703 mlen = subh->len << 2; in pfsync_input() 2728 len = mlen * count; in pfsync_input() 3032 unsigned int mlen; in pfsync_upd_req_init() local [all …]
|
/openbsd/sys/arch/macppc/pci/ |
H A D | pci_machdep.c | 336 int ilen, mlen, i, step = 0; in ofw_intr_map() local 340 mlen = OF_getprop(node, "interrupt-map-mask", mmask, sizeof(mmask)); in ofw_intr_map() 341 if (ilen < 0 || mlen < 0) in ofw_intr_map() 349 if (mcells != (mlen / sizeof(mmask[0]))) in ofw_intr_map() 368 for (mp = imap; ilen > mlen; mp += step) { in ofw_intr_map() 372 if (bcmp(mp, addr, mlen) == 0) { in ofw_intr_map()
|
/openbsd/sys/dev/pci/drm/i915/gt/shaders/clear_kernel/ |
H A D | hsw.asm | 73 … render MsgDesc: media block read MsgCtrl = 0x0 Surface = 1 mlen 1 rlen 1 { align1 1Q }; 78 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 1 mlen 2 rlen 0 { align1 1Q }; 106 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 0 mlen 9 rlen 0 { align1 1Q }; 109 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 0 mlen 9 rlen 0 { align1 1Q }; 119 thread_spawner MsgDesc: mlen 1 rlen 0 { align1 1Q EOT };
|
H A D | ivb.asm | 72 … render MsgDesc: media block read MsgCtrl = 0x0 Surface = 1 mlen 1 rlen 1 { align1 1Q }; 77 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 1 mlen 2 rlen 0 { align1 1Q }; 104 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 0 mlen 9 rlen 0 { align1 1Q }; 107 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 0 mlen 9 rlen 0 { align1 1Q }; 117 thread_spawner MsgDesc: mlen 1 rlen 0 { align1 1Q EOT };
|