From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: GPGME Date: Thu, 30 Jun 2011 07:46:09 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87fwmrxzam.fsf@lifelogs.com> References: <87pqmxvfoh.fsf@lifelogs.com> <87sjrttwh8.fsf@lifelogs.com> <87wrh4b9h9.fsf@lifelogs.com> <87aae05l8p.fsf-ueno@unixuser.org> <87k4d4b66p.fsf@lifelogs.com> <87wrh0fh4g.fsf_-_@lifelogs.com> <87y60ncma8.fsf_-_@lifelogs.com> <87vcvrne02.fsf-ueno@unixuser.org> <87r56ep3sm.fsf@lifelogs.com> <874o39n171.fsf-ueno@unixuser.org> <87iprosxlk.fsf@lifelogs.com> <87ei2ckcdl.fsf-ueno@unixuser.org> <87ipropn94.fsf@lifelogs.com> <87y60kiiof.fsf-ueno@unixuser.org> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309438909 13822 80.91.229.12 (30 Jun 2011 13:01:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2011 13:01:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 15:01:45 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QcGsK-0006ox-FU for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2011 15:01:44 +0200 Original-Received: from localhost ([::1]:46241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcGsJ-0004Fq-41 for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2011 09:01:43 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcGdU-0000Pw-2s for emacs-devel@gnu.org; Thu, 30 Jun 2011 08:46:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcGdR-0007yy-Vw for emacs-devel@gnu.org; Thu, 30 Jun 2011 08:46:23 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:53404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcGdR-0007ys-Dl for emacs-devel@gnu.org; Thu, 30 Jun 2011 08:46:21 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QcGdQ-0007Xb-Jp for emacs-devel@gnu.org; Thu, 30 Jun 2011 14:46:20 +0200 Original-Received: from 38.98.147.133 ([38.98.147.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2011 14:46:20 +0200 Original-Received: from tzz by 38.98.147.133 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2011 14:46:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 42 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.133 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:z6yQJd+bIn+SUag4ZKBZa8/AXWY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141222 Archived-At: On Thu, 30 Jun 2011 03:41:52 +0900 Daiki Ueno wrote: DU> Ted Zlatanov writes: >> The standard OpenPGP format described in the 90-page RFC is extremely >> flexible and powerful (it's packet based and has more options than GNU >> ls); I think it would be a lot of work to implement it even for just a >> few symmetric ciphers. DU> It is not that complex - for symmetric encryption, only limited part is DU> used. Try: DU> $ gpg --list-packets aaa.txt.gpg DU> :symkey enc packet: version 4, cipher 3, s2k 3, hash 2 DU> salt 071379daac57c0c1, count 65536 (96) DU> gpg: CAST5 encrypted data DU> :encrypted data packet: DU> length: 32 DU> gpg: encrypted with 1 passphrase DU> :compressed packet: algo=1 DU> :literal data packet: DU> mode b (62), created 1309372527, name="aaa.txt", DU> raw data: 4 bytes DU> gpg: WARNING: message was not integrity protected DU> So there is actually four packets. Also, you could drop the support of DU> compression. Compression is specifically recommended by the RFC, so it's hard to justify skipping it. I'm really not eager to write a pile of C to implement this, even if it's just 4 packets. The math is not trivial and getting any of the details wrong is too easy for me--my knowledge of cryptography is too shallow. I agree it would be nice and *many* parts of Emacs could use the OpenPGP message format if internal support were available, but I would rather use a library that write new code. So, are there any libraries that will do what GPGME does, but as a real library and not a shim, creating a stream of OpenPGP packets and optionally ASCII-armoring them? Ted