Searched defs:hex (Results 1 - 18 of 18) sorted by relevance

/osnet-11/usr/src/lib/libtsol/common/
H A Dbtohex.c78 * Entry hex = Hexadecimal label string.
86 h_free(char *hex) argument
89 if (hex == NULL)
92 free(hex);
100 * hex = Buffer to place converted label.
110 bsltoh_r(const m_label_t *label, char *hex) argument
119 (void) strncpy(hex, (const char *)h, MAXLABELSTR);
121 return (hex);
131 * Address of statically allocated hex label string.
150 * hex
160 bcleartoh_r(const m_label_t *clearance, char *hex) argument
[all...]
/osnet-11/usr/src/lib/libresolv2/common/isc/
H A Dhex.c25 static const char hex[17] = "0123456789abcdef"; variable
63 if ((s = strchr(hex, tolower(c))) == NULL)
65 x = (x<<4) | (s - hex);
95 fputc(hex[(buf[0]>>4)&0xf], fp);
96 fputc(hex[buf[0]&0xf], fp);
111 *t++ = hex[(buf[0]>>4)&0xf];
112 *t++ = hex[buf[0]&0xf];
/osnet-11/usr/src/grub/grub2/grub-core/commands/
H A Dpassword_pbkdf2.c72 hex2val (char hex) argument
74 if ('0' <= hex && hex <= '9')
75 return hex - '0';
76 if ('a' <= hex && hex <= 'f')
77 return hex - 'a' + 10;
78 if ('A' <= hex && hex <= 'F')
79 return hex
[all...]
/osnet-11/usr/src/grub/grub2/util/
H A Dgrub-mkpasswd-pbkdf2.c66 hexify (char *hex, grub_uint8_t *bin, grub_size_t n) argument
71 *hex = ((*bin & 0xf0) >> 4) + '0';
73 *hex = ((*bin & 0xf0) >> 4) + 'A' - 10;
74 hex++;
77 *hex = (*bin & 0xf) + '0';
79 *hex = (*bin & 0xf) + 'A' - 10;
80 hex++;
83 *hex = 0;
/osnet-11/usr/src/lib/libpp/common/
H A Dppfsm.c358 /* saw 0, possible oct|hex|dec|dbl constant */
380 /* saw 0 [xX], hex constant */
389 /* hex constant qualifier */
394 /* hex [eE][-+] botch */
401 /* hex dbl fraction */
408 /* optional hex dbl exponent sign */
414 /* mandatory hex dbl exponent first digit */
419 /* hex dbl exponent digits */
425 /* hex dbl constant qualifier */
562 static char hex[] variable
[all...]
/osnet-11/usr/src/lib/libmp/common/
H A Dutil.c153 * Convert hex digit to binary value
171 * Convert hex key to MINT key
208 * Convert MINT key to hex key
219 char *hex; local
229 hex = malloc((size_t) ((size * BASEBITS + 3)) / 4 + (size ? 1 : 2));
230 if (hex == NULL) {
234 p = hex;
243 for (p--, s = hex; s < p; s++, p--) {
248 return (hex);
/osnet-11/usr/src/lib/libshare_plugins/autofs/
H A Dlibshare_autofs.c248 int hex = 0; local
252 hex = 1;
258 if (hex) {
/osnet-11/usr/src/lib/libnsl/key/
H A Dxcrypt.c53 static char hex[]; /* forward */ variable
76 * The secret key is passed and returned in hex notation.
77 * Its length must be a multiple of 16 hex digits (64 bits).
117 * The secret key is passed and returned in hex notation.
118 * Once again, the length is a multiple of 16 hex digits
195 * Binary to hex conversion
208 hexnum[i*2] = hex[val >> 4];
209 hexnum[i*2+1] = hex[val & 0xf];
215 static char hex[16] = { variable
239 * The secret key is passed in hex notatio
[all...]
/osnet-11/usr/src/cmd/sendmail/db/db/
H A Ddb_pr.c723 static const char hex[] = "0123456789abcdef"; local
742 hex[(u_int8_t)(*p & 0xf0) >> 4],
743 hex[*p & 0x0f]) != 3)
748 hex[(u_int8_t)(*p & 0xf0) >> 4],
749 hex[*p & 0x0f]) != 2)
/osnet-11/usr/src/lib/libbsm/common/
H A Daudit_event.c416 au_class_t hex = AU_MASK_NONE; local
427 hex |= p_class->ac_class;
430 return (hex);
H A Dadt_token.c63 static char hex[HEX_SIZE]; local
68 return ("hex label failed");
70 (void) strlcpy(hex, direct, sizeof (hex));
72 return (hex);
/osnet-11/usr/src/lib/libuvfs/common/
H A Dfs.c197 static char *hex = "0123456789abcdef"; local
205 rc[2*i] = hex[bytes[i] >> 4];
206 rc[2*i+1] = hex[bytes[i] & 0x0f];
/osnet-11/usr/src/lib/sasl_plugins/cram/
H A Dcram.c80 /* convert a string of 8bit chars to it's representation in hex
85 static char hex[]="0123456789abcdef"; local
93 out[lup*2] = hex[in[lup] >> 4];
94 out[lup*2+1] = hex[in[lup] & 15];
577 /* convert that to hex form */
/osnet-11/usr/src/lib/libshare_plugins/legacy/
H A Dlibshare_legacy.c253 static char hex[] = "0123456789abcdef"; local
263 *newshare++ = hex[(*sharename & 0xF0) >> 4];
264 *newshare++ = hex[*sharename & 0xF];
/osnet-11/usr/src/grub/grub-0.97/stage2/
H A Dgraphics.c462 * The RGB hex digits should be six characters in length.
469 int r = ((hex(buf[0]) << 4) | hex(buf[1])) >> 2;
470 int g = ((hex(buf[2]) << 4) | hex(buf[3])) >> 2;
471 int b = ((hex(buf[4]) << 4) | hex(buf[5])) >> 2;
574 r = ((hex(cp[0]) << 4) | hex(cp[1])) >> 2;
575 g = ((hex(c
613 int hex(int v) function
[all...]
/osnet-11/usr/src/lib/libsmb/common/
H A Dsmb_util.c106 * Simple hex dump display function. Displays nbytes of buffer in hex and
118 static char *hex = "0123456789ABCDEF"; local
148 hex[(*p >> 4) & 0x0F], hex[(*p & 0x0F)]);
173 * its equivalent hex chars (hexbuf).
204 * Converts hex to binary.
206 * Assuming hexbuf only contains hex digits (chars)
/osnet-11/usr/src/lib/libshare_plugins/nfs/
H A Dlibshare_nfs.c1592 int hex = 0; local
1596 hex = 1;
1601 if (hex) {
/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_dataset.c1084 * userquota@<hex-rid>-domain, to make it easy
1301 * internal hex label string.
1304 char *hex = NULL; /* label string */ local
1432 /* Now translate to hex internal label string */
1433 if (label_to_str(new_slabel, &hex, M_INTERNAL,
1435 if (hex)
1436 free(hex);
1444 if (strcmp(strval, hex) == 0) {
1445 free(hex);
1453 hex)
[all...]

Completed in 65 milliseconds