<div dir="auto"><div dir="auto"><span style="font-size:12.8px">Re: performance</span><div dir="auto" style="font-size:12.8px">In my testing libssh is 20-25% slower than libssh2. I can publish more about this figure soon but not only is it slower, it consumes more cycles to get the same job done.</div><div dir="auto" style="font-size:12.8px"><br></div><div dir="auto" style="font-size:12.8px">Another thing to note is that libssh does not fully implement async/nonblocking IO for SCP and SFTP, making it an incomplete API.<div dir="auto"><br></div><div dir="auto">Additionally while I'd like to provide patches for such features I am not able to sign my commits, as I will not drop my pseudonym simply for someone else's benefit.</div></div><div dir="auto" style="font-size:12.8px"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 6 Jan 2022, 3:18 am Will Cosgrove via libssh2-devel, <<a href="mailto:libssh2-devel@lists.haxx.se" target="_blank" rel="noreferrer">libssh2-devel@lists.haxx.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, we use SecureZeroMemory() and memset_s().<br>
<br>
Will<br>
<br>
> On Jan 5, 2022, at 7:05 AM, Andreas Schneider <<a href="mailto:asn@cryptomilk.org" rel="noreferrer noreferrer" target="_blank">asn@cryptomilk.org</a>> wrote:<br>
> <br>
> On Tuesday, January 4, 2022 6:05:05 PM CET Will Cosgrove via libssh2-devel <br>
> wrote:<br>
>> We do zero some sensitive data, but could be reviewed for completeness.<br>
> <br>
> I don't know how you exactly zero sensitive data, but be aware that if you do:<br>
> <br>
> memset()<br>
> free()<br>
> <br>
> The optimizer will optimize away the memset(). You either use explicit_bzero() <br>
> or protect the memset() with additional assembler code. There is also <br>
> memset_s() or memset_secure() on some platforms.<br>
> <br>
> <br>
> Andreas<br>
> <br>
> -- <br>
> Andreas Schneider <a href="mailto:asn@cryptomilk.org" rel="noreferrer noreferrer" target="_blank">asn@cryptomilk.org</a><br>
> GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D<br>
> <br>
> <br>
<br>
-- <br>
libssh2-devel mailing list<br>
<a href="mailto:libssh2-devel@lists.haxx.se" rel="noreferrer noreferrer" target="_blank">libssh2-devel@lists.haxx.se</a><br>
<a href="https://lists.haxx.se/listinfo/libssh2-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.haxx.se/listinfo/libssh2-devel</a><br>
</blockquote></div></div>