From: Stephan Mueller Subject: [PATCH v2 06/11] crypto: Documentation - documentation of crypto_alg Date: Sun, 02 Nov 2014 21:38:55 +0100 Message-ID: <3999140.fjkrqlGA9E@tachyon.chronox.de> References: <6375771.bx7QqLJLuR@tachyon.chronox.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: "David S. Miller" , Marek Vasut , Jason Cooper , Grant Likely , Geert Uytterhoeven , Linux Kernel Developers List , linux-crypto@vger.kernel.org To: Herbert Xu Return-path: Received: from mail.eperm.de ([89.247.134.16]:54210 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752668AbaKBUnt (ORCPT ); Sun, 2 Nov 2014 15:43:49 -0500 Received: from tachyon.chronox.de by mail.eperm.de with [XMail 1.27 ESMTP Server] id for from ; Sun, 2 Nov 2014 21:43:46 +0100 In-Reply-To: <6375771.bx7QqLJLuR@tachyon.chronox.de> Sender: linux-crypto-owner@vger.kernel.org List-ID: The data structure of struct crypto_alg is documented for all parameters that can be set by a developer of a transformation. All parameters that are internal to the crypto API are marked as such. Signed-off-by: Stephan Mueller CC: Marek Vasut --- include/linux/crypto.h | 157 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 137 insertions(+), 20 deletions(-) diff --git a/include/linux/crypto.h b/include/linux/crypto.h index d45e949..e1a84fd 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h @@ -277,22 +277,104 @@ struct rng_alg { #define cra_compress cra_u.compress #define cra_rng cra_u.rng +/** + * The struct crypto_alg describes a generic Crypto API algorithm and is common + * for all of the transformations. The flags marked as internal shall not + * be set or modified by a transformation implementation. + */ struct crypto_alg { - struct list_head cra_list; - struct list_head cra_users; - - u32 cra_flags; - unsigned int cra_blocksize; + struct list_head cra_list; /**