Re: [PATCH 8/8] command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

2015-03-16 Thread Sascha Hauer
On Mon, Mar 16, 2015 at 12:01:32PM +0100, Jan Lübbe wrote: > On Mi, 2015-03-11 at 17:53 +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > diff --git a/include/digest.h b/include/digest.h > > index a26848c..fd47a7e 100644 > > --- a/include/digest.h > > +++ b/include/digest.h > > @@ -54,11 +54,14

Re: [PATCH 8/8] command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

2015-03-16 Thread Jean-Christophe PLAGNIOL-VILLARD
On 12:01 Mon 16 Mar , Jan Lübbe wrote: > On Mi, 2015-03-11 at 17:53 +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > diff --git a/include/digest.h b/include/digest.h > > index a26848c..fd47a7e 100644 > > --- a/include/digest.h > > +++ b/include/digest.h > > @@ -54,11 +54,14 @@ struct digest

Re: [PATCH 8/8] command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

2015-03-16 Thread Jan Lübbe
On Mi, 2015-03-11 at 17:53 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > diff --git a/include/digest.h b/include/digest.h > index a26848c..fd47a7e 100644 > --- a/include/digest.h > +++ b/include/digest.h > @@ -54,11 +54,14 @@ struct digest *digest_alloc(char* name); > void digest_free(struct di

[PATCH 8/8] command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
pass the key via -h param barebox@barebox sandbox:/ sha256sum -h test /dev/fd0 c297473e9bb221c5dc51d47ad75c76095f1bdc4ca9dff1d5931c2e22bf11a0de /dev/fd0 0x ... 0x use the same idea as openssl command $ openssl dgst -sha256 -hmac "test" TODO HMAC-SHA256(TODO)= c297473e9

[PATCH 8/8] command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
pass the key via -h param barebox@barebox sandbox:/ sha256sum -h test /dev/fd0 c297473e9bb221c5dc51d47ad75c76095f1bdc4ca9dff1d5931c2e22bf11a0de /dev/fd0 0x ... 0x use the same idea as openssl command $ openssl dgst -sha256 -hmac "test" TODO HMAC-SHA256(TODO)= c297473e9