You are not logged in.

#1 2010-12-10 20:16:48

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

Encryption speeds-- which is faster, OFB or CFB?

I have been trying to figure this out. I have found conflicting results. In some cases they say CFB is faster and in other resources I have found that OFB can save speed using a few techniques. Which would be faster? Any way to figure this out?

Offline

#2 2010-12-11 00:08:52

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Encryption speeds-- which is faster, OFB or CFB?

http://en.wikipedia.org/wiki/Cipher_mod … _.28CFB.29
http://en.wikipedia.org/wiki/Cipher_mod … _.28OFB.29

Presumably, they are both _really close_ to the same speed, and would be limited by the block cipher itself (I see this said often, but sometimes see it said that OFB is faster. So not entirely sure.)

I generally use CTR for my ssh connections, as it is parallelizable.

host * 
  ciphers aes128-ctr,aes192-ctr,aes256-ctr

I prefer aes-128 based on this: http://www.schneier.com/blog/archives/2 … w_aes.html

might also be helpful: http://stackoverflow.com/questions/1220 … tr-ocb-cfb

Last edited by cactus (2010-12-11 00:11:40)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2010-12-11 00:20:01

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Encryption speeds-- which is faster, OFB or CFB?

Also this is a _great_ presentation.
http://www.bsdcan.org/2010/schedule/events/183.en.html


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#4 2010-12-11 13:31:42

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

Re: Encryption speeds-- which is faster, OFB or CFB?

Thanks, it seems really hard to figure out which is faster. I see conflicting statements quite often. I am enjoying the links though, lots of nice information.

Offline

Board footer

Powered by FluxBB