Residual block termination

Residual block termination

In cryptography, residual block termination is a variation of cipher block chaining mode (CBC) that does not require any padding. It does this by effectively changing to cipher feedback mode for one block. The cost is the increased complexity.

Encryption procedure

If the plaintext length "N" is not a multiple of the block size "L":
*Encrypt the ⌊"N"/"L"⌋ full blocks of plaintext using the cipher block chaining 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;
*Encrypt the last full encrypted block;
*XOR the remaining bits of the ciphertext with leftmost bits of the re-encrypted block.

Proof that this decryption procedure really is the inverse of the encryption procedure is left as an exercise for the reader.

hort message

For messages shorter than one block, residual block termination can use an encrypted IV instead of the previously encrypted block.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Block cipher modes of operation — This article is about cryptography. For method of operating , see modus operandi. In cryptography, modes of operation is the procedure of enabling the repeated and secure use of a block cipher under a single key.[1][2] A block cipher by itself… …   Wikipedia

  • Padding (cryptography) — In cryptography, padding refers to a number of distinct practices.Classical cryptographyOfficial messages often start and end in predictable ways: My dear ambassador, Weather report, Sincerely yours , etc. The primary use of padding with… …   Wikipedia

  • Stream cipher — The operation of the keystream generator in A5/1, a LFSR based stream cipher used to encrypt mobile phone conversations. In cryptography, a stream cipher is a symmetric key cipher where plaintext digits are combined with a pseudorandom cipher… …   Wikipedia

  • international relations — a branch of political science dealing with the relations between nations. [1970 75] * * * Study of the relations of states with each other and with international organizations and certain subnational entities (e.g., bureaucracies and political… …   Universalium

  • South African contract law — is essentially a modernised version of the Roman Dutch law of contract, [1] which is itself rooted in Roman law. In the broadest definition, a contract is an agreement entered into by two or more parties with the serious intention of creating a… …   Wikipedia

  • France — /frans, frahns/; Fr. /frddahonns/, n. 1. Anatole /ann nann tawl /, (Jacques Anatole Thibault), 1844 1924, French novelist and essayist: Nobel prize 1921. 2. a republic in W Europe. 58,470,421; 212,736 sq. mi. (550,985 sq. km). Cap.: Paris. 3.… …   Universalium

  • List of oil field acronyms — Contents 1 # 2 A 3 B 4 C …   Wikipedia

  • Mechanical ventilation — In architecture and climate control, mechanical or forced ventilation is the use of powered equipment, e.g. fans and blowers, to move air  see ventilation (architecture). Mechanical ventilation Intervention …   Wikipedia

  • Parallel SCSI — Centronics 50 SCSI plug Parallel SCSI (formally, SCSI Parallel Interface, or SPI) is one of the interface implementations in the SCSI family. In addition to being a data bus, SPI is a parallel electrical bus: There is one set of electrical… …   Wikipedia

  • china — /chuy neuh/, n. 1. a translucent ceramic material, biscuit fired at a high temperature, its glaze fired at a low temperature. 2. any porcelain ware. 3. plates, cups, saucers, etc., collectively. 4. figurines made of porcelain or ceramic material …   Universalium

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”