Home
last modified time | relevance | path

Searched refs:sigtype (Results 1 – 5 of 5) sorted by relevance

/src/usr.sbin/pkg/
H A Dpkg.c509 char *sigtype; in parse_sigtype() local
521 sigtype = strndup(buf, endp - buf); in parse_sigtype()
525 return (sigtype); in parse_sigtype()
534 char *osigb, *sigb, *sigtype; in read_pubkey() local
543 sigtype = parse_sigtype(&sigb, &sigsz); in read_pubkey()
549 pk->sigtype = sigtype; in read_pubkey()
688 if (strcmp(pk->sigtype, "rsa") == 0) { in verify_pubsignature()
703 if (pkgsign_new(pk->sigtype, &sctx) != 0) { in verify_pubsignature()
704 warnx("Failed to fetch '%s' signer", pk->sigtype); in verify_pubsignature()
H A Dpkg.h68 char *sigtype; member
/src/crypto/openssh/
H A Dssh-rsa.c477 char *sigtype = NULL; in ssh_rsa_verify() local
492 if (sshbuf_get_cstring(b, &sigtype, NULL) != 0) { in ssh_rsa_verify()
496 if ((hash_alg = rsa_hash_id_from_ident(sigtype)) == -1) { in ssh_rsa_verify()
551 free(sigtype); in ssh_rsa_verify()
H A Dsshkey.c2105 char *sigtype = NULL; in sshkey_get_sigtype() local
2111 if ((r = sshbuf_get_cstring(b, &sigtype, NULL)) != 0) in sshkey_get_sigtype()
2115 *sigtypep = sigtype; in sshkey_get_sigtype()
2116 sigtype = NULL; in sshkey_get_sigtype()
2120 free(sigtype); in sshkey_get_sigtype()
2178 char *sigtype = NULL; in sshkey_check_sigtype() local
2185 if ((r = sshkey_get_sigtype(sig, siglen, &sigtype)) != 0) in sshkey_check_sigtype()
2187 r = strcmp(expected_alg, sigtype) == 0; in sshkey_check_sigtype()
2188 free(sigtype); in sshkey_check_sigtype()
2288 char *sigtype = NULL; in sshkey_certify_custom() local
[all …]
H A Dsshsig.c313 char *got_namespace = NULL, *sigtype = NULL, *sig_hashalg = NULL; in sshsig_wrap_verify() local
371 if ((r = sshkey_get_sigtype(sig, siglen, &sigtype)) != 0) { in sshsig_wrap_verify()
376 if (match_pattern_list(sigtype, RSA_SIGN_ALLOWED, 0) != 1) { in sshsig_wrap_verify()
378 "signature algorithm %s", sigtype); in sshsig_wrap_verify()
397 free(sigtype); in sshsig_wrap_verify()