CSEC - 7 - M

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/47

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:07 AM on 10/19/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

48 Terms

1
New cards

Symmetric cryptography

Same key used for both encryption and decryption

2
New cards

AES

Advanced Encryption Standard - symmetric algorithm recommended by NIST - replaced DES

3
New cards

DES

Data Encryption Standard - legacy algorithm replaced by AES

4
New cards

NIST

U.S. National Institute of Standards and Technology

5
New cards

Cryptography

Techniques for secure and trustworthy communication and computation

6
New cards

Alice Bob and Eve

Alice and Bob want to communicate securely - Eve is the eavesdropper who may read their messages

7
New cards

Cryptanalysis

The science of attacking cryptosystems

8
New cards

Cryptanalyst

A practitioner of cryptanalysis

9
New cards

Open design principle

Assume the attacker knows the algorithms but knows nothing about the keys

10
New cards

Security by obscurity

Relying on hiding the algorithm - likely to fail as it can leak (stolen documents or bribed programmer or reverse engineering)

11
New cards

Ciphertext-only attack

Eve has ciphertexts of one or more messages encrypted with the same key K - goal is to find the plaintext or better still K

12
New cards

Known-plaintext attack

Eve has one or more plaintext-ciphertext pairs using the same key K - goal is to determine K

13
New cards

Chosen-plaintext attack

Eve chooses plaintexts and gets the matching ciphertexts (same key K)

14
New cards

Chosen-ciphertext attack

Eve chooses ciphertexts and gets the matching plaintexts (same key K)

15
New cards

Offline (chosen-text attacks)

Eve must choose all her texts in advance

16
New cards

Adaptive (chosen-text attacks)

Eve chooses texts iteratively - each choice can be based on what she learned from previous ones

17
New cards

Order of the four attacks

Listed by amount of information Eve has: ciphertext-only then known-plaintext then chosen-plaintext then chosen-ciphertext

18
New cards

Why attacks are feasible

It is usually easy to recognise a valid plaintext (gibberish = wrong key and intelligible text = right key)

19
New cards

Unicity distance

Minimum number of ciphertext characters needed so that there is a single intelligible plaintext associated with it

20
New cards

Why unicity distance exists

Built-in redundancy of natural languages

21
New cards

Caesar cipher

Each letter replaced by the letter three positions away in a cyclic alphabet (modulo the alphabet size)

22
New cards

Generalised substitution cipher

Each letter gets an arbitrary substitution as long as all substitutions are unique

23
New cards

Number of English substitution ciphers

26! = more than 4.03 × 10^26

24
New cards

Main weakness of simple substitution ciphers

They do not hide the underlying frequencies of characters (frequency analysis)

25
New cards

English letter frequencies

E is just over 12% - T is next at under 10% - the most frequent ciphertext letter probably stands for E

26
New cards

A Christmas Story example

Ralphie uses a decoder pin (substitution cipher) to decode "BE SURE TO DRINK YOUR OVALTINE"

27
New cards

Polygraphic substitution cipher

Groups of letters are encrypted together

28
New cards

Digram

A pair of letters

29
New cards

Digram substitution keys

26^2 = 676 digrams so 676! possible keys - but the key is long as all 676 substitutions must be written down

30
New cards

Substitution box (S-box)

2D table where the first letter or bits pick the row - the second pick the column - the entry is the unique substitute

31
New cards

S-box dimensions for a b-bit word

Split x into c bits and d bits (b = c + d) - S-box is 2^c × 2^d

32
New cards

Inverse S-box

Exists if all S-box substitutions are unique - reverses the substitutions (used to decrypt)

33
New cards

4-bit S-box example

4×4 S-box from Figure 3 - used in the Serpent cryptosystem

34
New cards

Why single-character or digram substitution is insecure

Single-letter and digram frequencies are easy to compute from a large enough corpus

35
New cards

Vigenère cipher

Polygraphic substitution cipher from 1586 - blocks of length m - m shift ciphers in parallel - key is (k1 to km) modulo 26

36
New cards

Vigenère weakness

Can be broken with statistical techniques if the ciphertext is long enough relative to m

37
New cards

One-time pad

Absolutely unbreakable substitution cipher invented in 1917 by Joseph Mauborgne and Gilbert Vernam

38
New cards

Two rules of the one-time pad

1) Key length m must equal plaintext length n 2) Each shift amount ki must be chosen completely at random

39
New cards

Why the one-time pad is unbreakable

Each letter is equally likely at any ciphertext position so no statistical analysis is possible

40
New cards

Pad reuse

Quickly reduces security - allows statistical methods to discover parts of the plaintext

41
New cards

Venona Project

US effort to analyse intercepted Soviet-spy traffic - very successful because pads were reused

42
New cards

Why the one-time pad is impractical

Pad must be as long as the message - what do you do when you run out of pad

43
New cards

Cold War hotline

Moscow-Washington hotline reportedly encrypted with a one-time pad

44
New cards

XOR (exclusive-or)

Gives 1 if the two bits are different and 0 if they are the same

45
New cards

Binary one-time pad encryption

C = M ⊕ P (M = plaintext bit string of length n and P = completely random pad of length n)

46
New cards

Binary one-time pad decryption

M = C ⊕ P (same pad used for both)

47
New cards

Why XOR decryption works

XOR is associative so C ⊕ P = (M ⊕ P) ⊕ P = M ⊕ (P ⊕ P) = M ⊕ 0 = M

48
New cards

Why the binary one-time pad is unbreakable

Each ciphertext bit is equally likely to be 0 or 1 independent of the plaintext and the other ciphertext bits