Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp209102rdb; Thu, 30 Nov 2023 02:42:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJjv+KUUoWV2xJ2BykrUdKN6jKi1nckjM2JXRvbbRf1bjQusIfrtwl+uFEGYFL74bM8kna X-Received: by 2002:a17:90a:e7c1:b0:285:b8d2:cadf with SMTP id kb1-20020a17090ae7c100b00285b8d2cadfmr14412897pjb.5.1701340964437; Thu, 30 Nov 2023 02:42:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701340964; cv=none; d=google.com; s=arc-20160816; b=CPwHxOfAbIqGVF5/DXsrhlN7cyfG1438DUH8MIfKFEdrvGl82gDfFFDPoCPWYm3lvR m3HmBMu9O++DR1VL+gP5ID1SWolWdA+xcQo4iEt3VbsdFVV2S3sfGCnu7RWsGaZRqUds PFwP6B0oX4u/VDj/qZhRkqVdzTsKe0NFbZNyCMYm45i96yWd8URLEFYJHksu+jOxOtQC qDeAJFIFG32sLUZmnShJ1j6Nj+8rO0EwqyRszpZKWmLN8175ogtaj0nJ9BK5kTrM1HVS O6NSTyTsi7idKBXN/Z34zzPa/mj/iPtwMyLA4DSugYl6lbuEPcXsHrx2yguIYhgXs2oF IJKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=KcT+FeVdbpQAzFCABEnbTl+ZzDJ20CCFGkagmWOC9T8=; fh=gvAaTn7V2ako+socwadq3mowY+XpjEU7R+nroQHn0Qk=; b=FHulG/coy81JbsxnYN/uVuYj2vOSeIsyorYIMoIMy3PLtkSC8D5i1GIyparv6c7Gqt OctNIZksuMDn/HbYQ/Ja1UxZkbFCKQpc2qzsGrOYtUWK8QqI2OSVrb3bHVGKCeukCHga nRx6nxpyDCYdq0wWzdSnX1Ril0EqoPuFnf0v3rt2L1b4pgw0T8xHsGlhT42+YSyNMFsw Pa4SBf4SZrq+6jVs89XSSJjtqpGrg1A1GOrAlqCLvB5nU2crOQG4twgNpmVta/SUHiiB jPCGk5QBPro9K4eE5LVhlgXa3FcsTewCLuW1PO39QRVxhEHx2sVXSrLgTJucoaa4a2X4 oRFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-404-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lp9-20020a17090b4a8900b0028016799242si3513942pjb.80.2023.11.30.02.42.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 02:42:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-404-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6F375B20DD1 for ; Thu, 30 Nov 2023 10:42:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF39738F9A for ; Thu, 30 Nov 2023 10:42:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Original-To: linux-crypto@vger.kernel.org Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C441F10FC for ; Thu, 30 Nov 2023 01:55:22 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1r8dlN-005F6k-27; Thu, 30 Nov 2023 17:55:18 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Thu, 30 Nov 2023 17:55:26 +0800 Date: Thu, 30 Nov 2023 17:55:26 +0800 From: Herbert Xu To: Eric Biggers Cc: Linux Crypto Mailing List , Ard Biesheuvel Subject: [v2 PATCH 0/4] crypto: Fix chaining support for stream ciphers (arc4 only for now) Message-ID: References: <20230914082828.895403-5-herbert@gondor.apana.org.au> <20230920062551.GB2739@sol.localdomain> <20230922031030.GB935@sol.localdomain> <20231117054231.GC972@sol.localdomain> <20231127222803.GC1463@sol.localdomain> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: v2 fixes a crash when no export/import functions are provided. This series of patches adds the ability to process a skcipher request in a piecemeal fashion, which is currently only possible for selected algorithms such as CBC and CTR. Herbert Xu (4): crypto: skcipher - Add internal state support crypto: skcipher - Make use of internal state crypto: arc4 - Add internal state crypto: algif_skcipher - Fix stream cipher chaining crypto/algif_skcipher.c | 71 +++++++++++++++++++++++++-- crypto/arc4.c | 8 ++- crypto/cbc.c | 6 ++- crypto/ecb.c | 10 ++-- crypto/lskcipher.c | 42 ++++++++++++---- crypto/skcipher.c | 80 +++++++++++++++++++++++++++++- include/crypto/if_alg.h | 2 + include/crypto/skcipher.h | 100 +++++++++++++++++++++++++++++++++++++- 8 files changed, 296 insertions(+), 23 deletions(-) Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt