From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 46814BC0A for ; Fri, 20 Apr 2007 20:57:14 +0200 (CEST) Received: from sparkplug.bitmechanic.com (dsl093-060-156.pit1.dsl.speakeasy.net [66.93.60.156]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3KIvCiu002497 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 20 Apr 2007 20:57:13 +0200 Received: from sparkplug.bitmechanic.com (localhost.localdomain [127.0.0.1]) by sparkplug.bitmechanic.com (8.13.8/8.13.6) with ESMTP id l3KIxLE5012393 for ; Fri, 20 Apr 2007 14:59:21 -0400 Received: (from jake@localhost) by sparkplug.bitmechanic.com (8.13.8/8.13.8/Submit) id l3KIxK32012390; Fri, 20 Apr 2007 14:59:20 -0400 Sender: jake@sparkplug.bitmechanic.com To: caml-list@inria.fr From: Jake Donham Subject: bytecode signing? Date: 20 Apr 2007 14:59:20 -0400 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at discorde with ID 46290D08.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bytecode:01 bytecode:01 hashes:01 bytecomp:01 bytesections:01 library:03 somewhere:06 file:08 compute:09 manipulating:09 tools:12 running:14 thanks:17 section:17 result:17 Hi, I have an application where I would like to sign bytecode and check that the signature is valid before running it. I was thinking to compute hashes of the various sections of a bytecode file, sign them, and store the result in an additional section. Is there a library somewhere for manipulating bytecode files? I see pieces in tools/dumpobj.ml and bytecomp/bytesections.ml. Thanks, Jake