Home
last modified time | relevance | path

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

/freebsd/usr.sbin/pkg/
H A Dpkg.c503 char *sigtype; in parse_sigtype() local
515 sigtype = strndup(buf, endp - buf); in parse_sigtype()
519 return (sigtype); in parse_sigtype()
528 char *osigb, *sigb, *sigtype; in read_pubkey() local
537 sigtype = parse_sigtype(&sigb, &sigsz); in read_pubkey()
543 pk->sigtype = sigtype; in read_pubkey()
682 if (strcmp(pk->sigtype, "rsa") == 0) { in verify_pubsignature()
697 if (pkgsign_new(pk->sigtype, &sctx) != 0) { in verify_pubsignature()
698 warnx("Failed to fetch '%s' signer", pk->sigtype); in verify_pubsignature()
[all...]
H A Dpkg.h68 char *sigtype; member
/freebsd/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.c2108 char *sigtype = NULL; in sshkey_get_sigtype() local
2114 if ((r = sshbuf_get_cstring(b, &sigtype, NULL)) != 0) in sshkey_get_sigtype()
2118 *sigtypep = sigtype; in sshkey_get_sigtype()
2119 sigtype = NULL; in sshkey_get_sigtype()
2123 free(sigtype); in sshkey_get_sigtype()
2181 char *sigtype = NULL; in sshkey_check_sigtype() local
2188 if ((r = sshkey_get_sigtype(sig, siglen, &sigtype)) != 0) in sshkey_check_sigtype()
2190 r = strcmp(expected_alg, sigtype) == 0; in sshkey_check_sigtype()
2191 free(sigtype); in sshkey_check_sigtype()
2291 char *sigtype = NULL; in sshkey_certify_custom() local
[all …]
H A Dsshsig.c308 char *got_namespace = NULL, *sigtype = NULL, *sig_hashalg = NULL; in sshsig_wrap_verify() local
366 if ((r = sshkey_get_sigtype(sig, siglen, &sigtype)) != 0) { in sshsig_wrap_verify()
371 if (match_pattern_list(sigtype, RSA_SIGN_ALLOWED, 0) != 1) { in sshsig_wrap_verify()
373 "signature algorithm %s", sigtype); in sshsig_wrap_verify()
392 free(sigtype); in sshsig_wrap_verify()