Lines Matching refs:key
92 rsa_key_dup(struct rsa_key *key)
100 if (key->rsa) {
101 new->rsa = key->rsa->d != NULL ? RSAPrivateKey_dup(key->rsa) : RSAPublicKey_dup(key->rsa);
106 if (key->src) {
110 memcpy(new->src, key->src, sizeof(*new->src));
112 if (key->dst) {
116 memcpy(new->dst, key->dst, sizeof(*new->dst));
153 struct rsa_key *key = entry;
156 naddrwop2str_fromto("%s -> %s", key->src,
157 key->dst));
159 RSA_print_fp(stdout, key->rsa, 4);
197 struct rsa_key *key = entry;
199 local_score = naddr_score(key->src, req->iph1->local);
200 remote_score = naddr_score(key->dst, req->iph1->remote);
203 naddrwop2str_fromto("%s -> %s", key->src, key->dst),
213 genlist_append(req->winners, key);
227 plog(LLV_DEBUG, LOCATION, NULL, "Looking up RSA key for %s\n",
262 struct rsa_key *key;
265 for(key = genlist_next(list, &gp); key; key = genlist_next(NULL, &gp)) {
266 plog(LLV_DEBUG, LOCATION, NULL, "Checking key %s...\n",
267 naddrwop2str_fromto("%s -> %s", key->src, key->dst));
268 if (eay_check_rsasign(source, sig, key->rsa) == 0) {
270 return key->rsa;