From patchwork Tue Jan 26 08:15:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joonsoo Kim X-Patchwork-Id: 8118771 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C3C69BEEE5 for ; Tue, 26 Jan 2016 08:18:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 084AA2025B for ; Tue, 26 Jan 2016 08:18:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 298F32026C for ; Tue, 26 Jan 2016 08:18:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932852AbcAZISk (ORCPT ); Tue, 26 Jan 2016 03:18:40 -0500 Received: from mail-pa0-f65.google.com ([209.85.220.65]:34661 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932090AbcAZIPf (ORCPT ); Tue, 26 Jan 2016 03:15:35 -0500 Received: by mail-pa0-f65.google.com with SMTP id yy13so7586331pab.1; Tue, 26 Jan 2016 00:15:35 -0800 (PST) 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=oagrk4/QAkoB42QD1hlxTDMYbl46IADd9Cxk/5TTHEk=; b=DiKt8fI6ftx6ZkfJwmFEmhA2gU/C/lfjO9izYLEPFvvbA1VrGRHY2DKZiiBiaQV5f2 NC2t4GdG8iNI7E9innU4FQZTu57oe8avlHjJ/3JDVRWpvBxP1ddl/ICsHIVc7JB3mEqq B71wmcscq+YUEbV5otr3iO+wrGv0//DiB17VVNiMLPKZUPP2hiLKlQh6XpqYVcHn/bt+ G1JAXi3ohkqhTo6tYG9ukOJdpJLD36IJhB38erphcyMMDmzm4PRoDkt7ODdPLiRVcpcj ejtbSiiJHTAbvNogu6fHfZh6lXa6LYqIbo+m+14rKwOj9kKSopU6QNDfuw6K5NSPYs2Z xulg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oagrk4/QAkoB42QD1hlxTDMYbl46IADd9Cxk/5TTHEk=; b=B5WQc/jHWiB6zQD7pFqUKDtcpJxgjqYAmIVfgKxhR/JhoFZIvIQqDAwT2eZQzFSh62 H4g+RCLWTTbRXRIBQatJmdEcDGBCXlLpJSVlk6BhOHb7cUymynzWV0TzXEiZ4wp7aI9o dDbKqrhDLGTvREYV2mUd7TJ0sgAxQ5+7ThtJQTdBpBSyC1MmvT62p3lxGZ7pAnmHqUW9 /OB6ay0N9IzdWUfBs4Gdb4cPqiuyDOc4bmZy/n3zLOnArpQFfwkcWymbclR9YhOIX2Km SxWWPMoKqR37yIvlszkiEi74zeCsv9ecK/SM0ikeg1H8Mluug8S0B8xC9C5dHnftEofX ZHvg== X-Gm-Message-State: AG10YOSISUOaRbf74VuMr94wQsfhHtiQT4rLRiphnMAIYMoQC6uQ35kQZUrn/tuTN9H9Lw== X-Received: by 10.67.14.234 with SMTP id fj10mr9288224pad.149.1453796135088; Tue, 26 Jan 2016 00:15:35 -0800 (PST) Received: from localhost.localdomain ([119.69.155.252]) by smtp.gmail.com with ESMTPSA id d21sm342139pfj.32.2016.01.26.00.15.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Jan 2016 00:15:34 -0800 (PST) From: Joonsoo Kim X-Google-Original-From: Joonsoo Kim To: Herbert Xu Cc: "David S. Miller" , Weigang Li , Sergey Senozhatsky , Minchan Kim , Dan Streetman , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Joonsoo Kim Subject: [PATCH v2 02/10] crypto: add algorithm type specific flag, CRYPTO_ALG_PRIVATE Date: Tue, 26 Jan 2016 17:15:04 +0900 Message-Id: <1453796112-14273-3-git-send-email-iamjoonsoo.kim@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453796112-14273-1-git-send-email-iamjoonsoo.kim@lge.com> References: <1453796112-14273-1-git-send-email-iamjoonsoo.kim@lge.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, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 In following patch, new synchronous compression APIs will be introduced and it needs one flags to determine whether context buffer is needed or not for decompression. It can be implemented by flag in it's own algorithm structure definition but because there is a room in general crypto_alg flag, this patch reuses it to reduce complexity. It possibly can be used for other algorithm type. Signed-off-by: Joonsoo Kim --- include/linux/crypto.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/crypto.h b/include/linux/crypto.h index ab2a745..96530a1 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h @@ -101,6 +101,11 @@ #define CRYPTO_ALG_INTERNAL 0x00002000 /* + * Use this flag as algorithm type specific one. + */ +#define CRYPTO_ALG_PRIVATE 0x00004000 + +/* * Transform masks and values (for crt_flags). */ #define CRYPTO_TFM_REQ_MASK 0x000fff00