Lines Matching defs:keyid
155 static int pgpv_find_keyid(pgpv_t */*pgp*/, const char */*strkeyid*/, uint8_t */*keyid*/);
495 /* calculate keyid from a pubkey */
500 memcpy(key->keyid, &key->fingerprint.v[key->fingerprint.len - PGPV_KEYID_LEN], PGPV_KEYID_LEN);
506 str_to_keyid(const char *s, uint8_t *keyid)
519 memcpy(keyid, &u64, PGPV_KEYID_LEN);
966 memcpy(onepasspkt->keyid, &mem[4], sizeof(onepasspkt->keyid));
1364 cc += fmt_binary(&s[cc], size - cc, pubkey->keyid, PGPV_KEYID_LEN);
1830 memcpy(onepass->keyid, sigpkt->sig.signer, sizeof(onepass->keyid));
2129 memcpy(onepass->keyid, sigpkt.u.sigpkt.sig.signer, sizeof(onepass->keyid));
2232 pgpv_find_keyid(pgpv_t *pgp, const char *strkeyid, uint8_t *keyid)
2239 if (strkeyid == NULL && keyid == NULL) {
2246 memcpy(binkeyid, keyid, sizeof(binkeyid));
2251 if (memcmp(&ARRAY_ELEMENT(pgp->primaries, i).primary.keyid[off], &binkeyid[off], cmp) == 0) {
2301 if (memcmp(onepass->keyid, signature->signer, PGPV_KEYID_LEN) != 0) {
2302 fmt_binary(strkeyid, sizeof(strkeyid), onepass->keyid, (unsigned)sizeof(onepass->keyid));
2303 snprintf(cursor->why, sizeof(cursor->why), "Signature key id %s does not match onepass keyid",
2317 if ((j = pgpv_find_keyid(cursor->pgp, NULL, onepass->keyid)) < 0) {
2318 fmt_binary(strkeyid, sizeof(strkeyid), onepass->keyid, (unsigned)sizeof(onepass->keyid));