From patchwork Mon Oct 12 16:53:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 7377851 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 70CC39F1D5 for ; Mon, 12 Oct 2015 16:55:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9901E208AF for ; Mon, 12 Oct 2015 16:55:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C5F372075A for ; Mon, 12 Oct 2015 16:55:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932074AbbJLQzS (ORCPT ); Mon, 12 Oct 2015 12:55:18 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:38466 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752084AbbJLQyc (ORCPT ); Mon, 12 Oct 2015 12:54:32 -0400 Received: by wieq12 with SMTP id q12so29310114wie.1; Mon, 12 Oct 2015 09:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9F9VPGkGp+QCszfDAMDk4jbO6a8CB+WZ1+lobOoOFLI=; b=t7JN+sHKVm4XyC8gy3FTT4LGdHETq3CVHtEJHSOaXlFQD52scJIJ9Ov/ms4OW6EHWH ziAsi+C9s47t8UT66OoBN4V1FP8XDWUTSpGpdzJoiTXpjHRMzutF8ez6UDUtbUsbO9oL RhZYuLi3BVcb6nuFUN9L3vbogrqSrKcas33fa9PKXX1p9tmWn6WXYkNc0m7k50X3GoLJ V9VsVqf0jeCsigOuJUZBxib7clJEi3NxzMZFGhvkVHlbH92rAwoy3pOvjhjv7I76b6TW 1L+goW5yswMMDat0VLy4uG8EoEzRRzv7vZR2hOH0KlOwxEskOGEtdMIDfMx5QcAMBNwo 0M5A== X-Received: by 10.180.35.163 with SMTP id i3mr14664754wij.80.1444668870829; Mon, 12 Oct 2015 09:54:30 -0700 (PDT) Received: from Red.local (ANice-651-1-429-185.w83-201.abo.wanadoo.fr. [83.201.253.185]) by smtp.googlemail.com with ESMTPSA id s16sm11548506wik.16.2015.10.12.09.54.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Oct 2015 09:54:30 -0700 (PDT) From: LABBE Corentin To: herbert@gondor.apana.org.au, davem@davemloft.net, thomas.lendacky@amd.com, geert+renesas@glider.be, ulf.hansson@linaro.org, wsa@the-dreams.de, keescook@chromium.org, maxime.ripard@free-electrons.com Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, LABBE Corentin Subject: [PATCH 6/8] crypto: akcipher: the key parameter must be const u8 * Date: Mon, 12 Oct 2015 18:53:44 +0200 Message-Id: <1444668826-6531-7-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.4.9 In-Reply-To: <1444668826-6531-1-git-send-email-clabbe.montjoie@gmail.com> References: <1444668826-6531-1-git-send-email-clabbe.montjoie@gmail.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All cryptoAPI setkey function set the key parameter as const u8 *. This patch make the crypto_akcipher_setkey parameters like others. Signed-off-by: LABBE Corentin --- include/crypto/akcipher.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/crypto/akcipher.h b/include/crypto/akcipher.h index 0c9fa68..ade053b 100644 --- a/include/crypto/akcipher.h +++ b/include/crypto/akcipher.h @@ -330,7 +330,8 @@ static inline int crypto_akcipher_verify(struct akcipher_request *req) * * Return: zero on success; error code in case of error */ -static inline int crypto_akcipher_setkey(struct crypto_akcipher *tfm, void *key, +static inline int crypto_akcipher_setkey(struct crypto_akcipher *tfm, + const u8 *key, unsigned int keylen) { struct akcipher_alg *alg = crypto_akcipher_alg(tfm);