Received: by 2002:a25:d80d:0:0:0:0:0 with SMTP id p13csp209281ybg; Sat, 23 May 2020 11:44:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQbPB3uHNz8R4SMZ0CM7uxpzPpQvXhMzginelbLcTsdNhE9fMr5DE5I7cflfEaGJZEbOa1 X-Received: by 2002:a17:906:24d8:: with SMTP id f24mr12584679ejb.215.1590259460600; Sat, 23 May 2020 11:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590259460; cv=none; d=google.com; s=arc-20160816; b=rt/Vm3L8vdFkD8s35qdzndLj3+eymDHdhPliuyuhND9Gm8HKC3nQaUWmdYe1VAcht5 A/biAfAw4cvdQIn5A94ZGF4/m3cysfjVAVzSUeUsCSj/nPLxr1IXVvbCYWH2D1QOcsV0 xbjpM35NkpmqPetvg4yav/wSCwJ6K4SVRcQJn9IqL86GCIOzZ3+0Oa8wmlfUlqc39Duf NxITqjauf5hmwNl61nCGTxouJuZ2TqTzaW1iV6s71TsSDzl3AjFxCYVS2m71dUrfv3KI kg1PkwI4X0x/ouY75ywbHJC/0biwTKUW300iDYGRZs7JAPwGvN94GjbQ9H/nCQGR10nu oLTA== 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=iGthswHfJP7AAhV1YdJnpKloyw5KYC0F3KhDn/onUZU=; b=MJLVaL+HC3YhhOYjLSPuyoz0UojKWsRz2mSoB6bSbtH+1xtLf1EHyFWri0986PJwAL 0V7unhDzwQ/eiLF+7BXNUYjuxFRSB965M+OW+BnLGEoKjB1lVUE7c0A6h/1oDHqzCNZf ZRUSm5VBL8yW4SqovEfn0812MWk4JiVuCsgr3OJNL2z9KWxz/jB14VjtI4VXRaRu/4af yBJEh1aFBoYIpFgXfU3kdGIbMPItGFseUgWNSmm6oYBKg92kcaJdkxnN+Pl3zWCqSxGg xi4XgN55xskZ/bskEAGrsuvt4TQFttnisKpJFgVIcVotXmWzhxslIuU9xtjcWYwC9UOq anUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=i2Hhj9bE; 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 c12si6583351edx.92.2020.05.23.11.43.48; Sat, 23 May 2020 11:44:20 -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=i2Hhj9bE; 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 S1726868AbgEWSnr (ORCPT + 99 others); Sat, 23 May 2020 14:43:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726790AbgEWSnq (ORCPT ); Sat, 23 May 2020 14:43:46 -0400 Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF3D3C061A0E for ; Sat, 23 May 2020 11:43:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1590259424; 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=iGthswHfJP7AAhV1YdJnpKloyw5KYC0F3KhDn/onUZU=; b=i2Hhj9bEWz6tQdEvx0VflzYRbt2CbcoYCFNz0/bzpFEnuaYuzGLFa1IUpNg+oZWr0B Rns791HQnpNJiy8Dj8F10FcIGywf53XCeQ3xrW9JPohCNhhv2scqR9/Ps9cpuuKyKzuW fZqsqXXatOxx4FhjfrgP/9g6hwrnUOH6JnZ/1wHPiTfN+sSlRiESOosjO8ab14OSFhkf qwRHR81dzU1+5VnMWSgrTkWDPpVXsr/v1d562hzvXXi0YF+Lrmc55rLYp2ozUr5hoM+4 8v4ioEyhk/yWsTG2TI2CGTzWWJAnyUO9KMK0DXgJJVVuEmyPZ0EY0GZ0V5or+udN5lFt 4VoA== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9xmwdNnzGHXPbJ/SdwHc=" X-RZG-CLASS-ID: mo00 Received: from positron.chronox.de by smtp.strato.de (RZmta 46.7.0 DYNA|AUTH) with ESMTPSA id k09005w4NIhhI0v (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sat, 23 May 2020 20:43:43 +0200 (CEST) From: Stephan =?ISO-8859-1?Q?M=FCller?= To: "Bhat, Jayalakshmi Manjunath" , Ard Biesheuvel Cc: "linux-crypto@vger.kernel.org" Subject: Re: Monte Carlo Test (MCT) for AES Date: Sat, 23 May 2020 20:43:43 +0200 Message-ID: <12555443.uLZWGnKmhe@positron.chronox.de> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Am Samstag, 23. Mai 2020, 00:11:35 CEST schrieb Ard Biesheuvel: Hi Ard, > (+ Stephan) > > On Fri, 22 May 2020 at 05:20, Bhat, Jayalakshmi Manjunath > > wrote: > > Hi All, > > > > We are using libkcapi for CAVS vectors verification on our Linux kernel. > > Our Linux kernel version is 4.14. Monte Carlo Test (MCT) for SHA worked > > 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? Yes, it is possible. I have the ACVP testing implemented completely for AES (ECB, CBC, CFB8, CFB128, CTR, XTS, GCM internal and external IV generation, 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. AES-KW is the only one that cannot be tested through libkcapi as AF_ALG has one shortcoming preventing this test. 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]. [1] https://github.com/smuellerDD/acvpparser Ciao Stephan