Re: draft-ietf-httpbis-encryption-encoding-03 in Java

Julian Reschke <julian.reschke@gmx.de> Tue, 18 October 2016 12:55 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 825B6129639 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 18 Oct 2016 05:55:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.332
X-Spam-Level:
X-Spam-Status: No, score=-7.332 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.431, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JG9Cu0wlE4_N for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 18 Oct 2016 05:55:56 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0994B12962A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 18 Oct 2016 05:55:55 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bwTrn-0005kE-0W for ietf-http-wg-dist@listhub.w3.org; Tue, 18 Oct 2016 12:51:39 +0000
Resent-Date: Tue, 18 Oct 2016 12:51:39 +0000
Resent-Message-Id: <E1bwTrn-0005kE-0W@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1bwTrg-0005iz-IS for ietf-http-wg@listhub.w3.org; Tue, 18 Oct 2016 12:51:32 +0000
Received: from mout.gmx.net ([212.227.17.21]) by maggie.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1bwTrT-0003NG-IN for ietf-http-wg@w3.org; Tue, 18 Oct 2016 12:51:32 +0000
Received: from [192.168.1.197] ([5.10.171.186]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MF9WR-1cBc0N08Cp-00GKkX for <ietf-http-wg@w3.org>; Tue, 18 Oct 2016 14:50:52 +0200
To: HTTP Working Group <ietf-http-wg@w3.org>
References: <e8001a68-5eb1-40b6-4bf7-3d79362fa1ba@gmx.de>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <f565fe77-7a14-879a-bbd5-b24afb6d0cf9@gmx.de>
Date: Tue, 18 Oct 2016 14:50:51 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <e8001a68-5eb1-40b6-4bf7-3d79362fa1ba@gmx.de>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:TzTBHC8jIyKl4/uiAzdUPs+xcsumEt/f+dodAUDSZOltJ/TouHt 2CkAG/wNr0yfOZYSTU8PRxfWekClI+tLDs4dMkCL1+Oc2bLtpJh7vKygYu0mmyH+AOZHBXF SH+LIHbK5PTXavput5CWDsKL3nz6501uAnmDJbgEcCM12YCCcerTP3RnL7x+mQzNK8KLEE0 xXk3Z8FjnvzLEdvdGaBiQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:xatQX4Q4x4c=:hP0UddX9GAx5U6QWD0uwFd 4Os8AnfCw4JDqErGDxXapZkINK4qgT8jFP6ebdPk7b0k3JYukvIFWqkHOaqjuQaB9iUCfbJGq M+7ZW970ACeH/lOXQQcRz39S/jFr1ctPElAYRoxaMNOSa8rALPEW8HMIkFkq40XBkXFjvqJ02 QyCMZWWncuheEGjitUnpsvfEiip137IehHe59zO0GViFlIo9O7y0NIBsu6MKGn37zQX7fabeN ahUnsgUuR0AyrbPSTjlMhaYj7QVHgMMD/Mv1mAhAaILfcYb5DuaFslzeSOwdAbQTvMtT38mSR VhKXVBL4yTSdSybtHBiyLkwrMGzZ/QFjxdhlhkP8/cIph9Z0nFqvDqKkU5txJpz7AC/aUd0Cs PAtWv1TObctglF0lRw29/owBBEydOVh/EqJOQOk7m44lNqMks7su7rkUqXlbnlUSqobqoP4hr hkZOLLtWWZFU6xXZCKaBGeH8nq2SKe+WF/DC6Y291pkl+yTpbqjuBzcXcdEu7+7SMpfmkXmKu KUjcaAh8Dr7K8mO+mq5YyiWRH+el83Cdn8JI/jauA5uZM9dTfyCqwjgrTp2LuXnVC3HUtLxNj jxHWwHA42AIjMWEZICaPYzAsyGlJDy5xFmLDqtxuXWoM/O+e2KrINfKNAaBy5IOezGUx6ZPHn 6vLqJWYymE9wC7URGYCYDlKc5ph/EZvqbYVqz7SQqxXTCpKHQ6GWfcu4J5zFLHhu+xqehNPD7 0snXgQSu4iPimod172OCC31CqbvnVp1jvU3y7LIC8HjUR6ZSNGkJfYlrAmr0b9f5jgQGN971m TrwyTje
Received-SPF: pass client-ip=212.227.17.21; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-8.2
X-W3C-Hub-Spam-Report: AWL=1.352, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1bwTrT-0003NG-IN c6fb835215035c04f0c00ed610fd0656
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-encryption-encoding-03 in Java
Archived-At: <http://www.w3.org/mid/f565fe77-7a14-879a-bbd5-b24afb6d0cf9@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32623
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2016-10-13 19:19, Julian Reschke wrote:
> Hi there,
>
> has anybody tried yet to implement the aesgcm content coding in Java?
>
> I started with a simple test to verify the first example. From a quick
> glance, JDK8 seems to have everything needed, but I'm stuck with the
> padding parameter used to get the Cipher instance (source:
> <https://gist.github.com/reschke/46659c912b426dffeac41d9a21421c95>).
>
> Best regards, Julian

OK, with a lot of help from Thomas Maslen I have brought the sample code 
to the point where it can process the two example messages from the 
decoding spec.

See <https://gist.github.com/reschke/46659c912b426dffeac41d9a21421c95>.

(This definitively needs more test data, though)

Best regards, Julian