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 wrote: > >> [...] > >> > > >> > If that is the one available from the Pharo Catalog, w

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 tried it, it >> > used a different api than the libsodium library sup

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 by Ubuntu 16.04. > > > > It makes this call ou

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 Ubuntu libsodium library

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. > > OpenSSL-Pharo wraps the SHA512

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. https:/

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 > wrote: > > > >>> So after all this what's the recommended way to use HMAC-SHA512 i

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 >>> 6? > >> Libsodium installation instructions... >> https://gith

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... > https://github.com/Traadh/bittrex Why did you create BittrexLibsodium libr

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... https://github.com/Traadh/bittrex/blob/master/src/Bittrex.package/BittrexLibsodium.class/class/crypto_auth_hmacsha512

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 to use HMAC-SHA512 > in

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 6:01

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 the Pharo wrappers for the

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 anyone recommend libraries (native Smalltalk or via FFI) >>> > to do generate a HMAC-SHA512 ? >

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 HMAC-SHA512 ? >> >> On 11 December 2017 at 01:30, Hernán Morales Durand >>

Re: [Pharo-users] HMAC-SHA512

2017-12-11 Thread Pierce Ng
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 the Pharo wrappers for the EVP_DigestSign* and EVP_DigestVerify* APIs. It is straightfo

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 < > hernan.mora...@gmail.com> wrote: > >> Hi Ben, >> >

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: http://cr.yp.to/highspeed/coolnacl-20120725.

Re: [Pharo-users] HMAC-SHA512

2017-12-10 Thread Ben Coman
On 11 December 2017 at 03:08, henry 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 about pharo is welcome > >

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 > >> On 10 Dec 2017, at 17:46, Ben Coman b...@openi

Re: [Pharo-users] HMAC-SHA512

2017-12-10 Thread Sven Van Caekenberghe
> On 10 Dec 2017, at 17:46, Ben Coman wrote: > > Thanks Sven. Its interesting to trace that through to put other stuff I've > read about HMAC into perspective. > However SHA256 != SHA512 which is a defined requirement of the site I'm > accessing. I was too quick. There is also http://www.sa

Re: [Pharo-users] HMAC-SHA512

2017-12-10 Thread Hernán Morales Durand
Hi Ben, I would use NaCl: http://cr.yp.to/highspeed/coolnacl-20120725.pdf which you can install from the Pharo Project Catalog in Pharo 6.x Cheers, Hernán 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 ? > >

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 course ! > (HMAC on: SHA256) > ke

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 > > Can an

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 new hmac key: (ByteA

[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