From patchwork Sun May 17 10:54:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 6423311 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 EED519F318 for ; Sun, 17 May 2015 10:54:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 061F920480 for ; Sun, 17 May 2015 10:54:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1B4992047B for ; Sun, 17 May 2015 10:54:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752644AbbEQKyY (ORCPT ); Sun, 17 May 2015 06:54:24 -0400 Received: from mail-wg0-f68.google.com ([74.125.82.68]:35852 "EHLO mail-wg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752626AbbEQKyY (ORCPT ); Sun, 17 May 2015 06:54:24 -0400 Received: by wggx12 with SMTP id x12so13291367wgg.3; Sun, 17 May 2015 03:54:22 -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=rTl5MwHIFntAo0yK2v942mcwbA/7MQeJi9lsxqT0zPw=; b=dys2vYyy38jnMzlpsFr7cVfh7hqTVJrzY0KWQPg5l76wVW+d0pXp2n15ClYUgYVpzf hxnfcggeCDnV4WeURGCHemmblVvcLC4k35FF0Go+yxs6peXamR58AGPpWuiMQkxDxS3O /Mn0oSijKR5GhPXV80XYSmkPDgNjYJtlBcNp8ObJ6NKTlFuR1PUbQKUSsPvT9zjDcYHF TSRxu1gg6lJLe/Iii8YAdUou5KwXq/KYJMVhlP1gUunnHUcux++lXAKaY4yspK0l3zWw jaSOcy39+CyLB9H/UNkNmABFWSlyMk5RfNIMELZZLH7U35fBbtM1MsJUaTurQR8dHBCw 1JnA== X-Received: by 10.181.11.193 with SMTP id ek1mr12737544wid.15.1431860062561; Sun, 17 May 2015 03:54:22 -0700 (PDT) Received: from Red.local (ANice-651-1-428-5.w83-201.abo.wanadoo.fr. [83.201.252.5]) by mx.google.com with ESMTPSA id ny7sm7070464wic.11.2015.05.17.03.54.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 May 2015 03:54:21 -0700 (PDT) From: LABBE Corentin To: herbert@gondor.apana.org.au, davem@davemloft.net, ralf@linux-mips.org, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, aaro.koskinen@iki.fi Cc: linux-crypto@vger.kernel.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, LABBE Corentin Subject: [PATCH 1/6] crypto: md5: add MD5 initial vectors Date: Sun, 17 May 2015 12:54:12 +0200 Message-Id: <1431860057-5232-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=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 This patch simply adds the MD5 IV in the md5 header. Signed-off-by: LABBE Corentin --- include/crypto/md5.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/crypto/md5.h b/include/crypto/md5.h index 65f299b..146af82 100644 --- a/include/crypto/md5.h +++ b/include/crypto/md5.h @@ -8,6 +8,11 @@ #define MD5_BLOCK_WORDS 16 #define MD5_HASH_WORDS 4 +#define MD5_H0 0x67452301UL +#define MD5_H1 0xefcdab89UL +#define MD5_H2 0x98badcfeUL +#define MD5_H3 0x10325476UL + struct md5_state { u32 hash[MD5_HASH_WORDS]; u32 block[MD5_BLOCK_WORDS];