Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752952AbaKBUqF (ORCPT ); Sun, 2 Nov 2014 15:46:05 -0500 Received: from mail.eperm.de ([89.247.134.16]:54209 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752539AbaKBUnt (ORCPT ); Sun, 2 Nov 2014 15:43:49 -0500 X-AuthUser: sm@eperm.de From: Stephan Mueller To: Herbert Xu Cc: "David S. Miller" , Marek Vasut , Jason Cooper , Grant Likely , Geert Uytterhoeven , Linux Kernel Developers List , linux-crypto@vger.kernel.org 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> User-Agent: KMail/4.14.1 (Linux/3.17.1-302.fc21.x86_64; KDE/4.14.1; x86_64; ; ) In-Reply-To: <6375771.bx7QqLJLuR@tachyon.chronox.de> References: <6375771.bx7QqLJLuR@tachyon.chronox.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; /**