[Cryptography Team] [Vm-dev] Smalltalk code calling SHA2Plugin

Robert Withers robert.withers at pm.me
Sat Jul 18 11:02:33 UTC 2020


Hey Chris,

Did this approach fix your issues?

Kindly,
rabbit

On 7/13/20 11:46 PM, Robert wrote:

> Hi Chris,
>
> You should only need to run #3, which will load Registers. Hasher was from before we integrated the code into ProCrypto-1-1-1.
>
> Installer as project: ‘Cryptography’; install: ‘ProCrypto-1-1-1’.
>
> Then to load tests run:
>
> Installer as project: ‘Cryptography’; install: ‘ProCryptoTests-1-1-1’.
>
> Let us know if any tests fail and we can look into it.
>
> Kindly,
> Robert
>
> On Mon, Jul 13, 2020 at 19:52, Chris Muller <asqueaker at gmail.com> wrote:
>
>> Hi Robert, hi Levente,
>>
>> I would like to utilize the latest crypto in my next project, would
>> you help me with the current proper way to configure my image, and my
>> vm with plugins?
>>
>> (image)
>> In going back through some recent messages on the mailing lists and
>> instructions on squeaksource.com, I came across these incantations as
>> current ways to load the image code:
>>
>> 1) Installer ss
>> project: 'Registers';
>> install: 'Registers';
>> project: 'Hasher';
>> install: 'HAHasher-Core';
>> install: 'HAHasher-Tests'.
>>
>> 2) Installer ss
>> project: 'Registers';
>> install: 'Registers';
>> project: 'Hasher';
>> install: 'HAHasher'.
>>
>> 3) Installer ss project: 'Cryptography'; install: 'ProCrypto-1-1-1'.
>>
>> I like these one-click-for-everything scripts for crypto -- it
>> satisfies the good use-case of development and education, and also
>> knowing all what's available to Squeak in one glance. My app's build
>> script can cherry pick what it needs, but any advice on which starting
>> point above or otherwise is appreciated.
>>
>> (vm)
>> I put the SHA2Plugin.so from Roberts dropbox in the lib directory,
>> and it shows up as a "Loaded VM Module" in About Squeak. But, three
>> of the "WithPluginTest"'s are failing. My OS is linux_x64. I don't
>> know how to build Squeak or plugins from sources, but including it in
>> the standard precompiled vm would be so pertinent for Squeak today,
>> IMO. SHA256 is one of the ones I'm going to need, so would be nice to
>> have it work via plugin. I assume it's a lot faster?
>>
>> Thanks,
>> Chris
>>
>> On Tue, Mar 10, 2020 at 3:52 PM Levente Uzonyi [<leves at caesar.elte.hu>](mailto:leves at caesar.elte.hu) wrote:
>>>
>>>
>>> Hi Robert,
>>>
>>> With yesterday's help from Eliot and Nicolas, the SHA2Plugin is ready:
>>> http://squeaksource.com/Cryptography/CryptographyPlugins-ul.19.mcz
>>> The updated version of the image-side code is available in the Hasher
>>> repository. You can install it with:
>>>
>>> Installer ss
>>> project: 'Registers';
>>> install: 'Registers';
>>> project: 'Hasher';
>>> install: 'HAHasher-Core';
>>> install: 'HAHasher-Tests'.
>>>
>>>
>>> Levente
>>>
>>>
>>> On Tue, 10 Mar 2020, Levente Uzonyi wrote:
>>>
>>> >
>>> > Hi Robert,
>>> >
>>> > Please have a look at:
>>> > http://lists.squeakfoundation.org/pipermail/squeak-dev/2020-March/207851.html
>>> > It answers all your questions.
>>> >
>>> >
>>> > Levente
>>> >
>>> > On Tue, 10 Mar 2020, Robert wrote:
>>> >
>>> >> Hi Levente,
>>> >>
>>> >> I got the SHA2Plugin built and deployed to my Crypto plugins folder. Now I
>>> > am trying to figure out how to call it from SHA512.
>>> >>
>>> >> https://www.dropbox.com/sh/yhv253rwrhq0q5p/AAB7PKP2KPiGpDnIyule2h_Ia?dl=0
>>> >>
>>> >> [plugin] I looked at it and please understand I think the classes you wrote
>>> > and the framework is really quite nice. I am thrilled we found SHA512! It's
>>> > impressive that your one plugin can handle a number of hash functions!
>>> >> Now all I need is to find the code that calls the SHA2Plugin. Levente,
>>> > would you share that code, please?
>>> >>
>>> >> Kindly,
>>> >> Robert
>>> >>
>>> >>
>>> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/cryptography/attachments/20200718/2e317f63/attachment.html>


More information about the Cryptography mailing list