Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9248414ybi; Wed, 10 Jul 2019 07:08:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjOVq5Yr20FL9ily3bzwKFvlsQxFCTQ6IeRvbsx4qzZvAiGhliIE9wOzytOz/TzRBNNHE4 X-Received: by 2002:a17:902:2926:: with SMTP id g35mr38958636plb.269.1562767716967; Wed, 10 Jul 2019 07:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562767716; cv=none; d=google.com; s=arc-20160816; b=zbdmz7JyACkwfFgiGd5p+LteSeZm9lF6MO4PqPqNQhTmXkfLx4VUjY/1YJ5BFriYsJ 73oxCdytiMcX82Ri/efO7HS+qf3RfavuY8OaUUKDtIVuSdyNao+q8PZFXAtSwuzLU5Du 7BRfcvFqnLkiPxMMjGzSGPZ93bmEicEpKvTCA+NKYAq1jC0nNvR66L3QLxUDzmt1sOrR kq96iwoDTpveszvlpHy9M/Q2kouD6XDFha8Ely5dPJ7a+3DCtGAkFA96mOLRwc2+UzEd AMiEPSTeWdkaqpc7lc+kUncz7AgU53VGpY3J9Jqb4MUw7Qnjhr+8UPIve8c67/5eotgA U89w== 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=mn+ZlmXMoQVb8yGmJIWtoOdOytUNAr89dX9zWx6CB0A=; b=XtyevMK67faahzfycx7GCvl5QbIZVuxFWM1TwFoaKaZQ+fjPSiqwP6PeO+jp88v+XO y6bw/qUkFH6NtntRuhh9KjTTF45GJoBRx53QqO6Lvi66l9OdU3BH7Xf5nhutlWobRbJD dPvmdpRTnnhUR0sd2oZOdSaXDfhmiMHAj5snHz/58XXw8iWYnch+ylqSWxmmafwd2Kic CnGxPiNTdyKKe7w0bT7eyjIW0Du8gqMqmoGMepvTFVF8UWLsmdpzbTTLwPqV2MztYhHF BrsY01EFAEU6aHafe+5Obc0XmTQBkOSea1eyaU6d73VUrabksQc4HBhvvW65nT70bMse Qasw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b=Qjdcrz2I; 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 s24si2325324pgm.327.2019.07.10.07.08.13; Wed, 10 Jul 2019 07:08:36 -0700 (PDT) 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=Qjdcrz2I; 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 S1727658AbfGJOFz (ORCPT + 99 others); Wed, 10 Jul 2019 10:05:55 -0400 Received: from mail-ua1-f41.google.com ([209.85.222.41]:43392 "EHLO mail-ua1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727541AbfGJOFy (ORCPT ); Wed, 10 Jul 2019 10:05:54 -0400 Received: by mail-ua1-f41.google.com with SMTP id o2so907712uae.10 for ; Wed, 10 Jul 2019 07:05:54 -0700 (PDT) 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; bh=mn+ZlmXMoQVb8yGmJIWtoOdOytUNAr89dX9zWx6CB0A=; b=Qjdcrz2I8BrO/Fp8heGmw+8ii1A686F5gxDnoYaVIphQ3/bq6JxCkW7NWLWM/THhVM W0JHZkIXWWgYJrb/i2IM27neacw57z7X0zbGHwr1ksGUkeqMlpPiBMsKVvIp6VU6OPFv TawjXFNnxQD/VG0Ebvw0KoNrU1QjEubmSRPw1XijCTdNBCWmwLDhkg1xvTPH3xsL0QyA T3UUXqYAFi6zjSLLFGtQ8wgYiHp3qxhsspn3qeQmUHAp2cuxaeybjnSjksDV0T72XPcH Mi+sSDpSaecJuqvR6xqSGuDpMV1QN4eyr/dIGPaUgPQD9EgRudb+E8diYlGLvF2WxD9M o5yg== 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; bh=mn+ZlmXMoQVb8yGmJIWtoOdOytUNAr89dX9zWx6CB0A=; b=BDWN2F74J8O+cq0taxtGy5veQJxQ8SrGTXaN1fGP3QkiNtO2HbkEfCOLPb9lXvn/Pl y3QtxxJQzZyfwubFwOGn1IAKlxTys10n7DwBufrBzhTwmDvgzE4j/AQWCHoKHst8nYXc MXesb8XRbOfmo6fSaVNtmHoDNP4F/q7BjBvYRcZYgXPH+DS3mETUzAJc6PUVilZpy1V2 mKqZRt7sM64HIq6IFEmHxSph0D1wUuZ0O+m2f8pfUVzNtfXRVr8+IBc987qk08sPmRXv KCkuFMgRsdbbcaE/wBXIIKNeC9pc6aJ4VezD0UlUmFo3Go6JRnvxCPyeXP4JmFcRem+f r8lA== X-Gm-Message-State: APjAAAXsYh3CCHuAYHW9UMJj+PWj8RIoOQLeFpNWPnSsf5Xlu/QuSaDi ZjEHwOnzMQqJ8hAyt5UcucGvbXPOGLnsDFqGnCHzm07A+cc= X-Received: by 2002:ab0:168a:: with SMTP id e10mr17886088uaf.87.1562767553483; Wed, 10 Jul 2019 07:05:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Gilad Ben-Yossef Date: Wed, 10 Jul 2019 17:05:42 +0300 Message-ID: Subject: Re: CAVS test harness To: "Bhat, Jayalakshmi Manjunath" Cc: "linux-crypto@vger.kernel.org" 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 On Tue, Jul 9, 2019 at 7:07 PM Bhat, Jayalakshmi Manjunath wrote: > > Hi Gilad, > > Thank you very much for the response. I am an entry level engineer when it comes to Linux Kernel. I have gone through the testmgr. I am not very clear on how to use it for KAT (Known answer tests), MMT and MCT tests. > Also I am not clear on how to use it with various test vectors for AES, SHA, HMAC, DRBG and RSA > > If you point me any example on how to use it, it will provide me a direction to use it. testmgr automatically runs KAT tests for every crypto protocol that registers with the kernel at the time of registration. You don't have to do anything for it to work (except avoiding disabling it - there is a kernel config option to do that at build time but it is not the default). This is typically either at boot for statically built drivers or at module load time for dynamically built drivers. If the test fails the specific implementation of that crypto algorithm will be disabled and if running in FIPS enforcement mode the entire system will be shut down. I am not sure what MMT and MCT tests are. I hope this helped. Gilad