From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 8.mo6.mail-out.ovh.net ([178.33.42.204]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YVgfO-0000sQ-Mv for barebox@lists.infradead.org; Wed, 11 Mar 2015 13:27:20 +0000 Received: from mail179.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo6.mail-out.ovh.net (Postfix) with SMTP id D5C58FFA0D8 for ; Wed, 11 Mar 2015 14:26:47 +0100 (CET) Date: Wed, 11 Mar 2015 14:26:34 +0100 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20150311132634.GN30554@ns203013.ovh.net> MIME-Version: 1.0 Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 0/8] add sha384/sha512 and hmac support To: barebox@lists.infradead.org HI, this will allow to add later secure boot support This the first patch series of some mores To add - AES with CBC and XTS - RSA with AS1N and X509 - Key store support - 2 customs software support - 1 hardware secure boot support - a generic API to handle secure boot without specific user interaction v2: switch hmac to generic digest as hmac(%s) such as hmac(sha256) by introducing set_key call back for the command use -h to pass the key The RSA_SIGN support will be add as a digest too Best Regards, J. The following changes since commit a1a5a212985053fac141975f6f6cd8e30051b401: Documentation: handle missing group declaration (2015-03-10 15:04:23 +0100) are available in the git repository at: git://git.jcrosoft.org/barebox.git delivery/hmac for you to fetch changes up to b92e8460facf9bc65ec511a44a305e4273a31d70: command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512 (2015-03-11 18:45:59 +0800) ---------------------------------------------------------------- Jean-Christophe PLAGNIOL-VILLARD (8): digest: move digest.c to crypto digest: introduce digest_{init/update/final/length} digest: make it multi-instance crypto: add sha384 & sha512 support command: add sha384sum and sha512sum support password: add support for sha512 digest: add HMAC support for md5, sha1, sha224, sha256, sha384, sha512 command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512 commands/Kconfig | 24 +++++++++++++ commands/digest.c | 81 ++++++++++++++++++++++++++++++++++++++---- common/Kconfig | 4 +++ common/Makefile | 1 - common/password.c | 33 +++++++++-------- crypto/Kconfig | 9 +++++ crypto/Makefile | 4 +++ {common => crypto}/digest.c | 64 +++++++++++++++++++++++++-------- crypto/hmac.c | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ crypto/internal.h | 15 ++++++++ crypto/md5.c | 42 ++++++++++------------ crypto/sha1.c | 42 ++++++++++------------ crypto/sha2.c | 92 +++++++++++++++++++++++------------------------ crypto/sha4.c | 361 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ include/digest.h | 50 +++++++++++++++++++++++--- 15 files changed, 815 insertions(+), 136 deletions(-) rename {common => crypto}/digest.c (68%) create mode 100644 crypto/hmac.c create mode 100644 crypto/internal.h create mode 100644 crypto/sha4.c Best Regards, J. _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox