Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3752298ybk; Tue, 19 May 2020 12:05:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykTO29BPuDT/Vpdg8zWdGoXtsSL21tkBRKkOWi1+996DqB0G5UPMQkQv6Dnx1j9Iw6OaWV X-Received: by 2002:a50:e1c5:: with SMTP id m5mr323150edl.47.1589915127787; Tue, 19 May 2020 12:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589915127; cv=none; d=google.com; s=arc-20160816; b=IjlugKHitAu0Ledcm3NdaJLuNrK8QeJssIkOWR+cXlpHrHZM/g+8N2LwAfX3htWI7t 0sDrL08m5wow9ZulRwyhHt/FRFn18iqGECyYZdHkOY6fWRtXWT+tbQ2CztGQ+dSe+Frv JNMmZbwamFlB715+n1JYwaF16MukNpScgd4JAacCGJtRzYvheD0x1j6ylr2O3ED/h0b0 w1dppD2UNH/zphyHBPT5bK16fqU2bUEECFqes1tpozpBOEh3/CZhKLk4Seepcviy7zyJ Grc/vrx1MUgwA50BrSjSfb8osRJELhE0XNI8bqNsaBA9WNRftZjj4/VbJZDM80ajO/lz tCdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hc+mdFWW/vJtnN3IzxilU5/9laoJkRpzsciiXQCEGiw=; b=AiZ+sQw2MEQQ2KW1VBNozZsRpOIO0IpfJogb65LJ6EOBHn1ISBMc6cqB82fYs1q5qO 29AG/cMMSIqRfmYfxKYycDw+zeQcx6/AZmDpA2iZnjJG2ckLRScFnm/F428ATTsppjyz 8uuPPLZQ4l5enaOxCyGLOp1eU0nDb1DBhYqxK6WOKy3OWUzKAhOTzuEXzwn+7aJhQerp ZC4LkChdf4423uUQrRkSZQpEhpZMzVGcwC/ABfnusvp9L7iyGUUgO6oUXdm2Hw+e7XhN zYZx5IY0glws1qNBjw83DnGiDk6Z/YPtBWYXOu0yhxYC7FsIviJ08h8lzWf45Y5aTLfa QlWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Wo9CiWmY; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i6si422549eje.512.2020.05.19.12.05.01; Tue, 19 May 2020 12:05:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Wo9CiWmY; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726059AbgESTE7 (ORCPT + 99 others); Tue, 19 May 2020 15:04:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:57458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726290AbgESTE7 (ORCPT ); Tue, 19 May 2020 15:04:59 -0400 Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4F262206C3 for ; Tue, 19 May 2020 19:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589915099; bh=5wUA2kw9gi9NGUOPlTqxvEngtjEwdS/z9ZQ0DwPRQKI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Wo9CiWmYQaEpKbvJnXiL/gkwQUMPuCIuKSj3bjAm3313ObpQcUOq6yvBt6Eo6Cdxo MUhqJZHd3dI1dEAYXgiXsmg7eilLcrDdEf69gy8QEFEFzIxRZMFwfzGbLVTgja9JJl STRJpV8ZJPZPBeWoPPwsgS9ozKlcQmv2Z0+5N+tM= Received: by mail-io1-f52.google.com with SMTP id k18so406771ion.0 for ; Tue, 19 May 2020 12:04:59 -0700 (PDT) X-Gm-Message-State: AOAM530B+iIORrEmMNjprfc7SccP+uXoQQ9v3BIcBm35k+DXoc8uHBFk Aeajfn3Gdsc2NqVOctfqXvPXhL9+8WNsLuu9D5U= X-Received: by 2002:a05:6638:41b:: with SMTP id q27mr1094617jap.68.1589915098721; Tue, 19 May 2020 12:04:58 -0700 (PDT) MIME-Version: 1.0 References: <20200519190211.76855-1-ardb@kernel.org> In-Reply-To: <20200519190211.76855-1-ardb@kernel.org> From: Ard Biesheuvel Date: Tue, 19 May 2020 21:04:47 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC/RFT PATCH 0/2] crypto: add CTS output IVs for arm64 and testmgr To: Linux Crypto Mailing List , Gilad Ben-Yossef Cc: Linux ARM , Eric Biggers , Stephan Mueller Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org (add Gilad for cc-ree) On Tue, 19 May 2020 at 21:02, Ard Biesheuvel wrote: > > Stephan reports that the arm64 implementation of cts(cbc(aes)) deviates > from the generic implementation in what it returns as the output IV. So > fix this, and add some test vectors to catch other non-compliant > implementations. > > Stephan, could you provide a reference for the NIST validation tool and > how it flags this behaviour as non-compliant? Thanks. > > Cc: Stephan Mueller > > Ard Biesheuvel (2): > crypto: arm64/aes - align output IV with generic CBC-CTS driver > crypto: testmgr - add output IVs for AES-CBC with ciphertext stealing > > arch/arm64/crypto/aes-modes.S | 2 ++ > crypto/testmgr.h | 12 ++++++++++++ > 2 files changed, 14 insertions(+) > > -- > 2.20.1 >