From dkg at fifthhorseman.net Tue Dec 21 17:02:27 2010 From: dkg at fifthhorseman.net (Daniel Kahn Gillmor) Date: Tue, 21 Dec 2010 11:02:27 -0500 Subject: elliptic curves In-Reply-To: <80e2a3c40912110918m2a54dc16o2a3ace3214d85bc2@mail.gmail.com> References: <87k4wvq8ia.fsf@vigenere.g10code.de> <80e2a3c40912110918m2a54dc16o2a3ace3214d85bc2@mail.gmail.com> Message-ID: <4D10CF93.2040302@fifthhorseman.net> On 12/11/2009 12:18 PM, Sergi Blanch i Torn? wrote: > On Thu, Dec 10, 2009 at 2:11 PM, Werner Koch wrote: >> Sergi sent me a patch which I have not integrated because it does not >> yet work. To help out I implemented the AESWRAP mode. Sergie: Please >> resent a cleaned up pacth to the list. > > I have to clean and sync my mirror to the main svn, do some test, and > share. If everything goes in the good direction, soon we shall has > this available. (note that I'm not promising for a concrete day ;) ) Any word on the status of elliptic curve support in libgcrypt? --dkg -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 900 bytes Desc: OpenPGP digital signature URL: From wk at gnupg.org Tue Dec 21 21:48:46 2010 From: wk at gnupg.org (Werner Koch) Date: Tue, 21 Dec 2010 21:48:46 +0100 Subject: elliptic curves In-Reply-To: <4D10CF93.2040302@fifthhorseman.net> (Daniel Kahn Gillmor's message of "Tue, 21 Dec 2010 11:02:27 -0500") References: <87k4wvq8ia.fsf@vigenere.g10code.de> <80e2a3c40912110918m2a54dc16o2a3ace3214d85bc2@mail.gmail.com> <4D10CF93.2040302@fifthhorseman.net> Message-ID: <87oc8ec0nl.fsf@vigenere.g10code.de> On Tue, 21 Dec 2010 17:02, dkg at fifthhorseman.net said: > Any word on the status of elliptic curve support in libgcrypt? In the meantime Andrey Jivsov has developed the ECC code for GnuPG. A few days ago we got noticed that the legal papers are signed, so me and Andrey merely need to find the time to merge his ECC patches into GnuPG and Libgcrypt. The next GnuPG 2.1 beta will feature ECC support and thus libgcrypt will also feature ECDH in addition to ECDSA. Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. From dkg at fifthhorseman.net Tue Dec 21 21:57:52 2010 From: dkg at fifthhorseman.net (Daniel Kahn Gillmor) Date: Tue, 21 Dec 2010 15:57:52 -0500 Subject: elliptic curves In-Reply-To: <87oc8ec0nl.fsf@vigenere.g10code.de> References: <87k4wvq8ia.fsf@vigenere.g10code.de> <80e2a3c40912110918m2a54dc16o2a3ace3214d85bc2@mail.gmail.com> <4D10CF93.2040302@fifthhorseman.net> <87oc8ec0nl.fsf@vigenere.g10code.de> Message-ID: <4D1114D0.8020409@fifthhorseman.net> On 12/21/2010 03:48 PM, Werner Koch wrote: > A few days ago we got noticed that the legal papers are signed, so me > and Andrey merely need to find the time to merge his ECC patches into > GnuPG and Libgcrypt. The next GnuPG 2.1 beta will feature ECC support > and thus libgcrypt will also feature ECDH in addition to ECDSA. What a lovely winter solstice present :) Thanks for the reportback, Werner! --dkg -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 900 bytes Desc: OpenPGP digital signature URL: From junk.bbb at gmail.com Thu Dec 30 13:51:28 2010 From: junk.bbb at gmail.com (Filip) Date: Thu, 30 Dec 2010 14:51:28 +0200 Subject: Detect PGP encrypted files In-Reply-To: References: Message-ID: Hi, How can I detect PGP encrypted files? I have noticed that the third, forth and fifth bytes are always 'PGP' .. but I prefer to have a better signature .. 3 bytes are not enough and may cause false positives ... so can you please tell me how to better detect PGP encrypted files and is there a specification document for the PGP format other than the one here: http://tools.ietf.org/html/rfc4880 Is there any other data encryption methods like PGP which are famously used to encrypt files? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at ritter.vg Fri Dec 31 04:24:38 2010 From: tom at ritter.vg (Tom Ritter) Date: Thu, 30 Dec 2010 22:24:38 -0500 Subject: Detect PGP encrypted files In-Reply-To: References: Message-ID: <4D1D4CF6.4030304@ritter.vg> That RFC is your best bet - but you're incorrect about the 3rd, 4th, and 5th bytes. They are PGP only in *some* cases. Specifically, they are the Marker Packet - and they are ignored by implementations. If you want a surefire way to detect PGP files, your best bet may be to write a rudimentary OpenPGP parser - looking at the packet headers and sizes, and seeing if a file conforms. Otherwise, you might get a lot of false positives, as the OpenPGP specification is more based around rules such as "If bits 1 and 2 are set then it means..." as opposed to fixed byte-markers. As far as other methods - openssl has a method to encrypt files (it was used on the wikileaks insurance file). I can't immediately think of any other largely-deployed standards of encryption besides that and OpenPGP - not counting things like encrypted zip files or word documents. If your aim is to detect encryption, besides looking for file headers and structures, you can also look for the absence of any structure, and then check the file's compression rate. There are papers written about that approach. -tom On 12/30/2010 7:51 AM, Filip wrote: > Hi, > > How can I detect PGP encrypted files? I have noticed that the third, > forth and fifth bytes are always 'PGP' .. but I prefer to have a better > signature .. 3 bytes are not enough and may cause false positives ... so > can you please tell me how to better detect PGP encrypted files and is > there a specification document for the PGP format other than the one here: > http://tools.ietf.org/html/rfc4880 > > > Is there any other data encryption methods like PGP which are famously > used to encrypt files? > > > Thanks > > > > > _______________________________________________ > Gcrypt-devel mailing list > Gcrypt-devel at gnupg.org > http://lists.gnupg.org/mailman/listinfo/gcrypt-devel From lrn1986 at gmail.com Fri Dec 31 05:39:05 2010 From: lrn1986 at gmail.com (LRN) Date: Fri, 31 Dec 2010 07:39:05 +0300 Subject: amd64 assembly for W64 Message-ID: <4D1D5E69.1050602@gmail.com> libgcrypt builds with mingw-w64 successfully, but segfaults (debug info is attached) at runtime in amd64 assembly routines. I've asked around on #mingw-w64, and i was told that MS x86-64 calling convention differs from AMD64, and that some porting of the asm code is required. Are there any plans for porting libgcrypt to W64? When configured with --disable-asm, libgcrypt successfully compiles and passes all the tests. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mpi-bit.log URL: From junk.bbb at gmail.com Fri Dec 31 12:24:36 2010 From: junk.bbb at gmail.com (Filip) Date: Fri, 31 Dec 2010 13:24:36 +0200 Subject: Detect PGP encrypted files Message-ID: Thank you for the helpful response. -------------- next part -------------- An HTML attachment was scrubbed... URL: