X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keyid.h;fp=keyid.h;h=642bd59079b9cdda7a8252f976151c363422f736;hb=23f086c85c5d2db35e9ce76cf0bbf72200b4dc42;hp=47f7d163beabbe8f2d45d3c1ecedc7e8884dd937;hpb=ba236fc3d763f23987f70f15ba43ac3667f2d08c;p=onak.git diff --git a/keyid.h b/keyid.h index 47f7d16..642bd59 100644 --- a/keyid.h +++ b/keyid.h @@ -25,6 +25,16 @@ #include "keystructs.h" #include "onak.h" +/** + * fingerprint2keyid - convert a fingerprint to a keyid + * @fingerprint: The fingerprint structure to convert + * @returns: 64 bit keyid + * + * This function returns the key id for a given fingerprint. Currently + * only works for v4 fingerprints. + */ +uint64_t fingerprint2keyid(struct openpgp_fingerprint *fingerprint); + /** * get_keyid - Given a public key returns the keyid. * @publickey: The key to calculate the id for.