Searched refs:hash_file (Results 1 – 2 of 2) sorted by relevance
/netbsd-src/external/bsd/pkg_install/dist/lib/ |
H A D | pkg_signature.c | 222 parse_hash_file(const char *hash_file, char **pkgname, in parse_hash_file() argument 234 if (strncmp(hash_file, block1, strlen(block1)) != 0) in parse_hash_file() 236 hash_file += strlen(block1); in parse_hash_file() 238 len = strcspn(hash_file, "\n"); in parse_hash_file() 240 memcpy(*pkgname, hash_file, len); in parse_hash_file() 246 hash_file += len + 1; in parse_hash_file() 248 if (strncmp(hash_file, block2, strlen(block2)) != 0) in parse_hash_file() 250 hash_file += strlen(block2); in parse_hash_file() 253 if (!isdigit((unsigned char)*hash_file)) in parse_hash_file() 255 state->sign_block_len = strtoul(hash_file, &next, 10); in parse_hash_file() [all …]
|
/netbsd-src/crypto/external/bsd/openssh/dist/ |
H A D | sshsig.c | 503 hash_file(int fd, const char *hashalg, struct sshbuf **bp) in hash_file() function 585 if ((r = hash_file(fd, hashalg, &b)) != 0) { in sshsig_sign_fd() 615 if ((r = hash_file(fd, hashalg, &b)) != 0) { in sshsig_verify_fd()
|