Jens Alfke

Results 86 comments of Jens Alfke

Encrypted streams would be very good to have. Sodium's crypto_stream isn't really a stream, however, it's a sequence of messages, and the encrypting and decrypting parties have to agree on...

This looks reasonable to me (and similar to the libSodium API that I recently built a byte-oriented stream around.) I assume the behavior of `crypto_stream_rekey` is such that both the...

For what it's worth, my network-stream code is in my secret-handshake-cpp repo. - [source file](https://github.com/snej/secret-handshake-cpp/blob/main/src/SecretStream.cc) - [header file](https://github.com/snej/secret-handshake-cpp/blob/main/include/SecretStream.hh) There are two layers: CryptoBox works with chunks of encrypted data, reading/writing...

I haven't used this code in years, and not in production apps.

Sounds like you haven't set up the Xcode search paths so the project can find MYUtilities. See "How To Build It" in https://bitbucket.org/snej/mycrypto/wiki/Setup .

It looks like there's incorrectly a hardcoded path in the compile settings. I'll try to fix this soon, by switching to using a Git submodule for MYUtilities. In the meantime...

Sorry :cry: I haven't tried doing client-side cert stuff in several years (though I may need to soon), so I'm not sure if there's newer public API that makes this...

You could also try asking on Apple's macnetworkprog mailing list. DTS guru Quinn is very responsive to questions there.

To be honest I can't remember why I did that. Taking out the retain/release would definitely fix the deadlock since the object wouldn't get dealloced on the internal socket thread...

Looks like a deadlock in CFSocket between threads 1 and 6. I'm surprised to see the MYNetwork code running on the CFSocket thread — apparently the CFSocket was holding the...