What is CBC? (2024)

Overview

CBC (short for cipher-block chaining) is a AESAdvanced Encryption Standard block cipher mode that trumps the ECB mode in hiding away patterns in the plaintext. CBC mode achieves this by XOR-ing the first plaintext block (B1) with an initialization vectora fixed-size input used to introduce randomization before encrypting it. CBC also involves block chaining as every subsequent plaintext block is XOR-ed with the ciphertext of the previous block.

If we summarize this process into a formula, it would look like:

Ci = EK(Bi ⊕ Ci-1)

where EK denotes the block encryption algorithm using key K, and Ci-1 is the cipher corresponding to Bi-1.

Note: In the formula above, we are assuming C0 to be the initialization vector.

Similarly, decryption using the CBC can be done using:

Bi = DK(Ci)⊕(Ci-1)

where DK denotes the block decryption algorithm using key K.

The same initialization vector (C0) will be used for decryption.

Advantages and disadvantages of using the CBC mode

The greatest advantage CBC has over ECB is that, with CBC mode, identical blocks do not have the same cipher. This is because the initialization vector adds a random factor to each block; hence, why the same blocks in different positions will have different ciphers.

Although CBC mode is more secure, its encryption is not tolerant of block losses. This is because blocks depend on their previous blocks for encryption. So, if block Bi is lost, the encryption of all subsequent blocks will not be possible. This chained behavior also means that the encryption of blocks needs to be done sequentially, not in parallel. However, these disadvantages do not extend to decryption, which can be done in parallel if all ciphertext blocks are available and can tolerate block losses.

What is CBC? (2024)

FAQs

What is CBC explain? ›

Complete blood count (CBC). Blood is collected by inserting a needle into a vein and allowing the blood to flow into a tube. The blood sample is sent to the laboratory and the red blood cells, white blood cells, and platelets are counted. The CBC is used to test for, diagnose, and monitor many different conditions.

How do you pass a CBC test? ›

If your blood sample is being tested only for a complete blood count, you can eat and drink as usual before the test. If your blood sample also will be used for other tests, you might need to fast for a certain amount of time before the test. Ask your health care provider what you need to do.

What is CBC quizlet? ›

CBC - Complete Blood Count.

What is a normal CBC result? ›

Male: 4.7 to 6.1 million cells/mcL. Female: 4.2 to 5.4 million cells/mcL.

Why is CBC important? ›

A CBC gives your provider a picture of your overall health. Using a small amount of blood, a CBC can help detect hundreds of conditions, disorders and infections. It allows your provider to monitor your health, screen for disease and plan and adjust treatment.

Top Articles
Latest Posts
Article information

Author: Jerrold Considine

Last Updated:

Views: 5752

Rating: 4.8 / 5 (78 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Jerrold Considine

Birthday: 1993-11-03

Address: Suite 447 3463 Marybelle Circles, New Marlin, AL 20765

Phone: +5816749283868

Job: Sales Executive

Hobby: Air sports, Sand art, Electronics, LARPing, Baseball, Book restoration, Puzzles

Introduction: My name is Jerrold Considine, I am a combative, cheerful, encouraging, happy, enthusiastic, funny, kind person who loves writing and wants to share my knowledge and understanding with you.