Home
last modified time | relevance | path

Searched refs:plen (Results 1 – 25 of 477) sorted by relevance

12345678910>>...20

/netbsd/sys/external/isc/libsodium/dist/test/default/
H A Dchacha20.c29 size_t plen; in tv() local
40 for (plen = 1U; plen < sizeof out; plen++) { in tv()
43 if (memcmp(part, zero, plen) != 0) { in tv()
50 for (plen = 1U; plen < 66; plen += 3) { in tv()
51 memset(out, (int) (plen & 0xff), sizeof out); in tv()
52 crypto_stream_chacha20(out, plen, nonce, key); in tv()
116 size_t plen; in tv_ietf() local
128 for (plen = 1U; plen < sizeof out; plen++) { in tv_ietf()
131 if (memcmp(part, zero, plen) != 0) { in tv_ietf()
138 for (plen = 1U; plen < 66; plen += 3) { in tv_ietf()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/
H A Dcipher_chacha20_poly1305_hw.c143 ctx->len.text = plen; in chacha20_poly1305_tls_cipher()
145 if (plen) { in chacha20_poly1305_tls_cipher()
151 in += plen; in chacha20_poly1305_tls_cipher()
152 out += plen; in chacha20_poly1305_tls_cipher()
168 ctx->len.text = plen; in chacha20_poly1305_tls_cipher()
212 in += plen; in chacha20_poly1305_tls_cipher()
213 out += plen; in chacha20_poly1305_tls_cipher()
318 plen = inl; in chacha20_poly1305_aead_cipher()
325 in += plen; in chacha20_poly1305_aead_cipher()
331 in += plen; in chacha20_poly1305_aead_cipher()
[all …]
H A Dcipher_rc4_hmac_md5_hw.c61 size_t plen = ctx->payload_length; in cipher_hw_rc4_hmac_md5_cipher() local
63 if (plen != NO_PAYLOAD_LENGTH && len != (plen + MD5_DIGEST_LENGTH)) in cipher_hw_rc4_hmac_md5_cipher()
67 if (plen == NO_PAYLOAD_LENGTH) in cipher_hw_rc4_hmac_md5_cipher()
68 plen = len; in cipher_hw_rc4_hmac_md5_cipher()
74 if (plen > md5_off in cipher_hw_rc4_hmac_md5_cipher()
75 && (blocks = (plen - md5_off) / MD5_CBLOCK) in cipher_hw_rc4_hmac_md5_cipher()
94 MD5_Update(&ctx->md, in + md5_off, plen - md5_off); in cipher_hw_rc4_hmac_md5_cipher()
96 if (plen != len) { /* "TLS" mode of operation */ in cipher_hw_rc4_hmac_md5_cipher()
101 MD5_Final(out + plen, &ctx->md); in cipher_hw_rc4_hmac_md5_cipher()
104 MD5_Final(out + plen, &ctx->md); in cipher_hw_rc4_hmac_md5_cipher()
[all …]
/netbsd/external/gpl3/gcc/dist/gcc/config/avr/
H A Davr.c3697 if (plen) in avr_out_lpm()
5905 if (plen) in avr_out_compare()
6177 if (plen) in out_shift_with_cnt()
6634 if (plen) in avr_out_ashlpsi3()
7726 if (plen) in avr_out_plus_1()
8268 if (plen) in avr_out_plus()
8319 if (plen) in avr_out_bitop()
8448 if (plen) in avr_out_sign_extend()
8495 if (plen) in avr_out_addto_sp()
8637 if (plen) in avr_out_fract()
[all …]
H A Davr.cc3564 if (plen) in avr_out_lpm()
5774 if (plen) in avr_out_compare()
6046 if (plen) in out_shift_with_cnt()
6511 if (plen) in avr_out_ashlpsi3()
7607 if (plen) in avr_out_plus_1()
8149 if (plen) in avr_out_plus()
8200 if (plen) in avr_out_bitop()
8329 if (plen) in avr_out_sign_extend()
8376 if (plen) in avr_out_addto_sp()
8518 if (plen) in avr_out_fract()
[all …]
/netbsd/external/gpl3/gcc.old/dist/gcc/config/avr/
H A Davr.c3697 if (plen) in avr_out_lpm()
5905 if (plen) in avr_out_compare()
6177 if (plen) in out_shift_with_cnt()
6634 if (plen) in avr_out_ashlpsi3()
7726 if (plen) in avr_out_plus_1()
8268 if (plen) in avr_out_plus()
8319 if (plen) in avr_out_bitop()
8448 if (plen) in avr_out_sign_extend()
8495 if (plen) in avr_out_addto_sp()
8637 if (plen) in avr_out_fract()
[all …]
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/evp/
H A De_chacha20_poly1305.c239 if (plen) { in chacha20_poly1305_tls_cipher()
245 in += plen; in chacha20_poly1305_tls_cipher()
246 out += plen; in chacha20_poly1305_tls_cipher()
306 in += plen; in chacha20_poly1305_tls_cipher()
307 out += plen; in chacha20_poly1305_tls_cipher()
408 plen = len; in chacha20_poly1305_cipher()
415 in += plen; in chacha20_poly1305_cipher()
416 out += plen; in chacha20_poly1305_cipher()
421 in += plen; in chacha20_poly1305_cipher()
422 out += plen; in chacha20_poly1305_cipher()
[all …]
H A De_rc4_hmac_md5.c76 size_t plen = key->payload_length; in rc4_hmac_md5_cipher() local
78 if (plen != NO_PAYLOAD_LENGTH && len != (plen + MD5_DIGEST_LENGTH)) in rc4_hmac_md5_cipher()
82 if (plen == NO_PAYLOAD_LENGTH) in rc4_hmac_md5_cipher()
83 plen = len; in rc4_hmac_md5_cipher()
89 if (plen > md5_off && (blocks = (plen - md5_off) / MD5_CBLOCK) && in rc4_hmac_md5_cipher()
108 MD5_Update(&key->md, in + md5_off, plen - md5_off); in rc4_hmac_md5_cipher()
110 if (plen != len) { /* "TLS" mode of operation */ in rc4_hmac_md5_cipher()
115 MD5_Final(out + plen, &key->md); in rc4_hmac_md5_cipher()
117 MD5_Update(&key->md, out + plen, MD5_DIGEST_LENGTH); in rc4_hmac_md5_cipher()
118 MD5_Final(out + plen, &key->md); in rc4_hmac_md5_cipher()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/crypto/evp/
H A De_chacha20_poly1305.c241 if (plen) { in chacha20_poly1305_tls_cipher()
247 in += plen; in chacha20_poly1305_tls_cipher()
248 out += plen; in chacha20_poly1305_tls_cipher()
308 in += plen; in chacha20_poly1305_tls_cipher()
309 out += plen; in chacha20_poly1305_tls_cipher()
407 plen = len; in chacha20_poly1305_cipher()
414 in += plen; in chacha20_poly1305_cipher()
415 out += plen; in chacha20_poly1305_cipher()
420 in += plen; in chacha20_poly1305_cipher()
421 out += plen; in chacha20_poly1305_cipher()
[all …]
H A De_rc4_hmac_md5.c86 size_t plen = key->payload_length; in rc4_hmac_md5_cipher() local
88 if (plen != NO_PAYLOAD_LENGTH && len != (plen + MD5_DIGEST_LENGTH)) in rc4_hmac_md5_cipher()
92 if (plen == NO_PAYLOAD_LENGTH) in rc4_hmac_md5_cipher()
93 plen = len; in rc4_hmac_md5_cipher()
99 if (plen > md5_off && (blocks = (plen - md5_off) / MD5_CBLOCK) && in rc4_hmac_md5_cipher()
118 MD5_Update(&key->md, in + md5_off, plen - md5_off); in rc4_hmac_md5_cipher()
120 if (plen != len) { /* "TLS" mode of operation */ in rc4_hmac_md5_cipher()
125 MD5_Final(out + plen, &key->md); in rc4_hmac_md5_cipher()
127 MD5_Update(&key->md, out + plen, MD5_DIGEST_LENGTH); in rc4_hmac_md5_cipher()
128 MD5_Final(out + plen, &key->md); in rc4_hmac_md5_cipher()
[all …]
/netbsd/external/bsd/tcpdump/dist/
H A Dprint-bgp.c546 if (32 < plen) in decode_prefix4()
589 if (24 > plen) in decode_labeled_prefix4()
594 if (32 < plen) in decode_labeled_prefix4()
765 u_int plen; in decode_rt_routing_info() local
782 if (32 > plen) in decode_rt_routing_info()
791 if (64 < plen) in decode_rt_routing_info()
821 u_int plen; in decode_labeled_vpn_prefix4() local
1133 plen = pd[0]; in decode_prefix6()
1207 u_int plen; in decode_labeled_vpn_prefix6() local
1246 u_int plen; in decode_clnp_prefix() local
[all …]
H A Dprint-babel.c185 if(plen >= 0) in network_prefix()
186 pb = (plen + 7) / 8; in network_prefix()
499 u_char plen; in babel_print_v2() local
537 u_char prefix[16], plen; in babel_print_v2() local
556 u_char prefix[16], plen; in babel_print_v2() local
607 plen = message[4]; in babel_print_v2()
617 plen += 96; in babel_print_v2()
647 plen = message[3]; in babel_print_v2()
653 plen += 96; in babel_print_v2()
682 plen = message[3]; in babel_print_v2()
[all …]
/netbsd/external/bsd/wpa/dist/src/tls/
H A Dtlsv1_record.c356 size_t plen; in tlsv1_record_receive() local
362 plen = in_len; in tlsv1_record_receive()
364 "data", out_data, plen); in tlsv1_record_receive()
388 plen -= rl->iv_size; in tlsv1_record_receive()
392 if (plen == 0) { in tlsv1_record_receive()
399 if (padlen >= plen) { in tlsv1_record_receive()
407 for (i = plen - padlen - 1; i < plen - 1; i++) { in tlsv1_record_receive()
419 plen -= padlen + 1; in tlsv1_record_receive()
434 plen -= rl->hash_size; in tlsv1_record_receive()
448 WPA_PUT_BE16(len, plen); in tlsv1_record_receive()
[all …]
/netbsd/external/bsd/libpcap/dist/rpcapd/
H A Ddaemon.c125 uint32 plen);
332 plen = header.plen; in daemon_serviceloop()
570 plen = header.plen; in daemon_serviceloop()
890 if (plen >= PCAP_ERRBUF_SIZE) in daemon_msg_err()
915 else if (plen == 0) in daemon_msg_err()
934 remote_errbuf[plen] = '\0'; in daemon_msg_err()
1546 if (plen > sourcelen - 1) in daemon_msg_open_req()
1560 plen -= nread; in daemon_msg_open_req()
2540 headerp->plen = ntohl(headerp->plen); in rpcapd_recv_msg_header()
2559 if (toread > *plen) in rpcapd_recv()
[all …]
/netbsd/lib/libc/db/btree/
H A Dbt_overflow.c87 uint32_t sz, nb, plen; in __ovfl_get() local
113 plen = (uint32_t)temp; in __ovfl_get()
118 nb = MIN(sz, plen); in __ovfl_get()
145 uint32_t sz, nb, plen; in __ovfl_put() local
154 plen = (uint32_t)temp; in __ovfl_put()
160 for (;; p = (char *)p + plen, last = h) { in __ovfl_put()
169 nb = MIN(sz, plen); in __ovfl_put()
201 uint32_t sz, plen; in __ovfl_delete() local
223 plen = (uint32_t)temp; in __ovfl_delete()
224 for (;; sz -= plen) { in __ovfl_delete()
[all …]
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/asn1/
H A Dbio_ndef.c45 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
46 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen,
48 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
49 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen,
129 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix() argument
155 *plen = *ndef_aux->boundary - *pbuf; in ndef_prefix()
160 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_prefix_free() argument
177 *plen = 0; in ndef_prefix_free()
181 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_suffix_free() argument
185 if (!ndef_prefix_free(b, pbuf, plen, parg)) in ndef_suffix_free()
[all …]
H A Dtasn_dec.c665 long plen; in asn1_d2i_ex_primitive() local
774 len = plen; in asn1_d2i_ex_primitive()
775 p += plen; in asn1_d2i_ex_primitive()
939 long plen; in asn1_find_end() local
1007 long plen; in asn1_collect() local
1048 } else if (plen && !collect_data(buf, &p, plen)) in asn1_collect()
1071 *p += plen; in collect_data()
1104 long plen; in asn1_check_tlen() local
1111 plen = ctx->plen; in asn1_check_tlen()
1119 ctx->plen = plen; in asn1_check_tlen()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Dbio_ndef.c45 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
46 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen,
48 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
49 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen,
129 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix() argument
155 *plen = *ndef_aux->boundary - *pbuf; in ndef_prefix()
160 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_prefix_free() argument
177 *plen = 0; in ndef_prefix_free()
181 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_suffix_free() argument
185 if (!ndef_prefix_free(b, pbuf, plen, parg)) in ndef_suffix_free()
[all …]
/netbsd/external/bsd/libpcap/dist/
H A Dpcap-rpcap.c377 uint32 plen; in pcap_read_nocb_remote() local
451 plen = ntohl(header->plen); in pcap_read_nocb_remote()
494 plen = ntohl(header->plen); in pcap_read_nocb_remote()
532 header->plen = plen; in pcap_read_nocb_remote()
891 plen = header.plen; in rpcap_stats_rpcap()
1018 uint32 plen; in pcap_startcapture_remote() local
1190 plen = header.plen; in pcap_startcapture_remote()
1947 plen = header.plen; in rpcap_doauth()
2269 plen = header.plen; in pcap_open_rpcap()
2384 plen = header.plen; in pcap_findalldevs_ex_remote()
[all …]
/netbsd/external/mpl/bind/dist/lib/isc/tests/
H A Dnetaddr_test.c70 unsigned int plen; in netaddr_masktoprefixlen() local
84 assert_int_equal(isc_netaddr_masktoprefixlen(&ina_a, &plen), in netaddr_masktoprefixlen()
86 assert_int_equal(plen, 0); in netaddr_masktoprefixlen()
88 assert_int_equal(isc_netaddr_masktoprefixlen(&ina_b, &plen), in netaddr_masktoprefixlen()
90 assert_int_equal(plen, 31); in netaddr_masktoprefixlen()
92 assert_int_equal(isc_netaddr_masktoprefixlen(&ina_c, &plen), in netaddr_masktoprefixlen()
94 assert_int_equal(plen, 32); in netaddr_masktoprefixlen()
96 assert_int_equal(isc_netaddr_masktoprefixlen(&ina_d, &plen), in netaddr_masktoprefixlen()
98 assert_int_equal(plen, 24); in netaddr_masktoprefixlen()
/netbsd/usr.sbin/ip6addrctl/
H A Dip6addrctl.c153 int plen, first = 1; in dump_policy() local
178 "/%d", plen); in dump_policy()
181 printf("%s/%d", addrbuf, plen); in dump_policy()
260 int e = 0, plen; in parse_prefix() local
284 plen = atoi(plenstr + 1); in parse_prefix()
285 if (plen < 0 || plen > 128) { in parse_prefix()
286 warnx("invalid prefix length: %d", plen); in parse_prefix()
290 plen2mask(&pol->addrmask, plen); in parse_prefix()
306 for(; plen >= 8; plen -= 8) in plen2mask()
308 if (plen > 0) in plen2mask()
[all …]
/netbsd/external/gpl3/gdb/dist/gold/
H A Dint_encoding.h46 read_unsigned_LEB_128_x(const unsigned char* buffer, size_t* plen,
50 read_unsigned_LEB_128(const unsigned char* buffer, size_t* plen) in read_unsigned_LEB_128() argument
55 return read_unsigned_LEB_128_x(buffer, plen, byte); in read_unsigned_LEB_128()
57 *plen = 1; in read_unsigned_LEB_128()
67 read_signed_LEB_128_x(const unsigned char* buffer, size_t* plen,
71 read_signed_LEB_128(const unsigned char* buffer, size_t* plen) in read_signed_LEB_128() argument
76 return read_signed_LEB_128_x(buffer, plen, byte); in read_signed_LEB_128()
78 *plen = 1; in read_signed_LEB_128()
/netbsd/external/gpl3/binutils/dist/gold/
H A Dint_encoding.h46 read_unsigned_LEB_128_x(const unsigned char* buffer, size_t* plen,
50 read_unsigned_LEB_128(const unsigned char* buffer, size_t* plen) in read_unsigned_LEB_128() argument
55 return read_unsigned_LEB_128_x(buffer, plen, byte); in read_unsigned_LEB_128()
57 *plen = 1; in read_unsigned_LEB_128()
67 read_signed_LEB_128_x(const unsigned char* buffer, size_t* plen,
71 read_signed_LEB_128(const unsigned char* buffer, size_t* plen) in read_signed_LEB_128() argument
76 return read_signed_LEB_128_x(buffer, plen, byte); in read_signed_LEB_128()
78 *plen = 1; in read_signed_LEB_128()
/netbsd/external/gpl3/binutils.old/dist/gold/
H A Dint_encoding.h46 read_unsigned_LEB_128_x(const unsigned char* buffer, size_t* plen,
50 read_unsigned_LEB_128(const unsigned char* buffer, size_t* plen) in read_unsigned_LEB_128() argument
55 return read_unsigned_LEB_128_x(buffer, plen, byte); in read_unsigned_LEB_128()
57 *plen = 1; in read_unsigned_LEB_128()
67 read_signed_LEB_128_x(const unsigned char* buffer, size_t* plen,
71 read_signed_LEB_128(const unsigned char* buffer, size_t* plen) in read_signed_LEB_128() argument
76 return read_signed_LEB_128_x(buffer, plen, byte); in read_signed_LEB_128()
78 *plen = 1; in read_signed_LEB_128()
/netbsd/external/gpl3/gdb.old/dist/gold/
H A Dint_encoding.h46 read_unsigned_LEB_128_x(const unsigned char* buffer, size_t* plen,
50 read_unsigned_LEB_128(const unsigned char* buffer, size_t* plen) in read_unsigned_LEB_128() argument
55 return read_unsigned_LEB_128_x(buffer, plen, byte); in read_unsigned_LEB_128()
57 *plen = 1; in read_unsigned_LEB_128()
67 read_signed_LEB_128_x(const unsigned char* buffer, size_t* plen,
71 read_signed_LEB_128(const unsigned char* buffer, size_t* plen) in read_signed_LEB_128() argument
76 return read_signed_LEB_128_x(buffer, plen, byte); in read_signed_LEB_128()
78 *plen = 1; in read_signed_LEB_128()

12345678910>>...20