Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2478692ybv; Sun, 9 Feb 2020 00:05:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxNHaJwBVuZkcZukl7k+2K98R4ECP12DUresG3ZMy3bjH1udth9H/fHJrNNaQeWNvnRkmEr X-Received: by 2002:a9d:6f07:: with SMTP id n7mr5919697otq.112.1581235538177; Sun, 09 Feb 2020 00:05:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581235538; cv=none; d=google.com; s=arc-20160816; b=faItxhUdChQjBsEZgWSzyVj8Hoc4Wp2BG3UZCv9/xDpihfal51XsKoIzP/H+/15d03 59xuloXh2EVEquBOGYYGX/QMf+mL/7PFwtxiDthJaJ5jSf3l2/BQO6KhRheUxW8rxSIK LWq2xceofRWDzwDiG78fbbpy9PF5x7vUmUaJdrez5BllViGBAdw9J40+oIhM5CmTvDRk I1Dp150mLkKne/juGV7pSllMaI4x5TpkVXeiLriqjc1mAKLYdQ4IDFDnUCJN0OxURp3f 21VbVlpXfjomdRAIiZtI9Itk3/2vvsDPZwhId0AfNnPLkStkPM+ZuI5yGX4ok+8SWheD 6B6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UukrQbD4Fgb2HOTXj2n65dHIumKclm6QTeeUOPVcbgM=; b=r4ASg+hvlaCUWHcP1mOpcyBpk5jE9qSgXOB+TU7FY25GdL3tjDCi4TVB+wfCyLMB6Z 7vhAvEopPgAwiZOMGpwQurg8HR6TSwoLt9MPLcQFBRNNsITJCZZImhHy8GjznlAzWd/0 aglb3cgYWhRk1BjvbiYZv1gbqJ9CkU4CwJv5Z/t9XOcc/3JaUg938HNdHEZTL2VqwPjR UWqzUQ+K/j6S7F1uUaVvJkL5ebQ0zcqmzdnyvQoH9Vd8J/niBExADSUX5QgBJSFSC7C2 fkIIsUNL3KUYoTNZuKll5WRzbW7Xy0TKOdIM7MO2s76OzXcfbmziYmPBoHxnwwXK+le0 673w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b="yG/ZTbcu"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9si2862612otk.318.2020.02.09.00.05.12; Sun, 09 Feb 2020 00:05:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b="yG/ZTbcu"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726005AbgBIIFM (ORCPT + 99 others); Sun, 9 Feb 2020 03:05:12 -0500 Received: from mail-vs1-f45.google.com ([209.85.217.45]:32943 "EHLO mail-vs1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbgBIIFL (ORCPT ); Sun, 9 Feb 2020 03:05:11 -0500 Received: by mail-vs1-f45.google.com with SMTP id n27so2237692vsa.0 for ; Sun, 09 Feb 2020 00:05:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benyossef-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=UukrQbD4Fgb2HOTXj2n65dHIumKclm6QTeeUOPVcbgM=; b=yG/ZTbcun0KjVG+c1C9xzGpG/t4bEFMNW8NvEZHXkLmEvHJT0x/yqdYwHribRRXPEi zTy7qjYrqq3ptuBiWjzg4LfqAzgZGUcEiiuTLPaqkl9RmF4C5iQhHguDzTrEWfNUocVP tF6IuTlN+9XxzYMyXh8pm3YNdLLM1YA55mKIYpPyCPe5NIDH5bf2P/9WhqtAMrJaAH41 CWRe54pcji6BquEAaCWyN2BU4PiM9mrUj/omC+QdoeBUIw1640EBEEHrIMcBHAX8mNmH yYzisiR45zaJg8Uk13mb1MDWXfYmcTjv20CJUzXN+Bv49S82oGIKZf3kKQp/w85c/uH8 CfCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UukrQbD4Fgb2HOTXj2n65dHIumKclm6QTeeUOPVcbgM=; b=bprP6ZLADLQK7wujYuFZppy5IST4hTGcyFt9y4YY+LGT2oGl2AYJq5mRKVZjFwXbW3 Ux7+EdSQA6PtcdTT9Wa8tpazH51fyYGlVLWrt5Cyt5TpoAYQLfHZhNBIpFpLLHZjga5+ c7h1/pwKo7RuRF+D4Ic3m+lJnTUgzyFStbFPpyDTtX6OcxhG2g6sesHni/UJqkklO/dK NB4ut2MMknWvQByreca3u7eoQ7AhDzTsn5SYFHL/NJO6wgLlRBjMmNk29ms02lW7m7F2 AmT8ksjD55hIk7cZRKeg5UWZnSTR5hnwNgZx5/22pqLrrg6r0XnERO5ihSKQwSn5Wgkj 7i4w== X-Gm-Message-State: APjAAAWg77ieCCbCeC50z1xaRv0BNyL5fAJevSXLUsHskTneYXglZfhV ALgVRftK4UTaaB74BWltWrkqEMnf9l9hr2CMIYFwNc6u8T4= X-Received: by 2002:a67:fb14:: with SMTP id d20mr3161497vsr.136.1581235510558; Sun, 09 Feb 2020 00:05:10 -0800 (PST) MIME-Version: 1.0 References: <28236835.Fk5ARk2Leh@tauon.chronox.de> <6968686.FA8oO0t0Vk@tauon.chronox.de> In-Reply-To: <6968686.FA8oO0t0Vk@tauon.chronox.de> From: Gilad Ben-Yossef Date: Sun, 9 Feb 2020 10:04:55 +0200 Message-ID: Subject: Re: Possible issue with new inauthentic AEAD in extended crypto tests To: Stephan Mueller Cc: Eric Biggers , Herbert Xu , Linux Crypto Mailing List , Geert Uytterhoeven , David Miller , Ofir Drang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Feb 7, 2020 at 2:30 PM Stephan Mueller wrote: > > Am Freitag, 7. Februar 2020, 12:50:51 CET schrieb Gilad Ben-Yossef: > > Hi Gilad, > > > > > It is correct, but is it smart? > > > > Either we require the same IV to be passed twice as we do today, in whi= ch > > case passing different IV should fail in a predictable manner OR we sho= uld > > define the operation is taking two IV like structures - one as the IV a= nd > > one as bytes in the associated data and have the IPsec code use it in a > > specific way of happen to pass the same IV in both places. > > > > I don't care either way - but right now the tests basically relies on > > undefined behaviour > > which is always a bad thing, I think. > > I am not sure about the motivation of this discussion: we have exactly on= e > user of the RFC4106 implementation: IPSec. Providing the IV/AAD is effici= ent > as the rfc4106 template intents to require the data in a format that requ= ires > minimal processing on the IPSec side to bring it in the right format. > The motivation for this discussion is that our current test suite for RFC4106 generates test messages where req->iv is different than the copy in the associated data. This is not per my interpretation of RFC 4106, this is not the API as is described in the header files and finally it is not per the use case of the single user of RFC 4106 in the kernel and right now these tests causes the ccree driver to fail these tests. Again, I am *not* suggesting or discussing changing the API. I am asking the very practical question if it makes sense to me to delve into understanding why this use case is failing versus fixing the test suite to test what we actually use. Gilad --=20 Gilad Ben-Yossef Chief Coffee Drinker values of =CE=B2 will give rise to dom!