[Vm-dev] [Cryptography Team] Porting the Cryptography library to use libsodium

rabbit rabbit at callistohouse.org
Sat Sep 10 17:40:08 UTC 2022


Thanks for your advice Ron. I’ll look to SqueakSSL as an example how to integrate the libsodium.so! I was intending providing a separate interface from SqueakSSL, too.

What sort of object would be a SqueakLibSodium?


Have a Good One; Keep it, Light.
Kindly,
rabbit
. .. … ‘…^,^


Sent from Callisto House :: decentralized mobile homeless solutions

> On Sep 10, 2022, at 10:23, Ron Teitelbaum <ron at usmedrec.com> wrote:
> 
> 
> Hi Rob,
> 
> Probably the best thing to do is have a look at SqueakSSL.  It has a method to lookup OS Provided crypto modules.  Marcel is currently supporting it.  I wouldn't suggest adding libsodium to it but instead use it as a framework to support the same smalltalk api and then add to it whatever you believe is needed that you don't get from OpenSSL.  
> 
> Building SqueakLibSodium as a Plugin makes the most sense to me.  It would be nice if we could find a good way to find a way to keep both packages in sync but having them as different packages seems much safer.  I'm happy to be convinced otherwise.
> 
> All the best,
> 
> Ron Teitelbaum
> 
>> On Sat, Sep 10, 2022 at 9:55 AM rabbit <rabbit at callistohouse.org> wrote:
>> Good morning!
>> 
>> I have successfully made and installed libsodium on my box (Ubuntu Jammy). I wish to access functions in the libsodium.so from Squeak, but I am not familiar with FFI (Alien?). 
>> 
>> Another question I have is how to configure the vm to include libsodium.so or does using FFI remove that need? Is it possible to have the VM automatically download, make and install the libsodium.so? My approach is to get it all working then make it work right.
>> 
>> 
>> Have a Good One; Keep it, Light.
>> Kindly,
>> rabbit
>> . .. … ‘…^,^
>> 
>> 
>> Sent from Callisto House :: decentralized mobile homeless solutions
>> _______________________________________________
>> Cryptography mailing list
>> Cryptography at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/cryptography
> _______________________________________________
> Cryptography mailing list
> Cryptography at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/cryptography
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20220910/1f7109a1/attachment.html>


More information about the Vm-dev mailing list