Skip to contentSkip to conversation

crypto layer in alsa

DISCUSSION lorenzo 3 participants 5 messages May 8, 2006 – May 9, 2006

lore
Share & tools
lore

lorenzo

author
#0 lore raw

Greetings. In those days where the FCC is imposing ISPs to let voip to be tapped, I was thinking if there's a way to use my favorite VoIP (skype) app in a secure way.
Let me state it clear: I don't like how skype handles security, because I can't *see* how it works. But it's widely spread, everybody uses it, and so it's my VoIP app of choice.

Now to the point: would it be difficult to implement some sort of crypto layer into alsa? So that what I say in the microphone gets encrypted *before* being available to the userland applications? Being the naive sort of programmer I am, I was thinking of a kernel module (let's call it alsa-crypto) that intercepts the audio stream coming from the microphone, encrypts it with a (say) block cipher + a user-supplied key, and sends it out as if it was a regular audio stream. Same thing on the other end.
The user-supplied key could be provided by a userland application that reads the other part's public key file from a keyring.

Other questions are: would this layer add too much complexity and delay to the whole audio stream (clicks, delays, white noise) to be helpful?
Might a dedicated co-processor help? Or it's all about CPU horsepower? Also, would this make audio-compressing algoritmhs completely useless or, worse, could such algorithms make the cipherstream useless? I'm thinking about, say, Skype that to make things faster might use some algorithm to "compress" the audio stream and make it smaller to send to the other end.

begging your perdon if I'm asking a silly question,

my best regards to everybody

l.g.

ps: I've tried to google for it but I couldn't find an already started project.
ps2: a windows .dll should also be done, but that's anoter game..

--
:lorenzo grespan
GPG Key fingerprint = 5372 1B49 9E61 747C FB9A 4DAE 5D2A A9A0 74B4 8F1A

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642

#1 lore raw

Hi,

I think this will not really work out. Many applications encode the data stream in a lossy format I'm sure so does Skype. That's just what I think about it..

Markus

Quoted 42 lines · lorenzo

Greetings. In those days where the FCC is imposing ISPs to let voip to be tapped, I was thinking if there's a way to use my favorite VoIP (skype) app in a secure way.
Let me state it clear: I don't like how skype handles security, because I can't *see* how it works. But it's widely spread, everybody uses it, and so it's my VoIP app of choice.

Now to the point: would it be difficult to implement some sort of crypto layer into alsa? So that what I say in the microphone gets encrypted *before* being available to the userland applications? Being the naive sort of programmer I am, I was thinking of a kernel module (let's call it alsa-crypto) that intercepts the audio stream coming from the microphone, encrypts it with a (say) block cipher + a user-supplied key, and sends it out as if it was a regular audio stream. Same thing on the other end.
The user-supplied key could be provided by a userland application that reads the other part's public key file from a keyring.

Other questions are: would this layer add too much complexity and delay to the whole audio stream (clicks, delays, white noise) to be helpful?
Might a dedicated co-processor help? Or it's all about CPU horsepower? Also, would this make audio-compressing algoritmhs completely useless or, worse, could such algorithms make the cipherstream useless? I'm thinking about, say, Skype that to make things faster might use some algorithm to "compress" the audio stream and make it smaller to send to the other end.

begging your perdon if I'm asking a silly question,

my best regards to everybody

l.g.

ps: I've tried to google for it but I couldn't find an already started project.
ps2: a windows .dll should also be done, but that's anoter game..

--
:lorenzo grespan
GPG Key fingerprint = 5372 1B49 9E61 747C FB9A 4DAE 5D2A A9A0 74B4 8F1A

Quoted 10 lines

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

--
Markus Rechberger

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642

#2 lore raw

Tunnel it through SSH and no one can touch you.

Quoted 83 lines · Markus Rechberger

Hi,

I think this will not really work out. Many applications encode the data stream in a lossy format I'm sure so does Skype. That's just what I think about it..

Markus

Quoted 28 lines · lorenzo

Greetings. In those days where the FCC is imposing ISPs to let voip to be tapped, I was thinking if there's a way to use my favorite VoIP (skype) app in a secure way.
Let me state it clear: I don't like how skype handles security, because I can't *see* how it works. But it's widely spread, everybody uses it, and so it's my VoIP app of choice.

Now to the point: would it be difficult to implement some sort of crypto layer into alsa? So that what I say in the microphone gets encrypted *before* being available to the userland applications? Being the naive sort of programmer I am, I was thinking of a kernel module (let's call it alsa-crypto) that intercepts the audio stream coming from the microphone, encrypts it with a (say) block cipher + a user-supplied key, and sends it out as if it was a regular audio stream. Same thing on the other end.
The user-supplied key could be provided by a userland application that reads the other part's public key file from a keyring.

Other questions are: would this layer add too much complexity and delay to the whole audio stream (clicks, delays, white noise) to be helpful?
Might a dedicated co-processor help? Or it's all about CPU horsepower? Also, would this make audio-compressing algoritmhs completely useless or, worse, could such algorithms make the cipherstream useless? I'm thinking about, say, Skype that to make things faster might use some algorithm to "compress" the audio stream and make it smaller to send to the other end.

Quoted 7 lines

begging your perdon if I'm asking a silly question,

my best regards to everybody

l.g.

ps: I've tried to google for it but I couldn't find an already started

project.

Quoted 9 lines

ps2: a windows .dll should also be done, but that's anoter game..

--
:lorenzo grespan
GPG Key fingerprint = 5372 1B49 9E61 747C FB9A 4DAE 5D2A A9A0 74B4 8F1A

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,

security?

Quoted 1 line

Get stuff done quickly with pre-integrated technology to make your job

easier

Quoted 1 line

Download IBM WebSphere Application Server v.1.0.1 based on Apache

Geronimo

Quoted 6 lines

http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

--
Markus Rechberger

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

author
#3 lore raw
Quoted 5 lines · Eric Shattow

Tunnel it through SSH and no one can touch you.

Quoted 3 lines · Markus Rechberger

I think this will not really work out. Many applications encode the data stream in a lossy format I'm sure so does Skype. That's just what I think about it..

This could be a nice test to see the network performances, but I was thinking more of a complete solution: linux alsa driver + windows dll, thus providing a way to do VoIP without the need to add plugins for every VoIP app.
However, as Markus said, the lossy encodings may be an issue.

Thanks to both of you for your answer.

ps: I'm getting a lot of spam trough this list.. is this normal or is there something wrong? Maybe it's left as it is now to let users send automatic bug reports to the list

--
:lorenzo grespan
GPG Key fingerprint = 5372 1B49 9E61 747C FB9A 4DAE 5D2A A9A0 74B4 8F1A

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642

#4 lore raw

The spam is a known problem.

Quoted 25 lines · lorenzo
Quoted 5 lines · Eric Shattow

Tunnel it through SSH and no one can touch you.

Quoted 3 lines · Markus Rechberger

I think this will not really work out. Many applications encode the data stream in a lossy format I'm sure so does Skype. That's just what I think about it..

This could be a nice test to see the network performances, but I was thinking more of a complete solution: linux alsa driver + windows dll, thus providing a way to do VoIP without the need to add plugins for every VoIP app.
However, as Markus said, the lossy encodings may be an issue.

Thanks to both of you for your answer.

ps: I'm getting a lot of spam trough this list.. is this normal or is there something wrong? Maybe it's left as it is now to let users send automatic bug reports to the list

--
:lorenzo grespan
GPG Key fingerprint = 5372 1B49 9E61 747C FB9A 4DAE 5D2A A9A0 74B4 8F1A