Package: paperkey
Version: 1.3-2+b1
Severity: normal

Problem: paperkey causes "Segmentation fault" with ed25519 subkey.

 $ gpg --export-secret-key 1DD8D791 |paperkey >paper-secret-1DD8D791.txt
 Unable to parse algorithm 22
 Segmentation fault

(paperkey works fine with my old rsa1024 key w/o ed25519 subkey)

How to reproduce:
 * Add a ed25519 subkey with "gpg --expert".
 * Execute paperkey as above (1DD8D791 is my key) 

FYI:
 $ gpg --list-keys 1DD8D791
 pub   rsa4096 2010-09-23 [SC]
       3133724D6207881579E95D621E1356881DD8D791
 uid           [ultimate] Osamu Aoki <[email protected]>
 sub   rsa4096 2010-09-23 [E]
 sub   ed25519 2017-10-17 [A]
 $ gpg --edit-key 1DD8D791
 gpg (GnuPG) 2.2.1; Copyright (C) 2017 Free Software Foundation, Inc.
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
 
 Secret key is available.
 
 sec  rsa4096/1E1356881DD8D791
      created: 2010-09-23  expires: never       usage: SC  
      card-no: FFFE 67240842
      trust: ultimate      validity: ultimate
 ssb  rsa4096/A04CBCEEF08BEFAD
      created: 2010-09-23  expires: never       usage: E   
      card-no: FFFE 67240842
 ssb  ed25519/56F8269DCA1C3AD3
      created: 2017-10-17  expires: never       usage: A   
      card-no: FFFE 67240842
 [ultimate] (1). Osamu Aoki <[email protected]>
 
 gpg> q

Background:
 At Debconf17 gNiibe-san tempted me to use "Modern GPG" and ...  I now
 have a subkey using algorithm 22 (ed25519) and Gnuk.  That's why I have
 card-no in the above example and ed25519.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages paperkey depends on:
ii  libc6  2.24-17

Versions of packages paperkey recommends:
ii  gnupg  2.2.1-2

paperkey suggests no packages.

-- no debconf information

Reply via email to