-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
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
> 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
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,
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
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
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
> 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,
-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:
>
>
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
-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
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`"
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
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
14 matches
Mail list logo