Searched +refs:val +refs:digest (Results 1 - 7 of 7) sorted by relevance

/osnet-11/usr/src/lib/crypt_modules/sunmd5/
H A Dsunmd5.c95 md5bit(uint8_t *digest, int bit_num) argument
104 /* return the value of bit N from the digest */
105 return ((digest[byte_off] & (0x01 << bit_off)) ? 1 : 0);
132 long val; local
147 val = strtol(p, &e, 10);
152 if (errno != 0 || val < 0 ||
159 return ((uint32_t)val);
259 uint8_t digest[DIGEST_LEN]; /* where the MD5 digest is stored */ member in struct:__anon951
268 int indirect_a; /* 7bit index into digest */
[all...]
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/
H A Ddigest_md5.c55 /* size of a digest result */
58 /* size of a digest hex string */
70 * broken-out digest attributes (with quotes removed)
102 unsigned char digest[16]; member in struct:chal_info
151 MD5Final(cinfo.digest, &ctx);
262 * calculate hash response for digest auth.
449 #define lstreqcase(conststr, val, len) ((len) == sizeof (conststr) - 1 && \
450 strncasecmp((conststr), (val), sizeof (conststr) - 1) == 0)
452 /* parse a digest auth string */
466 static const char uristr[] = "digest
468 const char *scan, *attr, *val, *end; local
669 char *digest = NULL; local
749 char *digest = NULL; local
[all...]
/osnet-11/usr/src/lib/libnsl/key/
H A Dxcrypt.c204 unsigned val; local
207 val = binnum[i];
208 hexnum[i*2] = hex[val >> 4];
209 hexnum[i*2+1] = hex[val & 0xf];
291 uint8_t digest[MD5HEXSIZE/2]; local
296 MD5Final(digest, &md5_ctx);
298 /* convert md5 binary digest to hex */
299 (void) bin2hex(MD5HEXSIZE/2, digest, md5hexbuf);
422 uint8_t digest[MD5HEXSIZE/2]; local
427 MD5Final(digest,
[all...]
/osnet-11/usr/src/lib/sasl_plugins/digestmd5/
H A Ddigestmd5.c292 unsigned val = 0; local
297 val ^= i;
298 val <<= 1;
302 return val;
326 * calculate request-digest/response-digest as per HTTP Digest spec
339 HASHHEX Response /* request-digest or response-digest */
754 unsigned char digest[16],
785 /* copy in the HMAC to digest */
751 dec_3des(context_t *text, const char *input, unsigned inputlen, unsigned char digest[16], char *output, unsigned *outputlen) argument
791 enc_3des(context_t *text, const char *input, unsigned inputlen, unsigned char digest[16], char *output, unsigned *outputlen) argument
872 dec_des(context_t *text, const char *input, unsigned inputlen, unsigned char digest[16], char *output, unsigned *outputlen) argument
915 enc_des(context_t *text, const char *input, unsigned inputlen, unsigned char digest[16], char *output, unsigned *outputlen) argument
1143 dec_rc4(context_t *text, const char *input, unsigned inputlen, unsigned char digest[16], char *output, unsigned *outputlen) argument
1164 enc_rc4(context_t *text, const char *input, unsigned inputlen, unsigned char digest[16], char *output, unsigned *outputlen) argument
1475 dec_rc4_uef(context_t *text, const char *input, unsigned inputlen, unsigned char digest[16], char *output, unsigned *outputlen) argument
1515 enc_rc4_uef(context_t *text, const char *input, unsigned inputlen, unsigned char digest[16], char *output, unsigned *outputlen) argument
1556 dec_des_uef(context_t *text, const char *input, unsigned inputlen, unsigned char digest[16], char *output, unsigned *outputlen) argument
1610 enc_des_uef(context_t *text, const char *input, unsigned inputlen, unsigned char digest[16], char *output, unsigned *outputlen) argument
1741 unsigned char digest[16]; local
1826 unsigned char digest[16]; local
3065 unsigned val = hash(username) % text->reauth->size; local
3520 unsigned val = hash(username) % text->reauth->size; local
4810 unsigned val; local
5018 unsigned val = hash(params->serverFQDN) % text->reauth->size; local
5069 unsigned val = hash(params->serverFQDN) % text->reauth->size; local
[all...]
/osnet-11/usr/src/lib/libsip/common/
H A Dsip_dialog.c234 const struct sip_value *val; local
236 val = sip_get_header_value(_dialog->sip_dlg_remote_target,
238 if (val == NULL)
240 req_uri = &((sip_hdr_value_t *)val)->cftr_uri;
347 const struct sip_value *val; local
349 val = sip_get_header_value(dialog->sip_dlg_remote_target, NULL);
350 to_uri = &((sip_hdr_value_t *)val)->cftr_uri;
743 * Set the partial dialog timer with the INVITE timeout val
868 const struct sip_value *val; local
1125 val
1278 uint16_t digest[8]; local
[all...]
/osnet-11/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c518 if (serial != NULL && serial->val != NULL && serial->len > 0) {
519 SETATTR(templ, i, CKA_SERIAL_NUMBER, serial->val, serial->len);
1156 signed_cert_ptr->certificate.serialNumber.val != NULL) {
1157 serial = signed_cert_ptr->certificate.serialNumber.val;
1531 if (rsaexp != NULL && (rsaexp->len > 0 && rsaexp->val != NULL)) {
1534 rsaexp->val, rsaexp->len);
2021 uchar_t digest[1024]; local
2044 * Create a new session for doing the digest operation.
2054 (void) memset(digest, 0, sizeof (digest));
[all...]
/osnet-11/usr/src/lib/libinetsvc/common/
H A Dinetsvc.c1322 * calculate_hash calculates the MD5 message-digest of the file pathname.
1323 * On success, hash is modified to point to the digest string and 0 is returned.
1325 * The space for the digest string is obtained using malloc(3C) and should be
1334 char *digest; local
1346 /* allocate space for a 16-byte MD5 digest as a string of hex digits */
1348 if ((digest = malloc(len)) == NULL) {
1373 (void) snprintf(&digest[2 * i], len - (2 * i), "%02x",
1376 *hash = digest;
1429 scf_value_t *val = NULL; local
1451 (val
[all...]

Completed in 73 milliseconds