Lines Matching +refs:val +refs:digest
1322 * 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;
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;
1451 (val = scf_value_create(h)) == NULL)
1464 if (scf_value_set_astring(val, hash) == -1 ||
1465 scf_entry_add_value(txent, val) == -1)
1484 scf_value_destroy(val);