Re: libsodium on LiveCode?

2018-02-21 Thread Brian Milby via use-livecode
Here is a paragraph from scuttlebutt.nz which documents what I’m looking to interface with: In nacl both types of keys are used, signing keys are ed25519 keys, and exchange keys are curve25519 keys. sign uses ed25519 keys, and scalarmult takes curve25519. box takes two exchange keys, and then uses

Re: libsodium on LiveCode?

2018-02-21 Thread Charles Warwick via use-livecode
What type of key do you need to generate? > On 21 Feb 2018, at 2:50 pm, Brian Milby via use-livecode > wrote: > > Had not seen the tsNet handler, but that is an RSA key. Scuttlebutt uses a > different key type. There are other useful things in the library. There is > some overlap, but enough di

Re: libsodium on LiveCode?

2018-02-21 Thread Bob Sneidar via use-livecode
Sounds like my day yesterday. Hope you have a breakthrough today! Bob S > On Feb 20, 2018, at 20:12 , Monte Goulding via use-livecode > wrote: > >> Monte, you are awesome! > > Cheers! Not feeling so awesome today… been banging my head on something all > day and getting nowhere :-( > _

Re: libsodium on LiveCode?

2018-02-20 Thread Brian Milby via use-livecode
Had not seen the tsNet handler, but that is an RSA key. Scuttlebutt uses a different key type. There are other useful things in the library. There is some overlap, but enough different to make it worthy of an effort. I’ll need to take a look at the MS links. Hopefully the rest of today and tomorr

Re: libsodium on LiveCode?

2018-02-20 Thread Monte Goulding via use-livecode
> On 21 Feb 2018, at 2:57 pm, Brian Milby wrote: > > Monte, you are awesome! Cheers! Not feeling so awesome today… been banging my head on something all day and getting nowhere :-( > > With your help I was able to generate a key pair using libSodium. That means > that we are one huge step c

Re: libsodium on LiveCode?

2018-02-20 Thread Brian Milby via use-livecode
Monte, you are awesome! With your help I was able to generate a key pair using libSodium. That means that we are one huge step closer to asymmetric key generation and use within LC. For each tool chain they provided a static and dynamic directory. The static just contained a .lib file. The dynami

Re: libsodium on LiveCode?

2018-02-19 Thread Monte Goulding via use-livecode
> On 20 Feb 2018, at 4:44 pm, Brian Milby via use-livecode > wrote: > > I was finally able to get the init to return a 0 or 1 (success or already > initialized). I switched to `code\x86-win` - not sure if that had any > effect based on the other major change I made… I think it will find bot

Re: libsodium on LiveCode?

2018-02-19 Thread Brian Milby via use-livecode
I was finally able to get the init to return a 0 or 1 (success or already initialized). I switched to `code\x86-win` - not sure if that had any effect based on the other major change I made... Turns out I was using the wrong version of the dll. If anyone else wants to try, here's the path that

Re: libsodium on LiveCode?

2018-02-19 Thread Monte Goulding via use-livecode
Hi Brian Looks like there’s an issues in the code folder stuff. At the moment it will look for `code\x86-win` when deploying a standalone it seems. I will patch it in a bit to `code\x86-win32`. By the looks of the IDE extension loading code it will be actually work for win or win32 (it does a f

Re: libsodium on LiveCode?

2018-02-19 Thread Monte Goulding via use-livecode
> On 20 Feb 2018, at 8:56 am, Brian Milby via use-livecode > wrote: > > Made my first attempt to just initialize the library and something is not > working: > > Message execution error: > Error description: LCB Error in file > C:/Users/milby/Dropbox/LiveCode/Downloads/lcSodium/sodium.lcb at l

Re: libsodium on LiveCode?

2018-02-19 Thread Monte Goulding via use-livecode
It probably depends on how these are used as to what you want here, however, if all of these are data coming from LCS then I’d suggest you want your LCB handlers to take in Data and then use something like: __safe foreign handler MCDataGetBytePtr(in pData as Data) returns Pointer binds to "” __

Re: libsodium on LiveCode?

2018-02-19 Thread Brian Milby via use-livecode
Made my first attempt to just initialize the library and something is not working: Message execution error: Error description: LCB Error in file C:/Users/milby/Dropbox/LiveCode/Downloads/lcSodium/sodium.lcb at line 34: unable to load foreign library Hint: runtime Here's all that the LCB does: pr

Re: libsodium on LiveCode?

2018-02-18 Thread Brian Milby via use-livecode
Looks like most of the functions use OpenSSL. Started looking at the headers and there are over 650 function calls in libsodium. Got bogged down pretty fast though. Trying to look at some type mappings and am a little confused on how to do the following: unsigned char *pk const unsigned char *s

Re: libsodium on LiveCode?

2018-02-18 Thread Mark Wieder via use-livecode
On 02/17/2018 10:53 AM, Brian Milby via use-livecode wrote: I found a thread from a year ago that mentions libsodium: http://runtime-revolution.278305.n4.nabble.com/SHA1-cracked-What-are-the-chances-this-will-be-addressed-in-LC-td4712554i20.html I was wondering if anyone had taken a look at what

libsodium on LiveCode?

2018-02-17 Thread Brian Milby via use-livecode
I found a thread from a year ago that mentions libsodium: http://runtime-revolution.278305.n4.nabble.com/SHA1-cracked-What-are-the-chances-this-will-be-addressed-in-LC-td4712554i20.html I was wondering if anyone had taken a look at what it would take to build something usable within LiveCode? My