1 |
On 170405-18:01-0400, Fernando Rodriguez wrote: |
2 |
> Hello, |
3 |
> |
4 |
> After a recent update I'm getting this error whenever I try to encrypt |
5 |
> or decrypt using gnupg. Here's error: |
6 |
> |
7 |
> > gpg: selftest for CTR failed - see syslog for details |
8 |
> > gpg: Ohhhh jeeee: ... this is a bug (seskey.c:61:make_session_key) |
9 |
> > Aborted |
10 |
> |
11 |
> And the syslog: |
12 |
> |
13 |
> > gpg[8945]: Libgcrypt warning: AES-CTR-128 test failed (plaintext mismatch) |
14 |
> |
15 |
> |
16 |
> |
17 |
> It started after a recent update that included gnupg and libgcrypt. The |
18 |
> versions before the update where libgcrypt-1.7.3 and gnupg-2.1.15. After |
19 |
> the update 1.7.6 and 2.1.18 respectively. I tried downgrading both |
20 |
> packages but it didn't help. |
21 |
> |
22 |
> I tried to delete the whole ~/.gnupg directory and re-import the keys |
23 |
> but it fails with the same error. |
24 |
> |
25 |
> I have another keyring on the same machine that I use with the --homedir |
26 |
> option and I have not problems with it. |
27 |
> |
28 |
> When I try to generate a new key I get the following error: |
29 |
> |
30 |
> > Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o |
31 |
> > We need to generate a lot of random bytes. It is a good idea to perform |
32 |
> > some other action (type on the keyboard, move the mouse, utilize the |
33 |
> > disks) during the prime generation; this gives the random number |
34 |
> > generator a better chance to gain enough entropy. |
35 |
> > gpg: agent_genkey failed: Missing key |
36 |
> > Key generation failed: Missing key |
37 |
> > |
38 |
> > |
39 |
> |
40 |
> Any ideas? |
41 |
|
42 |
I tried some decryption. No issues here: |
43 |
|
44 |
$ gpg --version |
45 |
gpg (GnuPG) 2.1.20 |
46 |
libgcrypt 1.7.6 |
47 |
Copyright (C) 2017 Free Software Foundation, Inc. |
48 |
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> |
49 |
This is free software: you are free to change and redistribute it. |
50 |
There is NO WARRANTY, to the extent permitted by law. |
51 |
|
52 |
Home: /home/miro/.gnupg |
53 |
Supported algorithms: |
54 |
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA |
55 |
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, |
56 |
CAMELLIA128, CAMELLIA192, CAMELLIA256 |
57 |
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 |
58 |
Compression: Uncompressed, ZIP, ZLIB, BZIP2 |
59 |
$ |
60 |
|
61 |
It could be something else, or your Gnupg installation is somehow |
62 |
broken... |
63 |
|
64 |
-- |
65 |
Miroslav Rovis |
66 |
Zagreb, Croatia |
67 |
https://www.CroatiaFidelis.hr |