<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I took a look at SqueakSSL and there is a SqueakVM Plugin built,
      with platform code, a Cross header for the Plugin and source
      generated from the image. This plugin has a tight interface (only
      about 8 methods) which call the SSL OS library.</p>
    <p>As the protocol interface for libsodium is likely quite sizeable,
      I think I would prefer adapting to use FFI to talk to the shared
      object lib, libsodium.so. I cannot find an example using FFI, in
      fadct I do not think it is loaded. <br>
    </p>
    <p>Is it possible, you can point me to an example of using FFI to
      talk to a shared lib?</p>
    <p>Thanks!<br>
      rabbit<br>
    </p>
    <div class="moz-cite-prefix">On 9/10/22 13:40, rabbit wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:B2885854-1AEB-412B-AAE0-F83ACE3C3598@callistohouse.org">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      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.
      <div><br>
      </div>
      <div>What sort of object would be a SqueakLibSodium?<br>
        <br>
        <div dir="ltr"><br>
          <div>
            <div id="protonmail_signature_block"
              class="protonmail_signature_block" style="outline: none;">
              <div style="outline: none;">
                <div style="outline: none;"><span
                    style="background-color: rgba(255, 255, 255, 0);">Have
                    a Good One; Keep it, Light.</span></div>
                <div style="outline: none;"><span
                    style="background-color: rgba(255, 255, 255, 0);">Kindly,<br>
                  </span></div>
                <span style="background-color: rgba(255, 255, 255, 0);">rabbit<br>
                  . .. … ‘…^,^</span></div>
            </div>
            <div class="signature_br" style="outline: none;"><span
                style="background-color: rgba(255, 255, 255, 0);"><br>
              </span></div>
            <div class="signature_br" style="outline: none;"><span
                style="background-color: rgba(255, 255, 255, 0);"><br>
              </span></div>
            <div id="protonmail_mobile_signature_block" style="outline:
              none; min-height: 40px;">
              <div style="outline: none;"><span style="background-color:
                  rgba(255, 255, 255, 0);">Sent from Callisto House ::
                  decentralized mobile homeless solutions</span></div>
            </div>
          </div>
        </div>
        <div dir="ltr"><br>
          <blockquote type="cite">On Sep 10, 2022, at 10:23, Ron
            Teitelbaum <a class="moz-txt-link-rfc2396E" href="mailto:ron@usmedrec.com"><ron@usmedrec.com></a> wrote:<br>
            <br>
          </blockquote>
        </div>
        <blockquote type="cite">
          <div dir="ltr">
            <div dir="ltr">
              <div class="gmail_default" style="font-size:small">Hi Rob,</div>
              <div class="gmail_default" style="font-size:small"><br>
              </div>
              <div class="gmail_default" style="font-size:small">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.  </div>
              <div class="gmail_default" style="font-size:small"><br>
              </div>
              <div class="gmail_default" style="font-size:small">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.</div>
              <div class="gmail_default" style="font-size:small"><br>
              </div>
              <div class="gmail_default" style="font-size:small">All the
                best,</div>
              <div class="gmail_default" style="font-size:small"><br>
              </div>
              <div class="gmail_default" style="font-size:small">Ron
                Teitelbaum</div>
            </div>
            <br>
            <div class="gmail_quote">
              <div dir="ltr" class="gmail_attr">On Sat, Sep 10, 2022 at
                9:55 AM rabbit <<a
                  href="mailto:rabbit@callistohouse.org" target="_blank"
                  moz-do-not-send="true" class="moz-txt-link-freetext">rabbit@callistohouse.org</a>>
                wrote:<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">Good morning!<br>
                <br>
                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?). <br>
                <br>
                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.<br>
                <br>
                <br>
                Have a Good One; Keep it, Light.<br>
                Kindly,<br>
                rabbit<br>
                . .. … ‘…^,^<br>
                <br>
                <br>
                Sent from Callisto House :: decentralized mobile
                homeless solutions<br>
                _______________________________________________<br>
                Cryptography mailing list<br>
                <a href="mailto:Cryptography@lists.squeakfoundation.org"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">Cryptography@lists.squeakfoundation.org</a><br>
                <a
href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/cryptography"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true" class="moz-txt-link-freetext">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/cryptography</a><br>
              </blockquote>
            </div>
            <span>_______________________________________________</span><br>
            <span>Cryptography mailing list</span><br>
            <span><a class="moz-txt-link-abbreviated" href="mailto:Cryptography@lists.squeakfoundation.org">Cryptography@lists.squeakfoundation.org</a></span><br>
            <span><a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/cryptography">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/cryptography</a></span><br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <div class="moz-signature">-- <br>
      <div>Have a good one; keep it, light.</div>
      <div>Kindly,</div>
      <div>rabbit</div>
      <div>. .. … ‘…^,^</div>
      <br>
      <br>
      <div>Sent from Callisto House :: decentralized mobile homeless
        solutions</div>
    </div>
  </body>
</html>