Home
last modified time | relevance | path

Searched refs:u_char (Results 1 – 25 of 74) sorted by relevance

123

/third_party/lwip/src/netif/ppp/
Dchap_ms.c153 static void ascii2unicode (const char[], int, u_char[]);
154 static void NTPasswordHash (u_char *, int, u_char[MD4_SIGNATURE_SIZE]);
155 static void ChallengeResponse (const u_char *, const u_char *, u_char[24]);
156 static void ChallengeHash (const u_char[16], const u_char *, const char *, u_char[8]);
157 static void ChapMS_NT (const u_char *, const char *, int, u_char[24]);
158 static void ChapMS2_NT (const u_char *, const u_char[16], const char *, const char *, int,
159 u_char[24]);
161 (const char*, int, u_char[24], const u_char[16], const u_char *,
162 const char *, u_char[41]);
164 static void ChapMS_LANMan (u_char *, char *, int, u_char *);
[all …]
Dupap.c86 static void upap_input(ppp_pcb *pcb, u_char *inpacket, int l);
89 static int upap_printpkt(const u_char *p, int plen, void (*printer) (void *, const char *, ...), vo…
124 static void upap_rauthreq(ppp_pcb *pcb, u_char *inp, int id, int len);
126 static void upap_rauthack(ppp_pcb *pcb, u_char *inp, int id, int len);
127 static void upap_rauthnak(ppp_pcb *pcb, u_char *inp, int id, int len);
130 static void upap_sresp(ppp_pcb *pcb, u_char code, u_char id, const char *msg, int msglen);
305 static void upap_input(ppp_pcb *pcb, u_char *inpacket, int l) { in upap_input()
306 u_char *inp; in upap_input()
307 u_char code, id; in upap_input()
359 static void upap_rauthreq(ppp_pcb *pcb, u_char *inp, int id, int len) { in upap_rauthreq()
[all …]
Dfsm.c63 static void fsm_rconfreq(fsm *f, u_char id, u_char *inp, int len);
64 static void fsm_rconfack(fsm *f, int id, u_char *inp, int len);
65 static void fsm_rconfnakrej(fsm *f, int code, int id, u_char *inp, int len);
66 static void fsm_rtermreq(fsm *f, int id, u_char *p, int len);
68 static void fsm_rcoderej(fsm *f, u_char *inp, int len);
211 (const u_char *) f->term_reason, f->term_reason_len); in terminate_layer()
283 (const u_char *) f->term_reason, f->term_reason_len); in fsm_timeout()
318 void fsm_input(fsm *f, u_char *inpacket, int l) { in fsm_input()
319 u_char *inp; in fsm_input()
320 u_char code, id; in fsm_input()
[all …]
Deap.c99 static void eap_input(ppp_pcb *pcb, u_char *inp, int inlen);
104 static int eap_printpkt(const u_char *inp, int inlen,
141 static const u_char wkmodulus[] = {
252 u_char *outp; in eap_send_failure()
262 outp = (u_char*)p->payload; in eap_send_failure()
283 u_char *outp; in eap_send_success()
293 outp = (u_char*)p->payload; in eap_send_success()
320 u_char dig[SHA_DIGESTSIZE]; in pncrypt_setkey()
347 u_char *inp;
349 u_char *outp;
[all …]
Dmagic.c106 lwip_md5_update(&md5_ctx, (u_char *)magic_randpool, sizeof(magic_randpool)); in magic_churnrand()
108 lwip_md5_update(&md5_ctx, (u_char *)rand_data, rand_len); in magic_churnrand()
123 lwip_md5_update(&md5_ctx, (u_char *)&sys_data, sizeof(sys_data)); in magic_churnrand()
125 lwip_md5_finish(&md5_ctx, (u_char *)magic_randpool); in magic_churnrand()
164 u_char tmp[MD5_HASH_SIZE]; in magic_random_bytes()
170 lwip_md5_update(&md5_ctx, (u_char *)magic_randpool, sizeof(magic_randpool)); in magic_random_bytes()
171 lwip_md5_update(&md5_ctx, (u_char *)&magic_randcount, sizeof(magic_randcount)); in magic_random_bytes()
Dpppcrypt.c41 static u_char pppcrypt_get_7bits(u_char *input, int startBit) { in pppcrypt_get_7bits()
55 void pppcrypt_56_to_64_bit_key(u_char *key, u_char * des_key) { in pppcrypt_56_to_64_bit_key()
Dipv6cp.c181 static void ipv6cp_addci(fsm *f, u_char *ucp, int *lenp); /* Add our CI */
182 static int ipv6cp_ackci(fsm *f, u_char *p, int len); /* Peer ack'd our CI */
183 static int ipv6cp_nakci(fsm *f, u_char *p, int len, int treat_as_reject); /* Peer nak'd our CI */
184 static int ipv6cp_rejci(fsm *f, u_char *p, int len); /* Peer rej'd our CI */
185 static int ipv6cp_reqci(fsm *f, u_char *inp, int *len, int reject_if_disagree); /* Rcv CI */
258 static void ipv6cp_input(ppp_pcb *pcb, u_char *p, int len);
267 static int ipv6cp_printpkt(const u_char *p, int plen,
271 static int ipv6_active_pkt(u_char *pkt, int len);
491 static void ipv6cp_input(ppp_pcb *pcb, u_char *p, int len) {
549 static void ipv6cp_addci(fsm *f, u_char *ucp, int *lenp) {
[all …]
Dccp.c173 static void ccp_input(ppp_pcb *pcb, u_char *pkt, int len);
176 static int ccp_printpkt(const u_char *p, int plen, void (*printer) (void *, const char *, ...), voi…
179 static void ccp_datainput(ppp_pcb *pcb, u_char *pkt, int len);
216 static void ccp_addci (fsm *, u_char *, int *);
217 static int ccp_ackci (fsm *, u_char *, int);
218 static int ccp_nakci (fsm *, u_char *, int, int);
219 static int ccp_rejci (fsm *, u_char *, int);
220 static int ccp_reqci (fsm *, u_char *, int *, int);
223 static int ccp_extcode (fsm *, int, int, u_char *, int);
455 static void ccp_input(ppp_pcb *pcb, u_char *p, int len) { in ccp_input()
[all …]
Dlcp.c220 static void lcp_addci(fsm *f, u_char *ucp, int *lenp); /* Add our CI to pkt */
221 static int lcp_ackci(fsm *f, u_char *p, int len); /* Peer ack'd our CI */
222 static int lcp_nakci(fsm *f, u_char *p, int len, int treat_as_reject); /* Peer nak'd our CI */
223 static int lcp_rejci(fsm *f, u_char *p, int len); /* Peer rej'd our CI */
224 static int lcp_reqci(fsm *f, u_char *inp, int *lenp, int reject_if_disagree); /* Rcv peer CI */
229 static int lcp_extcode(fsm *f, int code, int id, u_char *inp, int len);
230 static void lcp_rprotrej(fsm *f, u_char *inp, int len);
239 static void lcp_received_echo_reply(fsm *f, int id, u_char *inp, int len);
268 static void lcp_input(ppp_pcb *pcb, u_char *p, int len);
271 static int lcp_printpkt(const u_char *p, int plen,
[all …]
Dipcp.c115 static void ipcp_addci(fsm *f, u_char *ucp, int *lenp); /* Add our CI */
116 static int ipcp_ackci(fsm *f, u_char *p, int len); /* Peer ack'd our CI */
117 static int ipcp_nakci(fsm *f, u_char *p, int len, int treat_as_reject);/* Peer nak'd our CI */
118 static int ipcp_rejci(fsm *f, u_char *p, int len); /* Peer rej'd our CI */
119 static int ipcp_reqci(fsm *f, u_char *inp, int *len, int reject_if_disagree); /* Rcv CI */
264 static void ipcp_input(ppp_pcb *pcb, u_char *p, int len);
267 static int ipcp_printpkt(const u_char *p, int plen,
275 static int ip_active_pkt (u_char *, int);
691 static void ipcp_input(ppp_pcb *pcb, u_char *p, int len) { in ipcp_input()
806 static void ipcp_addci(fsm *f, u_char *ucp, int *lenp) { in ipcp_addci()
[all …]
/third_party/lwip/src/include/netif/ppp/
Dfsm.h104 (fsm *, u_char *, int *);
106 (fsm *, u_char *, int);
108 (fsm *, u_char *, int, int);
110 (fsm *, u_char *, int);
112 (fsm *, u_char *, int *, int);
126 (fsm *, int, int, u_char *, int);
173 void fsm_input(fsm *f, u_char *inpacket, int l);
175 void fsm_sdata(fsm *f, u_char code, u_char id, const u_char *data, int datalen);
Dppp_impl.h77 #define PPP_ADDRESS(p) (((u_char *)(p))[0])
78 #define PPP_CONTROL(p) (((u_char *)(p))[1])
79 #define PPP_PROTOCOL(p) ((((u_char *)(p))[2] << 8) + ((u_char *)(p))[3])
286 void (*input) (ppp_pcb *pcb, u_char *pkt, int len);
299 int (*printpkt) (const u_char *pkt, int len,
305 void (*datainput) (ppp_pcb *pcb, u_char *pkt, int len);
320 int (*active_pkt) (u_char *pkt, int len);
464 int ccp_test(ppp_pcb *pcb, u_char *opt_ptr, int opt_len, int for_transmit);
506 *(cp)++ = (u_char) (c); \
513 *(cp)++ = (u_char) ((s) >> 8); \
[all …]
Deap.h120 u_char *ea_skey; /* Shared encryption key */
124 u_char ea_id; /* Current id */
125 u_char ea_requests; /* Number of Requests sent/received */
126 u_char ea_responses; /* Number of Responses */
127 u_char ea_type; /* One of EAPT_* */
145 u_char es_challenge[EAP_MAX_CHALLENGE_LENGTH];
/third_party/FreeBSD/contrib/tcp_wrappers/
Dstrcasecmp.c27 typedef unsigned char u_char; typedef
35 static u_char charmap[] = {
73 register u_char *cm = charmap,
74 *us1 = (u_char *)s1,
75 *us2 = (u_char *)s2;
87 register u_char *cm = charmap,
88 *us1 = (u_char *)s1,
89 *us2 = (u_char *)s2;
/third_party/alsa-utils/aplay/
Dformats.h21 u_char magic[20]; /* must be MAGIC_STRING */
28 u_char type;
29 u_char datalen; /* low-byte */
30 u_char datalen_m; /* medium-byte */
31 u_char datalen_h; /* high-byte */
35 u_char tc;
36 u_char pack;
41 u_char pack;
42 u_char mode;
109 u_char guid_tag[14]; /* WAV_GUID_TAG */
Daplay.c114 static u_char *audiobuf = NULL;
859 audiobuf = (u_char *)malloc(1024); in main()
970 static size_t test_wavefile_read(int fd, u_char *buffer, size_t *size, size_t reqsize, int line) in test_wavefile_read()
995 static ssize_t test_wavefile(int fd, u_char *_buffer, size_t size) in test_wavefile()
998 u_char *buffer = NULL; in test_wavefile()
1793 static void compute_max_peak(u_char *data, size_t samples) in compute_max_peak()
2038 static u_char *remap_data(u_char *data, size_t count) in remap_data()
2040 static u_char *tmp, *src, *dst; in remap_data()
2074 static u_char **remap_datav(u_char **data, size_t count) in remap_datav()
2076 static u_char **tmp; in remap_datav()
[all …]
/third_party/FreeBSD/sbin/fsck_msdosfs/
Ddir.c98 static u_char calcShortSum(u_char *);
100 static int removede(struct fat_descriptor *, u_char *, u_char *,
102 static int checksize(struct fat_descriptor *, u_char *, struct dosDirEntry *);
194 static inline u_char
195 calcShortSum(u_char *p) in calcShortSum()
197 u_char sum = 0; in calcShortSum()
212 static u_char *buffer = NULL;
213 static u_char *delbuf = NULL;
301 u_char *s, *e; in delete()
350 removede(struct fat_descriptor *fat, u_char *start, in removede()
[all …]
Dboot.c50 u_char block[DOSBOOTBLOCKSIZE]; in readboot()
51 u_char fsinfo[2 * DOSBOOTBLOCKSIZE]; in readboot()
341 u_char fsinfo[2 * DOSBOOTBLOCKSIZE]; in writefsinfo()
349 fsinfo[0x1e8] = (u_char)boot->FSFree; in writefsinfo()
350 fsinfo[0x1e9] = (u_char)(boot->FSFree >> 8); in writefsinfo()
351 fsinfo[0x1ea] = (u_char)(boot->FSFree >> 16); in writefsinfo()
352 fsinfo[0x1eb] = (u_char)(boot->FSFree >> 24); in writefsinfo()
353 fsinfo[0x1ec] = (u_char)boot->FSNext; in writefsinfo()
354 fsinfo[0x1ed] = (u_char)(boot->FSNext >> 8); in writefsinfo()
355 fsinfo[0x1ee] = (u_char)(boot->FSNext >> 16); in writefsinfo()
[all …]
/third_party/FreeBSD/lib/libc/gen/
Darc4random.c81 u_char rs_buf[RSBUFSZ]; /* keystream blocks */
91 static inline void _rs_rekey(u_char *dat, size_t datlen);
94 _rs_init(u_char *buf, size_t n) in _rs_init()
111 u_char rnd[KEYSZ + IVSZ]; in _rs_stir()
178 _rs_rekey(u_char *dat, size_t datlen) in _rs_rekey()
203 u_char *buf = (u_char *)_buf; in _rs_random_buf()
204 u_char *keystream; in _rs_random_buf()
227 u_char *keystream; in _rs_random_u32()
/third_party/FreeBSD/sys/crypto/rijndael/
Drijndael.h44 void rijndael_set_key(rijndael_ctx *, const u_char *, int);
45 void rijndael_decrypt(const rijndael_ctx *, const u_char *, u_char *);
46 void rijndael_encrypt(const rijndael_ctx *, const u_char *, u_char *);
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/
Duser_ip_icmp.h51 u_char icmp_type; /* type of message, see below */
52 u_char icmp_code; /* type sub code */
80 u_char icmp_type; /* type of message, see below */
81 u_char icmp_code; /* type sub code */
84 u_char ih_pptr; /* ICMP_PARAMPROB */
99 u_char irt_num_addrs;
100 u_char irt_wpa;
Duser_inpcb.h116 u_char inp_vflag; /* IP version flag (v4/v6) */
125 u_char inp_ip_ttl; /* time to live proto */
126 u_char inp_ip_p; /* protocol proto */
127 u_char inp_ip_minttl; /* minimum TTL or drop */
140 u_char inp4_ip_tos; /* type of service proto */
/third_party/FreeBSD/sys/net/
Dppp_defs.h43 #define PPP_ADDRESS(p) (((u_char *)(p))[0])
44 #define PPP_CONTROL(p) (((u_char *)(p))[1])
45 #define PPP_PROTOCOL(p) ((((u_char *)(p))[2] << 8) + ((u_char *)(p))[3])
/third_party/python/Modules/
Dgetnameinfo.c71 u_char si_len;
72 u_char si_family;
106 u_char pfx;
/third_party/libwebsockets/plugins/ssh-base/crypto/
Dchacha.c302 chachapoly_crypt(struct lws_ssh_keys *keys, u_int seqnr, u_char *dest, in chachapoly_crypt()
303 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt()
305 u_char seqbuf[8]; in chachapoly_crypt()
306 const u_char one[8] = { 1, 0, 0, 0, 0, 0, 0, 0 }; /* NB little-endian */ in chachapoly_crypt()
307 u_char expected_tag[POLY1305_TAGLEN], poly_key[POLY1305_KEYLEN]; in chachapoly_crypt()
322 const u_char *tag = src + aadlen + len; in chachapoly_crypt()

123