Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Residual block termination
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!
{{Unreferenced|date=December 2009}} In [[cryptography]], '''residual block termination''' is a variation of [[cipher block chaining]] mode (CBC) that does not require any [[Padding (cryptography)|padding]]. It does this by effectively changing to [[cipher feedback]] mode for one [[Block size (cryptography)|block]]. The cost is the increased complexity. ==Encryption procedure== If the [[plaintext]] length ''N'' is not a multiple of the [[block size (cryptography)|block size]] ''L'': *Encrypt the β''N''/''L''β full blocks of plaintext using the [[cipher block chaining]] [[block cipher modes of operation|mode]]; *Encrypt the last full encrypted block again; *[[XOR]] the remaining bits of the plaintext with leftmost bits of the re-encrypted block. ==Decryption procedure== *[[Decrypt]] the β''N''/''L''β full encrypted blocks using the Cipher Block Chaining mode; *[[Encryption|Encrypt]] the last full encrypted block; *[[XOR]] the remaining bits of the ciphertext with leftmost bits of the re-encrypted block. ==Short message== For messages shorter than one block, residual block termination can use an encrypted [[initialization vector]] instead of the previously encrypted block. {{Cryptography navbox | block}} {{DEFAULTSORT:Residual Block Termination}} [[Category:Cryptographic algorithms]] {{cryptography-stub}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Ambox
(
edit
)
Template:Cryptography-stub
(
edit
)
Template:Cryptography navbox
(
edit
)
Template:Unreferenced
(
edit
)