Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1614415ybs; Mon, 25 May 2020 22:23:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrv7M2gWDzTyL7ysJj0uDIJXB4KNhOs/3tHInt7e1LhQ0juYTZ5Y/nfMUTB05WRedwJ0CI X-Received: by 2002:a17:907:43bf:: with SMTP id ok23mr22762771ejb.68.1590470629187; Mon, 25 May 2020 22:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590470629; cv=none; d=google.com; s=arc-20160816; b=MP9Jr/fq2O3gABIk2JKy8cdc1YnKtckeo5dUsX0L2udIFc54gDogSCepiboyjNjLup KHrcfXWWvIaQkRhy1ZePrpcBQkYmOnwrC8bK4olKE3tW+VVbDeRNmnElHfIzEyC7ZBG9 xKWVZaWIQskETWM2lllSol2Gu0aNuC29gjoN7To2W9hkJae/Lry/mwvrhdVPFiPSlOm7 HwIGS5uhHn/JUsIP7AUa37DNVeWf9OTr1WF/HRQtqzhXnGhhlVel4WWNEwj/w9DW8Koi VyG4YXrnBtfcjC0PC6KqQMHl4UUStU+1uO7ObFrsUPgiSdziZSpwdrwnzvy0wqXUPAdo 0CBQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Xcl0FKQh1/awolO9FW1Fnen3cHjGnxEF6WrUAeIL2GE=; b=R1gh9/NVXn5RWGnK9Idt2Ba4ucp3XD6cuJiHqtcSRp1mf3/ITWBMo76ZGZct0zhfH9 0h3ykcLy872eS+GElCbOUrlgTotZBNj0zMWaKxLa6v9sS5gyqnZJYWFwNE7DtckihXDL 7cecKT/7T29pswpllao7ywy6eyjMKQdenxMNZl1muy2o6hxrLcfPzh/Cv5s7IV7jYMjM 0ND3kYQFqkWkBaHkmzNh+Uls1rZYu9LwomR32fWNXgkP3cVxq9nx44VXHBZk8WzRPZnN Ujxf8MP9o4eb/R76iAiXq+ZwrBs54QCGbf+TJog0aw5LeKAEA4MOA2Ahj57mRYIAADrK /9Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=GaBMGlw1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si11330106ejb.147.2020.05.25.22.23.25; Mon, 25 May 2020 22:23:49 -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=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=GaBMGlw1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725875AbgEZFXO (ORCPT + 99 others); Tue, 26 May 2020 01:23:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725771AbgEZFXO (ORCPT ); Tue, 26 May 2020 01:23:14 -0400 Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0449C061A0E for ; Mon, 25 May 2020 22:23:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1590470591; s=strato-dkim-0002; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=Xcl0FKQh1/awolO9FW1Fnen3cHjGnxEF6WrUAeIL2GE=; b=GaBMGlw1bMSu5Uc6q36ySyCi9wLwDSRMi3xwyjb/hyawEdVEEjadYG0vbAkOIHVhRN m+leh0OlMrjqVDXzDU0XDgo0yBJop9wQD5/Pz042AJJW5QxgbkIluabmBM+blRRtbbqH ZW6QFogStMYnTNq2kt5xlRRBQkogKwz4rUXSqxgcQEJHp1ARNsQcap1DWGs0IwdqhftO 9nSHwbp890Tum9oeJ/CJVKT8OLbsqj8//64Q/0+dUy58RyIOpDKrfq3uPnyKPPfOrCAh WdZBNtG9j9VvRloEALXQ7b06zOYMQ9Dj3drDPIiPpVE9gLZcdC65MI7GeVxN35KvbLjn 2tiw== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9xmwdNnzGHXPZIvSfYao+" X-RZG-CLASS-ID: mo00 Received: from tauon.chronox.de by smtp.strato.de (RZmta 46.7.0 DYNA|AUTH) with ESMTPSA id k09005w4Q5NBV5R (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 26 May 2020 07:23:11 +0200 (CEST) From: Stephan Mueller To: "Bhat, Jayalakshmi Manjunath" Cc: Ard Biesheuvel , "linux-crypto@vger.kernel.org" Subject: Re: Monte Carlo Test (MCT) for AES Date: Tue, 26 May 2020 07:23:11 +0200 Message-ID: <5330121.xyrNXEdPSU@tauon.chronox.de> In-Reply-To: References: <12555443.uLZWGnKmhe@positron.chronox.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Am Dienstag, 26. Mai 2020, 05:07:15 CEST schrieb Bhat, Jayalakshmi Manjunat= h: Hi Jayalakshmi, > Hi Stephen, >=20 > I to add the backend support using libkcapi APIs to exercise Kernel CAVP. > Can you please confirm if my understanding is correct? You would need to implement an equivalent to backend_openssl.c or=20 backend_nettle.c=20 >=20 > Regards, > Jaya >=20 > From: linux-crypto-owner@vger.kernel.org > On Behalf Of Stephan M=FCller Sent: > Sunday, May 24, 2020 12:14 AM > To: Bhat, Jayalakshmi Manjunath ; Ard Biesheuvel > Cc: linux-crypto@vger.kernel.org > Subject: Re: Monte Carlo Test (MCT) for AES >=20 > Am Samstag, 23. Mai 2020, 00:11:35 CEST schrieb Ard Biesheuvel: >=20 > Hi Ard, >=20 > > (+ Stephan) > >=20 > > On Fri, 22 May 2020 at 05:20, Bhat, Jayalakshmi Manjunath > >=20 > > wrote: > > > Hi All, > > >=20 > > > We are using libkcapi for CAVS vectors verification on our Linux kern= el. > > > Our Linux kernel version is 4.14. Monte Carlo Test (MCT) for SHA work= ed > > > fine using libkcapi. We are trying to perform Monte Carlo Test (MCT) = for > > > AES using libkcapi. We not able to get the result successfully. Is it > > > possible to use libkcapi to achieve AES MCT? >=20 > Yes, it is possible. I have the ACVP testing implemented completely for A= ES > (ECB, CBC, CFB8, CFB128, CTR, XTS, GCM internal and external IV generatio= n, > CCM), TDES (ECB, CTR, CBC), SHA, HMAC, CMAC (AES and TDES). I did not yet > try TDES CFB8 and CFB64 through, but it should work out of the box. >=20 > AES-KW is the only one that cannot be tested through libkcapi as AF_ALG h= as > one shortcoming preventing this test. >=20 > The testing is implemented with [1] but the libkcapi test backend is not > public. The public code in [1] already implements the MCT. So, if you want > to use [1], all you need to implement is a libkcapi backend that just > invokes the ciphers as defined by the API in [1]. >=20 > [1] https://github.com/smuellerDD/acvpparser >=20 > Ciao > Stephan Ciao Stephan