On 06:40 Wed 11 Mar , Sascha Hauer wrote: > On Tue, Mar 10, 2015 at 03:28:16PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagn...@jcrosoft.com> > > --- > > common/digest.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ > > crypto/md5.c | 1 + > > crypto/sha1.c | 1 + > > crypto/sha2.c | 2 ++ > > crypto/sha4.c | 2 ++ > > include/digest.h | 16 ++++++++++++++++ > > 6 files changed, 73 insertions(+) > > > > diff --git a/common/digest.c b/common/digest.c > > index 89af862..7c09ce2 100644 > > --- a/common/digest.c > > +++ b/common/digest.c > > @@ -102,6 +102,57 @@ void digest_free(struct digest *d) > > } > > EXPORT_SYMBOL_GPL(digest_free); > > > > +void digest_hmac_init(struct digest *d, const unsigned char *key, > > + size_t keylen) > > +{ > > We should rather implement hmac just like the other digests. That is, > this function should be digest->init and the key would have to be passed > via the same mechanism used in the kernel: a digest->setkey why not
so we integrate the RSA_SIGN as a digest Best Regards, J. > > Sascha > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox