Message ID | 20191105123759.25053-6-t-kristo@ti.com |
---|---|
State | Accepted |
Commit | aca8bf0027d3ab4492d47e6b05b13911948903db |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp698856ilf; Tue, 5 Nov 2019 04:38:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzqztkMeSQQ6Hqiwr27CmjzZLN5AOcDqKeb7OQvxQB/c4Qowr3SJ4vEmnOWjdKqf+f7nHdR X-Received: by 2002:a17:906:5494:: with SMTP id r20mr28741618ejo.293.1572957503195; Tue, 05 Nov 2019 04:38:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572957503; cv=none; d=google.com; s=arc-20160816; b=Qw240+Su9rXcZ6I2eqKC4DCj0AQgv5ICO0ff39+2/HN3wl+iqKkbd8pXzQMm6XSVHs GAEdo18XLaA7WWVqjEGf4Mo4XP6d0CSeGB+85Y/AIz9r5zDpI9317M0A+sAup4L2Nky8 H5CALBj2Z062oEzzAozSVgJjotYQk6cJBdRhRlvPyfpO7qsZxi6KGG7VHSsGMMu/qoi+ cWUUZCc2YEitX/R/yCRTv9m8PLyR8I1E+QFrNRLzl+r1N1b0cR5Ren4CAStuptvZblz7 hyllWsjA7Wg4r2dFN4JfihsjDFpWgNFCsoJtu+EGjXS5HJzr1+KBbk2OF1ZQXzocalDp btUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ifdXaSh02lwWKojK7/ahJ85aJhHGaIR+HEH3a7yUkO0=; b=hSZanpmvUS2ER4+y46BpkKwNutaih3nU06wr9+Ci3rNkvFsKIt3GgfZXEfM9nX1OHW CJHRQ2Q3QEZbVtIaQGzfKTKFtDwiecdbKA8PUwsZ7mu1pL06xc8OoGWMeXJWKfsKYX5p DnEUENFvz+PbEZK2ATgp01cVmwLMlZ4uEALSl/PWXsGPzqmSA9zQ+NJPqvnpvNbKU8fx 2bPLYMOdP/KRQUqbOeukLHeHTZCjEbMIEa+ZaO1zUbfA2nABezwZLF24+76NT1akdBBh uETf5aNp6BmH45Ku3WHqnnJCvg+ZlN3ZkmB95EJ2IGpWGKxKht83lb10HOG8hwpZazn7 T14g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OIoEG1aX; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: <linux-crypto-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si4323152ejr.86.2019.11.05.04.38.23; Tue, 05 Nov 2019 04:38:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OIoEG1aX; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388718AbfKEMiW (ORCPT <rfc822;sumit.garg@linaro.org> + 3 others); Tue, 5 Nov 2019 07:38:22 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:33330 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388673AbfKEMiW (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Tue, 5 Nov 2019 07:38:22 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xA5CcHPZ049261; Tue, 5 Nov 2019 06:38:17 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1572957497; bh=ifdXaSh02lwWKojK7/ahJ85aJhHGaIR+HEH3a7yUkO0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=OIoEG1aXwChz6130cj4dsmB5pVBVfRaR2yAUDkLiFFX72L3BEUKR8t7+4iHRp6wwq bqm1+FhyxONspfLH8B3/kOoEpzRApx2mtOmy5Qh2w6oamqy8Jl2aBzBHdAGU0qOmbo 4+UZEiK771xyhKAw3ynxuOduOSjBWYC1pdT3c0fU= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xA5CcHMB023553 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 Nov 2019 06:38:17 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 5 Nov 2019 06:38:01 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 5 Nov 2019 06:38:01 -0600 Received: from sokoban.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id xA5Cc6d2117093; Tue, 5 Nov 2019 06:38:15 -0600 From: Tero Kristo <t-kristo@ti.com> To: <herbert@gondor.apana.org.au>, <davem@davemloft.net>, <linux-crypto@vger.kernel.org> CC: <linux-omap@vger.kernel.org>, <ard.biesheuvel@kernel.org> Subject: [PATCH 5/6] crypto: omap-des: handle NULL cipher request Date: Tue, 5 Nov 2019 14:37:58 +0200 Message-ID: <20191105123759.25053-6-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191105123759.25053-1-t-kristo@ti.com> References: <20191105123759.25053-1-t-kristo@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> X-Mailing-List: linux-crypto@vger.kernel.org |
Series |
[1/6] crypto: omap-aes-gcm: fix failure with assocdata only
|
expand
|
diff --git a/drivers/crypto/omap-des.c b/drivers/crypto/omap-des.c index d1d839164048..7a9491b7b8eb 100644 --- a/drivers/crypto/omap-des.c +++ b/drivers/crypto/omap-des.c @@ -637,6 +637,9 @@ static int omap_des_crypt(struct skcipher_request *req, unsigned long mode) !!(mode & FLAGS_ENCRYPT), !!(mode & FLAGS_CBC)); + if (!req->cryptlen) + return 0; + if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) return -EINVAL;
If no data is provided for DES request, just return immediately. No processing is needed in this case. Signed-off-by: Tero Kristo <t-kristo@ti.com> --- drivers/crypto/omap-des.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki