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 6EA6543BAE; Fri, 1 Mar 2024 00:04:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7436243399; Fri, 1 Mar 2024 00:01:24 +0100 (CET) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 1F44342FA5 for ; Fri, 1 Mar 2024 00:00:33 +0100 (CET) Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-29a940614easo1097540a91.3 for ; Thu, 29 Feb 2024 15:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247632; x=1709852432; 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=ZpNHIXEgpJfJDn8rY3wZj2N8fPZcGJxClgtrFZLUAVNvry28KxHmowBYn5zaROgndK F1KD1feIqatrs0B3fUrATsmtiDLDYxQZB7AoWwudDbPCxT2ymfSz4Fqk5xiq8kiDhXvH dpygLE7myhHiv0LLkzL+9EPsUXI6l2mIsep1GJf+LZZSe2htI7kxER95TFKSy/1CFwNh nRJMe+bxPfo7+iPVN9UhpF0Bkm1wj+iQjNnztm+XPJwRjyojS2aGtJOE283SGG+jcOZK Iwpm8Sqw8xjuzlLza8DwFO6rtuNHPQqbZsAm73wERi/eYLfAb/QIxnpcZZQO5TkT/DgR tk4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247632; x=1709852432; 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=mFPqMmGWzoTDQot70N+eJWn8WBISN1bVVv+n6R+vw2JVXTXGPAPzizpvdXGxpNSawC 8IGkAe9yQYi6s0FjhMvPzCsnDTDH4y+hwtxZexCZZqeL5HcR14jVm6MFU5+jq08kmyqs DqrCkCu/eacYO0A55dxQSqBDuFzv4roUM4GA99JPc2EvFDUHMtVmGkZxWoHfsob/clUK NTGdP5zdP/k/oXsL55M772tM7uy4aYF8n8aH+inzu6MM1g0auCK+X2C9Wdog3EaUnShA 6FWdqrwKs7mttaAUi8JmVDx8Ej6stq11YmhjdJcU1DKXAtQ/361HJYFI8xfdnZQlQRwR 6Q6w== X-Gm-Message-State: AOJu0YzZgaLrZRrmKBe3Ig1R6yb0iyTUCSNmRsLxU+hAbs4RzU76OYjW 2TcRBBe8OCQcuTxiu3qBhW7jr4YlX7Vg19qN4ex5MzsFcw4aGwWviI6BrdkjMGMw2DklouaTHC1 M X-Google-Smtp-Source: AGHT+IG432gz76L8C/srG9fC/y8u+VrRs4qx8WbgZwTBVlB4t5nYPnDbkpzWdYpc+TgBzyc7EYi8Qg== X-Received: by 2002:a17:90a:f60b:b0:29b:2019:9577 with SMTP id bw11-20020a17090af60b00b0029b20199577mr19398pjb.41.1709247632261; Thu, 29 Feb 2024 15:00:32 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id l22-20020a17090b079600b0029a8e5355fcsm1965578pjz.53.2024.02.29.15.00.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:31 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sunil Uttarwar Subject: [PATCH 38/71] crypto/ccp: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:25 -0800 Message-ID: <20240229225936.483472-39-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229225936.483472-1-stephen@networkplumber.org> References: <20240229225936.483472-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