From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9EE09A00C2; Fri, 6 Jan 2023 17:24:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 81E5C40141; Fri, 6 Jan 2023 17:24:18 +0100 (CET) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mails.dpdk.org (Postfix) with ESMTP id 495B6400EF for ; Fri, 6 Jan 2023 17:24:17 +0100 (CET) Received: by mail-wr1-f48.google.com with SMTP id bn26so1751898wrb.0 for ; Fri, 06 Jan 2023 08:24:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=T0c1Lpwcn4wNtFHwPvGys1iAmTkeXWf/wZjqgPjh+Ac=; b=dK2OfLUAANCohXrkZ3h707FPHsRrP0EMx8/YmoL9ek5bJBzYfqMUUUJVBVPzmKdV3w vrQSVVbAU+lEM9JmCorLYhxDJ6CliL3D4vGZJURR7tlJhPeuwsv6COoo8IcyO9eHqMEs Rao8yqI0gKVbBYkDVYXrnJpGbhc8Z/KondK6FZbsxTq6rOXTVuF1cIVMUZO9bNC32U4+ iGoXiWFXZBR4eQX44fNjqJ34ujjiuaggR0dIHwT0sWrLvfM84jsqeDd09A2r575D8GrY Nw4M5xaQYvoZeC3gbIy1YEppcnTCLJe2w/xr7MDz7nLwYfkQo94l5TiAiuQuwodRxrEu s4yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=T0c1Lpwcn4wNtFHwPvGys1iAmTkeXWf/wZjqgPjh+Ac=; b=iWHMQhXYSAX3q+1NsyuqlgAptjedY1llIuTevby1GD5f5WdwpC9XHOfhyhIorVOXH6 WVUfqDcjZom7bWarNUKJmLtq+ZHIz68xYl+LTeP87qXP8chFpyiPEDohUv1HPTvwCsta u0CwAcVjz6/tnPuCFM+8s8oXfq0+kPVUSH8b99s7qVNHm5vTQu1LBtMh09lq/eDid5Ls tWgsOlsoMn2ds4YduXVW/aCBjCUDF/mKnq7D1E5JWmGouUKrWUQsloaRHrZHONGnG6zZ UN/Pn/FIs+yjhLpSOv9CO41d5Myc3lb/o0Rtw9l8MfEp/KbEfNoUaGrjdtbD8sGjcvuh x9nw== X-Gm-Message-State: AFqh2koujf38yxJZ0l90LKxXH+Vc76vAXKhMojT6Ga2FCWSFjSLt+3ZO l2QbrWheI1JtFnb4lD556kw= X-Google-Smtp-Source: AMrXdXvRnONutgRRRVjCKHwZQwl7e4oiRZcW3WY0S5gqgjuOjUIrBYQciKythFgZl2u3SjwpFt/oqA== X-Received: by 2002:a5d:5291:0:b0:289:773c:59ee with SMTP id c17-20020a5d5291000000b00289773c59eemr20170059wrv.6.1673022257053; Fri, 06 Jan 2023 08:24:17 -0800 (PST) Received: from [192.168.4.48] ([64.43.20.179]) by smtp.gmail.com with ESMTPSA id a26-20020a5d457a000000b0028e8693bb75sm1767089wrc.63.2023.01.06.08.24.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Jan 2023 08:24:16 -0800 (PST) Message-ID: <0747797c-328f-7ec1-53dd-d53ceddb8d21@gmail.com> Date: Fri, 6 Jan 2023 16:24:13 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] test/crypto: fix and improve ZUC cipher and auth tests Content-Language: en-US To: Ciara Power , Akhil Goyal , Tejasree Kondoj Cc: dev@dpdk.org, kai.ji@intel.com References: <20230106161536.68058-1-ciara.power@intel.com> From: "Zhang, Fan" In-Reply-To: <20230106161536.68058-1-ciara.power@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 1/6/2023 4:15 PM, Ciara Power wrote: > The incorrect value was used for the reference plaintext offset > in ZUC cipher function. This is now fixed to convert to byte length, > rather than bits. > > Also, to cleanup the ZUC test code, some small improvements are made. > The authentication function takes the auth op enum as a parameter > instead of a new variable, this can then be used directly. > The cipher SGL function does not need to buffers allocated for > ciphertext and plaintext, one can be used for both. > > Fixes: be8e5d957366 ("test/crypto: add further ZUC testcases") > > Signed-off-by: Ciara Power Acked-by: Fan Zhang