Re: [Pharo-users] HMAC-SHA512

2018-03-08 Thread Ben Coman
On 8 March 2018 at 12:22, Hernán Morales Durand wrote: > 2018-03-07 23:07 GMT-03:00 Ben Coman : > > > > > > On 8 March 2018 at 02:38, Michael Forster wrote: > >> > >> On Fri, Mar 2, 2018 at 9:40 PM, Ben Coman

Re: [Pharo-users] HMAC-SHA512

2018-03-07 Thread Hernán Morales Durand
2018-03-07 23:07 GMT-03:00 Ben Coman : > > > On 8 March 2018 at 02:38, Michael Forster wrote: >> >> On Fri, Mar 2, 2018 at 9:40 PM, Ben Coman wrote: >> [...] >> > >> > If that is the one available from the Pharo Catalog, when I

Re: [Pharo-users] HMAC-SHA512

2018-03-07 Thread Ben Coman
On 8 March 2018 at 02:38, Michael Forster wrote: > On Fri, Mar 2, 2018 at 9:40 PM, Ben Coman wrote: > [...] > > > > If that is the one available from the Pharo Catalog, when I tried it, it > > used a different api than the libsodium library supplied

Re: [Pharo-users] HMAC-SHA512

2018-03-07 Thread Michael Forster
On Fri, Mar 2, 2018 at 9:40 PM, Ben Coman wrote: [...] > > If that is the one available from the Pharo Catalog, when I tried it, it > used a different api than the libsodium library supplied by Ubuntu 16.04. > > It makes this call out... >crypto_hash_sha512_ref() > but

Re: [Pharo-users] HMAC-SHA512

2018-03-06 Thread Pierce Ng
On Sun, Mar 04, 2018 at 04:00:23PM -0300, Esteban A. Maringolo wrote: > Thank you Pierce, I managed to make play the SHA classes of your > OpenSSL wrapper with the PBKDF2 from Udo's plus HMAC from the > Cryptography package. > I sent you a pull-request >

Re: [Pharo-users] HMAC-SHA512

2018-03-04 Thread Esteban A. Maringolo
2018-03-04 0:45 GMT-03:00 Pierce Ng : > On Fri, Mar 02, 2018 at 11:24:36AM -0300, Esteban A. Maringolo wrote: >> There is a PBKDF2 package made by Udo Schneider, and seems to be >> easily pluggable with a different hashing algorithm, so I'd need a >> SHA512 class. > >

Re: [Pharo-users] HMAC-SHA512

2018-03-03 Thread Pierce Ng
On Fri, Mar 02, 2018 at 11:24:36AM -0300, Esteban A. Maringolo wrote: > There is a PBKDF2 package made by Udo Schneider, and seems to be > easily pluggable with a different hashing algorithm, so I'd need a > SHA512 class. OpenSSL-Pharo wraps the SHA512 in libcrypto. See LcEvpSHA512Test.

Re: [Pharo-users] HMAC-SHA512

2018-03-02 Thread Ben Coman
On 3 March 2018 at 02:22, Hernán Morales Durand wrote: > Hi > > 2018-03-02 11:24 GMT-03:00 Esteban A. Maringolo : > > 2018-03-02 8:54 GMT-03:00 Ben Coman : > > > >> On 2 March 2018 at 10:43, Esteban A. Maringolo

Re: [Pharo-users] HMAC-SHA512

2018-03-02 Thread Hernán Morales Durand
Hi 2018-03-02 11:24 GMT-03:00 Esteban A. Maringolo : > 2018-03-02 8:54 GMT-03:00 Ben Coman : > >> On 2 March 2018 at 10:43, Esteban A. Maringolo wrote: > >>> So after all this what's the recommended way to use HMAC-SHA512 in Pharo

Re: [Pharo-users] HMAC-SHA512

2018-03-02 Thread Esteban A. Maringolo
2018-03-02 8:54 GMT-03:00 Ben Coman : > On 2 March 2018 at 10:43, Esteban A. Maringolo wrote: >> So after all this what's the recommended way to use HMAC-SHA512 in Pharo >> 6? > Libsodium installation instructions... >

Re: [Pharo-users] HMAC-SHA512

2018-03-02 Thread Ben Coman
On 2 March 2018 at 10:43, Esteban A. Maringolo wrote: > Hi Ben, all, > > So after all this what's the recommended way to use HMAC-SHA512 in Pharo 6? > Start poking around here...

Re: [Pharo-users] HMAC-SHA512

2018-03-01 Thread henry
PBKDF2 is in Cryptography yet I think it may hardcore HMAC-SHA256. An implementation of SHA512 in Cryptography be so cool  Sent from ProtonMail Mobile On Thu, Mar 1, 2018 at 21:43, Esteban A. Maringolo wrote: > Hi Ben, all, So after all this what's the recommended way

Re: [Pharo-users] HMAC-SHA512

2018-03-01 Thread Esteban A. Maringolo
Hi Ben, all, So after all this what's the recommended way to use HMAC-SHA512 in Pharo 6? I'd need it in combination with PBKDF2 to replicate this Python call: PBKDF2(password, salt, iterations, macmodule=hmac, digestmodule=hashlib.sha512).read(64) Regards, Esteban A. Maringolo 2017-12-10

Re: [Pharo-users] HMAC-SHA512

2017-12-21 Thread Pierce Ng
On Tue, Dec 12, 2017 at 12:52:11AM +0800, Ben Coman wrote: > I was going to ask why these updates aren't being pushed an OpenSSL repo > shared with Squeak, > since things should not be much different at this low level, but actually > it was hard to > determine which was the original repo. I see...

Re: [Pharo-users] HMAC-SHA512

2017-12-11 Thread Ben Coman
On 11 December 2017 at 20:28, Pierce Ng wrote: > On Mon, Dec 11, 2017 at 12:46:59AM +0800, Ben Coman wrote: > > where the "EVP function provide a high level interface to OpenSSL > > cryptographic functions." > > Hi Ben, > > As it happened, over the weekend I implemented

Re: [Pharo-users] HMAC-SHA512

2017-12-11 Thread Hernán Morales Durand
2017-12-11 10:13 GMT-03:00 Hernán Morales Durand : > 2017-12-11 5:28 GMT-03:00 Ben Coman : >> >> >> On 11 December 2017 at 13:09, Ben Coman wrote: >>> >>> 2017-12-10 6:01 GMT-03:00 Ben Coman : >>> > Can

Re: [Pharo-users] HMAC-SHA512

2017-12-11 Thread Hernán Morales Durand
2017-12-11 5:28 GMT-03:00 Ben Coman : > > > On 11 December 2017 at 13:09, Ben Coman wrote: >> >> 2017-12-10 6:01 GMT-03:00 Ben Coman : >> > Can anyone recommend libraries (native Smalltalk or via FFI) >> > to do generate a

Re: [Pharo-users] HMAC-SHA512

2017-12-11 Thread Ben Coman
On 11 December 2017 at 13:09, Ben Coman wrote: > 2017-12-10 6:01 GMT-03:00 Ben Coman : > > Can anyone recommend libraries (native Smalltalk or via FFI) > > to do generate a HMAC-SHA512 ? > > On 11 December 2017 at 01:30, Hernán Morales Durand < >

Re: [Pharo-users] HMAC-SHA512

2017-12-10 Thread Ben Coman
2017-12-10 6:01 GMT-03:00 Ben Coman : > Can anyone recommend libraries (native Smalltalk or via FFI) > to do generate a HMAC-SHA512 ? On 11 December 2017 at 01:30, Hernán Morales Durand < hernan.mora...@gmail.com> wrote: > Hi Ben, > > I would use NaCl:

Re: [Pharo-users] HMAC-SHA512

2017-12-10 Thread Ben Coman
On 11 December 2017 at 03:08, henry <he...@callistohouse.club> wrote: > > Original Message > Subject: Re: [Pharo-users] HMAC-SHA512 > Local Time: December 10, 2017 1:20 PM > UTC Time: December 10, 2017 6:20 PM > From: s...@stfx.eu > To: Any question ab

Re: [Pharo-users] HMAC-SHA512

2017-12-10 Thread henry
> Original Message > Subject: Re: [Pharo-users] HMAC-SHA512 > Local Time: December 10, 2017 1:20 PM > UTC Time: December 10, 2017 6:20 PM > From: s...@stfx.eu > To: Any question about pharo is welcome <pharo-users@lists.pharo.org> > >> On 1

Re: [Pharo-users] HMAC-SHA512

2017-12-10 Thread Ben Coman
On 10 December 2017 at 18:23, Sven Van Caekenberghe wrote: > > > > On 10 Dec 2017, at 10:01, Ben Coman wrote: > > > > Can anyone recommend libraries (native Smalltalk or via FFI) > > to do generate a HMAC-SHA512 ? > > > > cheers -ben > > Well Pharo itself of

Re: [Pharo-users] HMAC-SHA512

2017-12-10 Thread henry
https://tools.ietf.org/html/rfc7919 - HH > Original Message > Subject: [Pharo-users] HMAC-SHA512 > Local Time: December 10, 2017 4:01 AM > UTC Time: December 10, 2017 9:01 AM > From: b...@openinworld.com > To: Any question about pharo is welcome <pharo-users@lis

Re: [Pharo-users] HMAC-SHA512

2017-12-10 Thread Sven Van Caekenberghe
> On 10 Dec 2017, at 10:01, Ben Coman wrote: > > Can anyone recommend libraries (native Smalltalk or via FFI) > to do generate a HMAC-SHA512 ? > > cheers -ben Well Pharo itself of course ! (HMAC on: SHA256) key: (ByteArray new: 32); digestMessage: #[1 2 3]. SHA256

[Pharo-users] HMAC-SHA512

2017-12-10 Thread Ben Coman
Can anyone recommend libraries (native Smalltalk or via FFI) to do generate a HMAC-SHA512 ? cheers -ben