38 points · by quotz · 6y ago · 51 comments
Generally any combination of a constant-bitrate low-latency voice codec with a cipher in XOR stream mode should work. If the codec does "comfort noise" you should disable that to keep the bitrate constant during silence.
So for voice encryption, you need to obscure all that through artificial jitter and noise, and lack of compression in strategic places. It is a complex topic and I'm not sure the science is settled beyond "skipping compression helps".
There is something to be said about the volume of data being sent during silence; but, uncompressed audio shouldn't have that problem; and, for audio that does, there could be filler data to maintain a given bitrate across the line.
Really transmitting the zeroes as they are is just transmitting uncompressed PCM, which is the trivial solution. Adding filler is undoing most of the compression. The hard part is to add just enough filler, jitter and confusion for an attacker to be sufficiently blinded while maintaining an acceptable compression ratio.
Says if you don’t and simply XOR an audio with PRNG output, the resultant entropy will not be constant and transmission sounds like a noisy radio. Something like that.
So e.g. maybe you're doing 48kbps, the codec would still consume 48000 bits per second for silence. However if a radio link layer indicates it's struggling to move 48000 bits per second that "adaptive mode" audio codec could shift down to 36kbps instead. This is likely to be a much better user experience than throwing away 25% of your compressed audio due to packet loss and then trying to reconstruct it.
For something like Opus you can gracefully degrade this way from 48kbps (transparent for voice) to 8kbps (non-transparent but easily understandable) without an eavesdropper learning anything about the content, they only get insight into whether you've got link trouble.
I haven't tried, but I'd think encrypting and decrypting a packet would take less than 0.1ms, no?
What's the variation in the structure of the data? Wouldn't you just encrypt and send a fixed-length interval of audio each period?
Historically voice encryption was politically only meant for state use, with strict controls, and us plebs not getting any voice encryption or very weak encryption only. Compared to encryption on the internet, this state has persisted for longer in communications. Even in new communication standards the options for encryption generally offer weak/irrelevant security for modern standards (end-to-end encryption).
What's the variation in the structure of the data? Wouldn't you just encrypt and send a fixed-length interval of audio each period?
check out this article https://apkwind.com/netflix-mod-apk/
I'm fairly certain Cell networks are not encrypted at all, by default. Or at least it's disabled completely by the towers in Afghanistan. :whistling:
This is patently false, while some networks did allow no encryption (A0 on GSM for example), pretty much everything on UMTS/LTE is encrypted at least to the tower.
> In 2006 Elad Barkan, Eli Biham and Nathan Keller demonstrated attacks against A5/1, A5/3, or even GPRS that allow attackers to tap GSM mobile phone conversations and decrypt them either in real-time, or at any later time
You could look for resources that cover digital HAM radio operation. They should have some stuff about the basics of voice encryption. Most of it is not secure until you get to high-end stuff like Motorola AES 256. Some of this 'encryption' is just privacy codes (cell networks are not encrypted but use digital privacy codes I think).
Once you digitize the voice, then it should be pretty much regular encryption.
https://www.amateurradio.com/encryption-is-already-legal-its...