Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Block cipher mode of operation
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===== CFB-1, CFB-8, CFB-64, CFB-128, etc. ===== NIST SP800-38A defines CFB with a bit-width.<ref name="AESBlockDocumentation">{{cite journal |url=http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf |title=SP 800-38A, Recommendation for Block Cipher Modes of Operation: Methods and Techniques |first=Author: Morris Dworkin |last=(NIST) |website=csrc.nist.gov |year=2001 |doi=10.6028/NIST.SP.800-38A |access-date=28 April 2018 |url-status=live |archive-url=https://web.archive.org/web/20170828210645/http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf |archive-date=28 August 2017|doi-access=free }}</ref> ''The CFB mode also requires an integer parameter, denoted s, such that 1 β€ s β€ b. In the specification of the CFB mode below, each plaintext segment (Pj) and ciphertext segment (Cj) consists of s bits. The value of s is sometimes incorporated into the name of the mode, e.g., the 1-bit CFB mode, the 8-bit CFB mode, the 64-bit CFB mode, or the 128-bit CFB mode.'' These modes will truncate the output of the underlying block cipher. : <math>I_0 = \text{IV}.</math> : <math>I_i = \big((I_{i-1} \ll s) + C_i\big) \bmod 2^b,</math> : <math>C_i = \operatorname{MSB}_s\big(E_K(I_{i-1})\big) \oplus P_i,</math> : <math>P_i = \operatorname{MSB}_s\big(E_K(I_{i-1})\big) \oplus C_i,</math> CFB-1 is considered self synchronizing and resilient to loss of ciphertext; "When the 1-bit CFB mode is used, then the synchronization is automatically restored b+1 positions after the inserted or deleted bit. For other values of s in the CFB mode, and for the other confidentiality modes in this recommendation, the synchronization must be restored externally." (NIST SP800-38A). I.e. 1-bit loss in a 128-bit-wide block cipher like AES will render 129 invalid bits before emitting valid bits. CFB may also self synchronize in some special cases other than those specified. For example, a one bit change in CFB-128 with an underlying 128 bit block cipher, will re-synchronize after two blocks. (However, CFB-128 etc. will not handle bit loss gracefully; a one-bit loss will cause the decryptor to lose alignment with the encryptor)
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Block cipher mode of operation
(section)
Add topic