Lines Matching defs:keyid
86 uint8_t keyid[PGPV_KEYID_LEN]; /* last 8 bytes of v4 keys */
180 uint8_t keyid[PGPV_KEYID_LEN];
871 /* calculate keyid from a pubkey */
876 memcpy(key->keyid, &key->fingerprint.v[key->fingerprint.len - PGPV_KEYID_LEN], PGPV_KEYID_LEN);
882 str_to_keyid(const char *s, uint8_t *keyid)
895 memcpy(keyid, &u, PGPV_KEYID_LEN);
1359 memcpy(onepasspkt->keyid, &mem[4], sizeof(onepasspkt->keyid));
1770 if (!fmt_binary(obuf, pubkey->keyid, PGPV_KEYID_LEN)) {
2333 memcpy(onepass->keyid, sigpkt->sig.signer, sizeof(onepass->keyid));
2834 memcpy(onepass->keyid, sigpkt.u.sigpkt.sig.signer, sizeof(onepass->keyid));
2905 find_keyid(pgpv_t *pgp, const char *strkeyid, uint8_t *keyid, unsigned *sub)
2916 if (strkeyid == NULL && keyid == NULL) {
2923 memcpy(binkeyid, keyid, sizeof(binkeyid));
2930 if (memcmp(&prim->primary.keyid[off], &binkeyid[off], cmp) == 0) {
2936 if (memcmp(&subkey->subkey.keyid[off], &binkeyid[off], cmp) == 0) {
3199 if (memcmp(onepass->keyid, signature->signer, PGPV_KEYID_LEN) != 0) {
3200 if (!fmt_binary(&obuf, onepass->keyid, (unsigned)sizeof(onepass->keyid))) {
3205 "Signature key id %.*s does not match onepass keyid",
3225 if ((j = find_keyid(cursor->pgp, NULL, onepass->keyid, &sub)) < 0) {
3226 if (!fmt_binary(&obuf, onepass->keyid, (unsigned)sizeof(onepass->keyid))) {