RE: OpenSSL command line HMAC

2009-02-09 Thread Young, Alistair
-Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dave Thompson Sent: 07 February 2009 01:59 To: openssl-users@openssl.org Subject: RE: OpenSSL command line HMAC > > Without the quotes, if my hmac key contains a space

Re: OpenSSL command line HMAC

2009-02-09 Thread Steffen DETTMER
Hi all! * Dave Thompson wrote on Fri, Feb 06, 2009 at 20:59 -0500: > > Adding the quotes didn't work because, if I understand things > > correctly, the notion of quotes (or escaping characters with \) > > is a shell concept - hence my attempt to force the command to run > > under a shell. > > > Th

RE: OpenSSL command line HMAC

2009-02-06 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Young, Alistair > Sent: Friday, 06 February, 2009 05:17 > -Original Message- > From: owner-openssl-us...@openssl.org On Behalf Of Dave Thompson > Sent: 06 February 2009 00:29 > > > But, to complicate things further, I'm trying to invoke

RE: OpenSSL command line HMAC

2009-02-06 Thread Young, Alistair
Hi Steffen! -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Steffen DETTMER Sent: 06 February 2009 13:33 To: Everyone Subject: Re: OpenSSL command line HMAC > Hi all, Hi Alistair! > * Young, Alistair wrote on Fri,

Re: OpenSSL command line HMAC

2009-02-06 Thread Michael S. Zick
On Fri February 6 2009, Steffen DETTMER wrote: > Hi all, Hi Alistair! > > * Young, Alistair wrote on Fri, Feb 06, 2009 at 10:16 +: > > Ultimately I settled on the use of a shell script to act as an > > intermediary: > > > > #!/bin/bash > > If you can use bash you could pass the key in \xNN f

Re: OpenSSL command line HMAC

2009-02-06 Thread Steffen DETTMER
Hi all, Hi Alistair! * Young, Alistair wrote on Fri, Feb 06, 2009 at 10:16 +: > Ultimately I settled on the use of a shell script to act as an > intermediary: > > #!/bin/bash If you can use bash you could pass the key in \xNN form for $'\xNN' to avoid special characters like blanks and contr

RE: OpenSSL command line HMAC

2009-02-06 Thread Young, Alistair
Hi Dave - thanks for your reply! -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dave Thompson Sent: 06 February 2009 00:29 To: openssl-users@openssl.org Subject: RE: OpenSSL command line HMAC > > From: owner-open

RE: OpenSSL command line HMAC

2009-02-05 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Young, Alistair > Sent: Wednesday, 04 February, 2009 09:52 > I seem to have some success if I place quotes around the [Linux] command line: > $ cat message.bin | openssl dgst -sha256 -hmac "`cat key.bin`" -binary > mac.bin (Don't need cat here,

RE: OpenSSL command line HMAC

2009-02-05 Thread Young, Alistair
-Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dr. Stephen Henson Sent: 05 February 2009 12:29 To: openssl-users@openssl.org Subject: Re: OpenSSL command line HMAC > On Thu, Feb 05, 2009, Young, Alistair wrote: > >

Re: OpenSSL command line HMAC

2009-02-05 Thread Dr. Stephen Henson
On Thu, Feb 05, 2009, Young, Alistair wrote: > > Thanks Steve. Unfortunately we need to something with FIPS validation > behind it, so the standard Java crypto libraries (or something like > BouncyCastle) are out. It also means that we can't modify the OpenSSL > source so would have to add wrap

RE: OpenSSL command line HMAC

2009-02-05 Thread Young, Alistair
-Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dr. Stephen Henson Sent: 04 February 2009 15:20 To: openssl-users@openssl.org Subject: Re: OpenSSL command line HMAC > On Wed, Feb 04, 2009, Young, Alistair wrote: > &g

Re: OpenSSL command line HMAC

2009-02-04 Thread Dr. Stephen Henson
On Wed, Feb 04, 2009, Young, Alistair wrote: > Well, having been trying this for a while, I'm having serious problems using > this on a Linux platform. > > I seem to have some success if I place quotes around the command line: > > $ cat message.bin | openssl dgst -sha256 -hmac "`cat key.bin`"

RE: OpenSSL command line HMAC

2009-02-04 Thread Young, Alistair
closer. Thanks, Alistair. From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Young, Alistair Sent: 30 January 2009 09:31 To: openssl-users@openssl.org Subject: OpenSSL command line HMAC Hi, To generate an HMAC key u

OpenSSL command line HMAC

2009-01-30 Thread Young, Alistair
Hi, To generate an HMAC key using SHA-256, I can issue the following command: openssl dgst -sha256 -hmac -binary < message.bin > mac.bin I realised (eventually!) that the key is not supplied as a hex string (0a0b34e5.. etc.) but in a binary format. Obviously this leads to some fairly unplea