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 2FF9B43C12; Fri, 1 Mar 2024 18:21:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6946043477; Fri, 1 Mar 2024 18:18:09 +0100 (CET) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id 43D1D433E8 for ; Fri, 1 Mar 2024 18:17:47 +0100 (CET) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1dc49b00bdbso24003275ad.3 for ; Fri, 01 Mar 2024 09:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313466; x=1709918266; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ml8BNtMCdJye1xhS+3MVMIo0y3q/nXOGoIniv8RYhzM=; b=hclE+VtZLvny4NM4PhLhIndBMJmLVKXPqBxpIAYKESzhLbWSSb6NpuOJWdYuHo6zEa JwxEmnYmwAdHpJz9tjCXi4TSUriIbZvRsBdNYtCZKWsS0pFormdH+aoH7yNdZzlsO9zh QWodlBvGxSFG1HClE0MIM6Y8QnwPmEodTWejjHDrohyJXq+V8b/DBykmop53WZq0Ss11 TtuDZuT03Wq9F6jceOQQgV8k2ejRXWCM45EOi1oRJa6KYKWuwPBoRmMQy7N0WYSmifKz r4YTCvTckcgpUG6/4nMtzGpIqk8X4L3J5QrWY4Z7J5w4BIFUIPp+3/utgMjoPRF29RRw lsiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313466; x=1709918266; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ml8BNtMCdJye1xhS+3MVMIo0y3q/nXOGoIniv8RYhzM=; b=eUBBHXtXaLMYDRncYnLbWFfDbYpqx14scADozNhTFCfhx+i/mdIqIeCCiM+nfQmXC+ 59km3jmC+K7kbjbX5KlDtIJlwUvJO5RZCYDk9Sk574x3/d9RGAC5bqLYYUWr4iE4pnUc O4p7+rAiDoKBvEFvZc4NmEbiBxjuWnryz8+JTSOzm9615Hl3FC6Bzy1+ybDyDL8MZJoK 34hAJTHjXwUu1k13wqDTf+9k6lx0Wdlhr1InN6o1AbbXRqFDa9SsyDk1PHfFBI5YnjIs 94dDXH19bNNnZCQHDuMdCV8XoJty375zHMNe2lXVMI8PcOCFMpn1kAxko1YnWkqDgrjh B4ug== X-Gm-Message-State: AOJu0YyCDVCLnwzdlrjmZnXComFDoU1HEwZa4EdI84bKAZ3+k3MhazkR am1xOXKhFsqdmfV+UT4am3an0gBLxjY36D+jA8Ohd0vCHCkowq5xbO0TTPKxdvhG0G4Ragc9MF8 F79CFtQ== X-Google-Smtp-Source: AGHT+IGV04M5eNpuCpx7PEmjeEEerj29KxQ3rHtfBxLfuRi1jYNY2a/ktfR3mbxcVGZ12/TD9IVjxQ== X-Received: by 2002:a17:903:2409:b0:1dc:a605:5435 with SMTP id e9-20020a170903240900b001dca6055435mr2439799plo.31.1709313466564; Fri, 01 Mar 2024 09:17:46 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j14-20020a170902da8e00b001dc8d6a9d40sm3695764plx.144.2024.03.01.09.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:46 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sunil Uttarwar Subject: [PATCH v2 38/71] crypto/ccp: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:34 -0800 Message-ID: <20240301171707.95242-39-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301171707.95242-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240301171707.95242-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Automatically generated by devtools/cocci/rte_memcpy.cocci Signed-off-by: Stephen Hemminger --- drivers/crypto/ccp/ccp_crypto.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/crypto/ccp/ccp_crypto.c b/drivers/crypto/ccp/ccp_crypto.c index 4b84b3303e18..4a70bc5d6e05 100644 --- a/drivers/crypto/ccp/ccp_crypto.c +++ b/drivers/crypto/ccp/ccp_crypto.c @@ -168,7 +168,7 @@ static int partial_hash_sha1(uint8_t *data_in, uint8_t *data_out) if (!SHA1_Init(&ctx)) return -EFAULT; SHA1_Transform(&ctx, data_in); - rte_memcpy(data_out, &ctx, SHA_DIGEST_LENGTH); + memcpy(data_out, &ctx, SHA_DIGEST_LENGTH); return 0; } @@ -179,8 +179,7 @@ static int partial_hash_sha224(uint8_t *data_in, uint8_t *data_out) if (!SHA224_Init(&ctx)) return -EFAULT; SHA256_Transform(&ctx, data_in); - rte_memcpy(data_out, &ctx, - SHA256_DIGEST_LENGTH); + memcpy(data_out, &ctx, SHA256_DIGEST_LENGTH); return 0; } @@ -191,8 +190,7 @@ static int partial_hash_sha256(uint8_t *data_in, uint8_t *data_out) if (!SHA256_Init(&ctx)) return -EFAULT; SHA256_Transform(&ctx, data_in); - rte_memcpy(data_out, &ctx, - SHA256_DIGEST_LENGTH); + memcpy(data_out, &ctx, SHA256_DIGEST_LENGTH); return 0; } @@ -203,8 +201,7 @@ static int partial_hash_sha384(uint8_t *data_in, uint8_t *data_out) if (!SHA384_Init(&ctx)) return -EFAULT; SHA512_Transform(&ctx, data_in); - rte_memcpy(data_out, &ctx, - SHA512_DIGEST_LENGTH); + memcpy(data_out, &ctx, SHA512_DIGEST_LENGTH); return 0; } @@ -215,8 +212,7 @@ static int partial_hash_sha512(uint8_t *data_in, uint8_t *data_out) if (!SHA512_Init(&ctx)) return -EFAULT; SHA512_Transform(&ctx, data_in); - rte_memcpy(data_out, &ctx, - SHA512_DIGEST_LENGTH); + memcpy(data_out, &ctx, SHA512_DIGEST_LENGTH); return 0; } -- 2.43.0