From patchwork Mon Jul 6 11:37:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 6722181 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BEC359F380 for ; Mon, 6 Jul 2015 11:37:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D7EC920721 for ; Mon, 6 Jul 2015 11:37:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 101DB2071C for ; Mon, 6 Jul 2015 11:37:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752996AbbGFLhs (ORCPT ); Mon, 6 Jul 2015 07:37:48 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:38581 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752725AbbGFLhr (ORCPT ); Mon, 6 Jul 2015 07:37:47 -0400 Received: by wibdq8 with SMTP id dq8so150429119wib.1; Mon, 06 Jul 2015 04:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=4/Ht1ULNa47Pqymu/RgaTAYLYgI1XoyGBI+MBrxxf0M=; b=bigXEnOEqkLbelAxdv5rMaDQINR4bcHWf9XgocoFqLOEzpvhePgsEn5iPevN0lKTRd da5CX/kzt65zy8D0CkM5XFXtui7KZlF+vxp8v/nKbu2DiheaAEHJcS8F0/IjrkmvDOGm PoOYH0KjA+mesZfhMv/oms0HWOfLgOrtD3pRumPwykVR9x2H2V0moorEyeSG0kgcWMX0 8oZquWKVG4KfKWYLpX7cbcs1DLTW2/OM36/tDmjn/UBfw2+6R9alHw2YEtlah5GqA8pl 6Ty/6G/v0bgpGW9aVlPIePuc3lal0hF5tEoXR/0hbFuOV2i86DlgQfWLDtiHY/O16Fh8 ZF5Q== X-Received: by 10.180.23.97 with SMTP id l1mr15465137wif.94.1436182666702; Mon, 06 Jul 2015 04:37:46 -0700 (PDT) Received: from Red.local (ANice-651-1-256-42.w86-205.abo.wanadoo.fr. [86.205.160.42]) by mx.google.com with ESMTPSA id ma15sm46781830wic.20.2015.07.06.04.37.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jul 2015 04:37:45 -0700 (PDT) From: LABBE Corentin To: herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, LABBE Corentin Subject: [PATCH] crypto: testmgr - add a chunking test for cbc(aes) Date: Mon, 6 Jul 2015 13:37:33 +0200 Message-Id: <1436182653-32683-1-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.3.6 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-7.5 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 All tests for cbc(aes) use only blocks of data with a multiple of 4. This test adds a test with some odd SG size. Signed-off-by: LABBE Corentin --- crypto/testmgr.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crypto/testmgr.h b/crypto/testmgr.h index 868edf1..b052555 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h @@ -14504,6 +14504,9 @@ static struct cipher_testvec aes_cbc_enc_tv_template[] = { .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" "\x27\x08\x94\x2d\xbe\x77\x18\x1a", .rlen = 16, + .also_non_np = 1, + .np = 8, + .tap = { 3, 2, 3, 2, 3, 1, 1, 1 }, }, { .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", @@ -14723,6 +14726,9 @@ static struct cipher_testvec aes_cbc_dec_tv_template[] = { .ilen = 16, .result = "Single block msg", .rlen = 16, + .also_non_np = 1, + .np = 8, + .tap = { 3, 2, 3, 2, 3, 1, 1, 1 }, }, { .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",