Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp231454pxy; Fri, 7 May 2021 01:50:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxF+A/qKO71YHYO3iwq7mb9mPLotRWHcMn3g6dn08Lbvv3umvvqBjx/XSq6fjEM7KFv1HBP X-Received: by 2002:a17:906:fa83:: with SMTP id lt3mr8669844ejb.261.1620377412201; Fri, 07 May 2021 01:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620377412; cv=none; d=google.com; s=arc-20160816; b=Ukd6BTPUqtVpX4Hw2TQCIrM6fWsRNLnkAGE2/r80BPQlwCHOXQ3xiaHSFUzKPguClI 5R+ApVaJwALZbB7D2vWrjnXE2K7edv4WCykj+vUJBpPpiFnkyLj63UZ98XTtbL4XyZpB gw2ZfrHRB53izGMiUvBWNVOiyyPCv1THndMwP0+l8Bw9Ezwc6yWBVj6cICWDlw1/k9QP KRtrY/7cZgglym/Z/xlnn1iPUCyxMW5ui/7RZk5VMIJ+PPd60z0GFztGg0s6bFzkbbdW bF2y4X6GazAaztCofmhoG/npvY5hAcOIfBkc1JzPHztp/FUbo6Boj7KcF+bJ/S7coVRD JYaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=76eipqNBNkUeHiS93+YHHFtGscmZKFfCQ8YQ1j3cNTU=; b=Y52LshMuvQDA36YdIAH3IKszp0TMKrc6wizAO9E2uzD4bifB+S5IUApf3JfIV0VR8t 86Hgsrumo4rOUykLhII5WaCFEu3WJ33nrqDlKstHA+M4NzgxVVzNl/FFXPtPEEsgNEhC 3Q4+VNxjV0U0qOSHWOttS0By3gtNDCXtB+PZUn40e621GqzhyNOJu2cuRFcoP4A4Y6za oMoQZk2eeZ6hp64SrtWOu6SEr5tpvdussGlmIfSBRUb47pcxdPbsHBQrKn6hFXvs9tVz 1GBZlKPwO/divNNr/QJbjoRGZbyjJnkKddlFahrVl8v4lED0dUOtcgOMRxkJD3x6pqnU PgHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lp5tJK11; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si4124723edr.301.2021.05.07.01.49.48; Fri, 07 May 2021 01:50:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lp5tJK11; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235431AbhEGHhJ (ORCPT + 99 others); Fri, 7 May 2021 03:37:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235413AbhEGHhG (ORCPT ); Fri, 7 May 2021 03:37:06 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51FF1C061761 for ; Fri, 7 May 2021 00:36:06 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id v12so8100486wrq.6 for ; Fri, 07 May 2021 00:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=76eipqNBNkUeHiS93+YHHFtGscmZKFfCQ8YQ1j3cNTU=; b=Lp5tJK11a9FTGaLMTD9ul8YPRKxgIgK86X2OoLVUcHX0egMsSuFHDeGCJLT/dEFI3x qfhU8pRl1mVAqFuFygzXasRJw17qjKOI8NucX7vpaE5osxVLHRXNH/QxMLgsDAq0ofwZ ypRGheW5b+14yA2RqOpzgzETLSG0bVMiMbyUjAEY6ZbO5YR3P0QVX6LaLDDal1qZPdft djgB7vStPHLpP/mdIaxZOZB0SyCoIvBLxpKOLOu2goE0TSTsGCsaQ49Q0OyK52ixugeR FNZHS+GYkgEUaL0o742PQQmDcnlS3v4jU816rrgb79URq93+hc99UVM3cyqwakL5YKZo KRrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=76eipqNBNkUeHiS93+YHHFtGscmZKFfCQ8YQ1j3cNTU=; b=OEgUxPjnlc49b0j+k1wQTmsr13Wo8YAXRZhGdlxgx5bSkNlExEZQSVAbcSr1ogFZU1 595a7qCvWWFhcK+6QVITZWKIGwPUXdUdg7ZSY/aaPhmG0BNsI+EV3ieNYLM/KeGeuUav AI0g4HJDtuQ3H8Kyv23/GXIT3YzTNt6CBYwu7zWy7BH/mF4+2cMDjKR8qVxZq0+TCdIR 26A0FR/kbjQEv2wqYBw0+1abbGjS8S1yA5LnPKnz0KcNESdrEDBBOKz4Y2DN9mcMCOEV pg3Y2njSqcuMdS9QoKE63PUhAwPWz+pNleYVhC2qsikq+cCiQqEypE49rGu1EUHnIud1 +ROw== X-Gm-Message-State: AOAM5324qxE28t8eAM7yIhAaZK+ckH6tZY2jffOHUKm8+GyhaSJQ7pRY qbauHQ1f5gTepF1Lj5prqeT5pt96lFHm9A== X-Received: by 2002:a5d:4fd2:: with SMTP id h18mr10281204wrw.95.1620372964845; Fri, 07 May 2021 00:36:04 -0700 (PDT) Received: from agape ([5.171.80.53]) by smtp.gmail.com with ESMTPSA id q10sm6077462wmc.31.2021.05.07.00.36.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 May 2021 00:36:04 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] staging: rtl8723bs: remove more unused encryption macros Date: Fri, 7 May 2021 09:35:58 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove more unused logical macros used in removed private aes encryption. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/rtw_security.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/staging/rtl8723bs/include/rtw_security.h index 619d2fa4e8f2..76076c4f0763 100644 --- a/drivers/staging/rtl8723bs/include/rtw_security.h +++ b/drivers/staging/rtl8723bs/include/rtw_security.h @@ -248,21 +248,6 @@ struct mic_data { /* This is based on SHA256 implementation in LibTomCrypt that was released into * public domain by Tom St Denis. */ -/* Various logical functions */ -#define RORc(x, y) \ -(((((unsigned long) (x) & 0xFFFFFFFFUL) >> (unsigned long) ((y) & 31)) | \ - ((unsigned long) (x) << (unsigned long) (32 - ((y) & 31)))) & 0xFFFFFFFFUL) -#define Ch(x, y, z) (z ^ (x & (y ^ z))) -#define Maj(x, y, z) (((x | y) & z) | (x & y)) -#define S(x, n) RORc((x), (n)) -#define R(x, n) (((x)&0xFFFFFFFFUL)>>(n)) -#define Sigma0(x) (S(x, 2) ^ S(x, 13) ^ S(x, 22)) -#define Sigma1(x) (S(x, 6) ^ S(x, 11) ^ S(x, 25)) -#define Gamma0(x) (S(x, 7) ^ S(x, 18) ^ R(x, 3)) -#define Gamma1(x) (S(x, 17) ^ S(x, 19) ^ R(x, 10)) -#ifndef MIN -#define MIN(x, y) (((x) < (y)) ? (x) : (y)) -#endif int omac1_aes_128(u8 *key, u8 *data, size_t data_len, u8 *mac); void rtw_secmicsetkey(struct mic_data *pmicdata, u8 *key); void rtw_secmicappendbyte(struct mic_data *pmicdata, u8 b); -- 2.20.1