From patchwork Fri Apr 29 16:15:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Lo X-Patchwork-Id: 110517 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E87D4A04FF; Fri, 29 Apr 2022 18:16:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8915C410E3; Fri, 29 Apr 2022 18:16:04 +0200 (CEST) Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) by mails.dpdk.org (Postfix) with ESMTP id 90355410E3 for ; Fri, 29 Apr 2022 18:16:03 +0200 (CEST) Received: by mail-qv1-f52.google.com with SMTP id b17so5676527qvf.12 for ; Fri, 29 Apr 2022 09:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UKQW7QhDnglrVn1qm4Yz7wVl2pFMzFFhpzUT8J/Osac=; b=PoD/SeFt0kFxNHmO66OyUveEAmzLnuZ0d5mjQF4Fg2s3I8vj2RW52gRWnfeOUwDLl2 3wpVdc4XsbMRDgOkyRY7UG16b/PpbvcwLmdvucw0RpuwH1jfqzYeZZgv1BhBJu7ypW4i Io75PvnyUrzvmudHqQzoktMbLuAFOu+U11PeY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UKQW7QhDnglrVn1qm4Yz7wVl2pFMzFFhpzUT8J/Osac=; b=rYCGBovXulps8XHnyQIyg90C2JNWG4luhMBFuwOuiu+B91K/nI3SjGkQ6EcF8U5/A/ /mhC54PRqfzGBf5DcqEocXzCUIRLzpSeSnTbZ3KSizy0eKJqypUPcMq2yuHqKtN5s3gB qn2TvkS1+dnk3b0WUbSL+tk2DsvB2ZkuWplhVvJ1yIG04TVL56fsK/IATkvnvXhfpYpn jG1kG804FTi9WjKtvDKPkhrw9k6BhKgAMtd9polPf+o4pNksl1QXcXrnVhBTHyvGuC5Q 5mYhGr9dFA/6bCnBGab79IsE2TF7Z7M6CVSJEAdHw5N+XxQI9c2caShmrS2QW8Qotf9T kn5A== X-Gm-Message-State: AOAM530aeKXHsgXJ/QH4byRgGWP0KsXHs6/E1c+U00tcsqwXag1dJ7YM MBXs2CB+1BxMdj1m5Tuu1g/9Ug== X-Google-Smtp-Source: ABdhPJwUVFeFT7BnKB298iO74VzVI+Wh1xDIivel5c6tnN0cM+YL8++KC8XZqpOkM89cuOiIPM4HhQ== X-Received: by 2002:a05:6214:27c8:b0:446:4b4f:ee5c with SMTP id ge8-20020a05621427c800b004464b4fee5cmr29071410qvb.3.1651248962513; Fri, 29 Apr 2022 09:16:02 -0700 (PDT) Received: from blo.iol.unh.edu ([2606:4100:3880:1270:ec49:26fa:daa6:229d]) by smtp.gmail.com with ESMTPSA id k20-20020a05622a03d400b002ec16d2694fsm2081188qtx.39.2022.04.29.09.16.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 09:16:02 -0700 (PDT) From: Brandon Lo To: roy.fan.zhang@intel.com, ciara.power@intel.com Cc: dev@dpdk.org, Brandon Lo Subject: [PATCH v4 0/8] Add JSON vector set support to fips validation Date: Fri, 29 Apr 2022 12:15:51 -0400 Message-Id: <20220429161559.415645-1-blo@iol.unh.edu> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220129175514.746925-1-blo@iol.unh.edu> References: <20220129175514.746925-1-blo@iol.unh.edu> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Adds a very basic introduction to JSON vector sets in the fips validation example application. This patch set will only introduce the AES-GCM test using a JSON request file because the other algorithms need more information than what is given in the new JSON format. Brandon Lo (8): examples/fips_validation: add jansson dependency examples/fips_validation: add json info to header examples/fips_validation: add json parsing examples/fips_validation: allow json file as input examples/fips_validation: add json to gcm test examples/fips_validation: add json to hmac examples/fips_validation: implement json cmac test examples/fips_validation: add parsing for cmac examples/fips_validation/fips_validation.c | 119 ++++++++++ examples/fips_validation/fips_validation.h | 57 ++++- .../fips_validation/fips_validation_cmac.c | 68 ++++++ .../fips_validation/fips_validation_gcm.c | 151 ++++++++++++- .../fips_validation/fips_validation_hmac.c | 93 ++++++++ examples/fips_validation/main.c | 207 +++++++++++++++++- examples/fips_validation/meson.build | 4 + 7 files changed, 693 insertions(+), 6 deletions(-)