Re: gpg: [don't know]: 1st length byte missing

2017-10-22 Thread Felix E. Klee
Thanks, Werner!

No backup, and I think there is no way to recover the password, which
- in this case - is very unfortunate. :( I wonder how this happened.
The drive is a Samsung EVO SSD with NTFS.

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: gpg: [don't know]: 1st length byte missing

2017-10-22 Thread Werner Koch
On Sat, 21 Oct 2017 17:38, felix.k...@inka.de said:
> See the attached file. When I try to decrypt it using `gpg -d`, I get:
>
>     gpg: [don't know]: 1st length byte missing

The data is corrupted.  It consists of a probably corrected public key
encrypted packet (with the encrypted session key) followed by a single
byte 0xD2 which indicates the encrypted data packet.  However this is
the last byte of the data and the length bytes as well as as the header
of the encrypted data packet is missing. 

I can't tell why this message was truncated.  Its truncated length is
512 + 16.  I hope you have a backup.



Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


pgpdL3PPDvkV0.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: gpg: [don't know]: 1st length byte missing

2017-10-21 Thread Felix E. Klee
On Sun, Oct 22, 2017 at 12:06 PM,   wrote:
> please list the encrypted text as part of the inline message.

Thanks for pointing that out. Here you go:

-BEGIN PGP ARMORED FILE-
Comment: Use "gpg --dearmor" for unpacking

hQIMAwT9940Wed2UAQ//X3XcOwKvauUCfRI0tqWBrf4CUs/HnzJgaLgL3snxCd0T
cYr78WQvrwUBAJEwvakjuTsrBC7CdxJHWmaEYQZrw8dIAMdxDoKGaWti9S0cGrZD
CjaUjZypCM7bmJViUUmy7nBgrkThQGzS5fqT9EelJ/loJZViIm8kqtV3BGknkyrX
GF92v6CKhh6VDZE4p4trePV46l2Dw4zdB3CPsEc06HREOdGN1RZssMKpQCxnbk44
AskDJS/AOG0xnvgLny96j38xdCz+F9KQ8dA9UZCRau6qTYaOtjvhLIHW1eWjNNtD
Eay54IkFbdF4bReS3fSPp4pv3w2SZLPyX+WX8w5lmRyv7+CsSPzP2spD2KunSsiA
0+1Tw/Lr2Rvwbb+j1cgcr4+IcpPGddn4un+KS42HpxWfZfM7bqoetNO6lL0n2EHI
2W3brKf/9HWeR0vj9LQlDQJGPhejvm6Jgmv/QVYlAEqkkdQurA8UZ3t6v2aQwdgO
smHUfnCVj/CZd3qU5rlvWq2N/vjxIra1VVbFLpC6FU6ISaxBn8D6wBQ4IJmKXTMn
b/hGQtd8paHeUXIyg48f1abGsaa1/bvQ8ReZjVpAkEFCaQeSovf67krSCYNdeJ/+
YY9QHly/kj0JGqcNtFhBEAJxmh05bGkTmYKauiMF4iLa5fQj639oW6TsiXB5wi3S
=UO5M
-END PGP ARMORED FILE-

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: gpg: [don't know]: 1st length byte missing

2017-10-21 Thread vedaal


On 10/21/2017 at 1:14 PM, "Felix E. Klee"  wrote:See the attached
file. When I try to decrypt it using `gpg -d`, I get:

gpg: [don't know]: 1st length byte missing

=
gnupg mailing list automatically scrubs attachments.
please list the encrypted text as part of the inline message.
Thanks, 

vedaal___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


gpg: [don't know]: 1st length byte missing

2017-10-21 Thread Felix E. Klee
See the attached file. When I try to decrypt it using `gpg -d`, I get:

gpg: [don't know]: 1st length byte missing

`gpg --version` (on Windows):

gpg (GnuPG) 2.2.1
libgcrypt 1.8.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: C:/Users/Felix/AppData/Roaming/gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

IIRC I haven’t updated gpg since I encrypted the file. So I assume that
the same gpg 2.2.1 has been used for encryption.

The private key is on an OpenPGP smartcard by ZeitControl.

*Any idea how to fix the issue?*


password.gpg
Description: Binary data
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users