<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>292405</bug_id>
          
          <creation_ts>2012-01-25 18:54:06 +0000</creation_ts>
          <short_desc>KGpg shows wrong key ID for certain keys</short_desc>
          <delta_ts>2015-01-08 21:52:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kgpg</product>
          <component>general</component>
          <version>2.6.x</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>villevallo666</reporter>
          <assigned_to name="Rolf Eike Beer">kde</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>4.8.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1218489</commentid>
    <comment_count>0</comment_count>
    <who name="">villevallo666</who>
    <bug_when>2012-01-25 18:54:06 +0000</bug_when>
    <thetext>Version:           unspecified (using KDE 4.7.4) 
OS:                Linux

using kgpg 2.6.2 in conjunction with gpg 1.4.11 and importing the keys 0x7282B245 and 0x7CD2EAED, kgpg lists these keys wrongly as 0xEE8FBB5A and 0xF88D8EF4 respectively.

Reproducible: Always

Steps to Reproduce:
using kgpg 2.6.2 in conjunction with gpg 1.4.11 and importing the keys 0x7282B245 and 0x7CD2EAED, kgpg lists these keys wrongly as 0xEE8FBB5A and 0xF88D8EF4 respectively.

Actual Results:  
using kgpg 2.6.2 in conjunction with gpg 1.4.11 and importing the keys 0x7282B245 and 0x7CD2EAED, kgpg lists these keys wrongly as 0xEE8FBB5A and 0xF88D8EF4 respectively.

Expected Results:  
using kgpg 2.6.2 in conjunction with gpg 1.4.11 and importing the keys 0x7282B245 and 0x7CD2EAED, kgpg should list these keys as 0x7282B245 and 0x7CD2EAED respectively.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1219056</commentid>
    <comment_count>1</comment_count>
    <who name="Rolf Eike Beer">kde</who>
    <bug_when>2012-01-26 21:49:18 +0000</bug_when>
    <thetext>This is what GnuPG reports. For whatever reason it shows different things for the fingerprint and public key id.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1219131</commentid>
    <comment_count>2</comment_count>
    <who name="">villevallo666</who>
    <bug_when>2012-01-27 00:43:48 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This is what GnuPG reports. For whatever reason it shows different things for
&gt; the fingerprint and public key id.

the lower 32/64 bits of a key fingerprint are not necessarily identical to the key ID! cf. 
&lt;http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00#section-3.1.1.1&gt;
output of &apos;gpg -k --fin&apos; is correct. kgpg has a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1238231</commentid>
    <comment_count>3</comment_count>
    <who name="">villevallo666</who>
    <bug_when>2012-03-19 19:46:59 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; This is what GnuPG reports. For whatever reason it shows different things for
&gt; &gt; the fingerprint and public key id.
&gt; 
&gt; the lower 32/64 bits of a key fingerprint are not necessarily identical to
&gt; the key ID! cf. 
&gt; &lt;http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00#section-3.1.1.1&gt;
&gt; output of &apos;gpg -k --fin&apos; is correct. kgpg has a bug.

*bump*
Seems like there are no serious kgpg users out there. Did actually anybody compare what&apos;s shown by kgpg and gpg for the keys in question (no matter if short or long keyid-format)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1238260</commentid>
    <comment_count>4</comment_count>
    <who name="Rolf Eike Beer">kde</who>
    <bug_when>2012-03-19 20:57:19 +0000</bug_when>
    <thetext>I read the thing you posted in your URL as follows: if there is a 160 bit 
fingerprint and you want the 32 bit key id from it, use the low-order 32 bits. 
And that is exactly what KGpg does for your key (and any other). In fact this 
is the first key where I ever see that these things don&apos;t match. And I quite 
don&apos;t understand yet why.

If you want to get this fixed you have two options: send a patch with a good 
description of what is happening or show me that this has hack value. Flaming 
only drops this to the bottom of the list of things I will hack on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1238447</commentid>
    <comment_count>5</comment_count>
    <who name="">villevallo666</who>
    <bug_when>2012-03-20 13:50:33 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; I read the thing you posted in your URL as follows: if there is a 160 bit 
&gt; fingerprint and you want the 32 bit key id from it, use the low-order 32
&gt; bits. 
&gt; And that is exactly what KGpg does for your key (and any other). In fact
&gt; this 
&gt; is the first key where I ever see that these things don&apos;t match. And I quite 
&gt; don&apos;t understand yet why.
&gt; 
&gt; If you want to get this fixed you have two options: send a patch with a good 
&gt; description of what is happening or show me that this has hack value.
&gt; Flaming 
&gt; only drops this to the bottom of the list of things I will hack on.

Sorry, flaming wasn&apos;t intended.

&quot;it is not possible to calculate a 64-bit or 32-bit keyid from a v3 fingerprint.&quot; is what I wanted to point out by that URL. Guess I should&apos;ve referred to the whole #section-3.1.1 or to #section-3.1.1.2.

Sorry for not knowing any C/C++. The fact that kgpg obviously interprets the lower 32/64 bits of a v3 fingerprint as the key id instead of relying on gpg makes this fix mandatory.

Thanks for your time an effort!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1238552</commentid>
    <comment_count>6</comment_count>
    <who name="Rolf Eike Beer">kde</who>
    <bug_when>2012-03-20 19:41:11 +0000</bug_when>
    <thetext>Git commit 2a100ae8d203107d17e438f67f65d26a4949cccc by Rolf Eike Beer.
Committed on 20/03/2012 at 20:39.
Pushed by dakon into branch &apos;KDE/4.8&apos;.

distinguish between key id and fingerprint

M  +5    -5    core/KGpgKeyNode.cpp
M  +3    -3    core/KGpgKeyNode.h
M  +4    -4    core/KGpgOrphanNode.cpp
M  +2    -2    core/KGpgOrphanNode.h
M  +2    -2    core/KGpgUatNode.cpp
M  +12   -4    core/kgpgkey.cpp
M  +4    -2    core/kgpgkey.h
M  +2    -2    kgpginterface.cpp
M  +1    -4    model/keylistproxymodel.cpp
M  +15   -1    model/kgpgitemmodel.cpp

http://commits.kde.org/kgpg/2a100ae8d203107d17e438f67f65d26a4949cccc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1264688</commentid>
    <comment_count>7</comment_count>
    <who name="Rolf Eike Beer">kde</who>
    <bug_when>2012-06-11 17:59:16 +0000</bug_when>
    <thetext>Git commit 2d252cf08c51866a6acebe705db11b29941691bf by Rolf Eike Beer.
Committed on 11/06/2012 at 19:29.
Pushed by dakon into branch &apos;KDE/4.8&apos;.

fix key comparison returning wrong values

This fixes a regression introduced in 4.8.2 with commit
2a100ae8d203107d17e438f67f65d26a4949cccc when trying to fix bug 292405.
Related: bug 298465, bug 301618

M  +7    -5    core/KGpgKeyNode.cpp

http://commits.kde.org/kgpg/2d252cf08c51866a6acebe705db11b29941691bf</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>