[ltans] Question about the hash against a single data object in RFC 4998

Satoru Otsubo <hatt3@otip.jp> Mon, 21 December 2009 03:03 UTC

Return-Path: <hatt3@otip.jp>
X-Original-To: ltans@core3.amsl.com
Delivered-To: ltans@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E5AA33A6805 for <ltans@core3.amsl.com>; Sun, 20 Dec 2009 19:03:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.744
X-Spam-Level:
X-Spam-Status: No, score=-1.744 tagged_above=-999 required=5 tests=[AWL=-0.437, BAYES_00=-2.599, MISSING_HEADERS=1.292]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yQOzBsBgsW5m for <ltans@core3.amsl.com>; Sun, 20 Dec 2009 19:03:45 -0800 (PST)
Received: from auth.gate-on.net (auth.gate-on.net [210.197.72.170]) by core3.amsl.com (Postfix) with ESMTP id F0EC13A67A8 for <ltans@ietf.org>; Sun, 20 Dec 2009 19:03:44 -0800 (PST)
Received: from otip.otip.jp (KD113159121125.ppp-bb.dion.ne.jp [113.159.121.125]) by auth.gate-on.net (Postfix) with ESMTP id 294969F14F for <ltans@ietf.org>; Mon, 21 Dec 2009 12:03:28 +0900 (JST)
Received: from [192.168.0.2] (helo=localhost.localdomain) by otip.otip.jp with smtp (Exim 4.63) (envelope-from <hatt3@otip.jp>) id 1NMYYS-0006oo-2Q for ltans@ietf.org; Mon, 21 Dec 2009 12:03:28 +0900
Date: Mon, 21 Dec 2009 12:03:28 +0900
From: Satoru Otsubo <hatt3@otip.jp>
Cc: ltans@ietf.org
Message-Id: <20091221120328.fa3c2c64.hatt3@otip.jp>
X-Mailer: Sylpheed version 2.3.0beta5 (GTK+ 2.8.20; i486-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: [ltans] Question about the hash against a single data object in RFC 4998
X-BeenThere: ltans@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: LTANS Working Group <ltans.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ltans>, <mailto:ltans-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ltans>
List-Post: <mailto:ltans@ietf.org>
List-Help: <mailto:ltans-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ltans>, <mailto:ltans-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Dec 2009 03:03:46 -0000

I am Satoru Otsubo.

RFC 4998 Section 4.1 describes as follows (Page 12, line 16-18):
"If the optional field reducedHashtree is not present,
 the Archive Timestamp simply contains an ordinary timestamp."

>From this statement, I understand that
 if the digestAlgorithm designated in Archive Timestamp and
 the hashAlgorithm designated in the timestamp request are same,
 then we hash a data object
 (assuming a single data object need to be timestamped)
 with the digestAlgorithm ( = the hashAlgorithm) and
 send its result to the TSA. 
Namely, Only one hash is executed against a data object.

But if the digestAlgorithm designated in Archive Timestamp and
 the hashAlgorithm designated in the timestamp request are not same,
 then do we have to hash a data object with the digestAlgorithm designated in Archive Timestamp and
 then hash its result with the hashAlgorithm designated in the timestamp request ?
(as described in http://www.imc.org/ietf-ltans/mail-archive/msg00824.html)
Therefore hash is executed twice against a data object ?

Thanks in advance.