“Network Security” Omer Rana Cryptography Components

Total Page:16

File Type:pdf, Size:1020Kb

“Network Security” Omer Rana Cryptography Components “Network Security” Omer Rana CM0255 Material from: Cryptography Components Sender Receiver Ciphertext Plaintext Plaintext Encryption Decryption Encryption algorithm: Plaintext Ciphertext • Cipher: encryption or decryption algorithms (or categories of algorithms) • Key: a number (set of numbers) – that the cipher (as an algorithm) operates on. • To encrypt a message: – Encryption algorithm – Encryption key Ciphertext – Plaintext 1 Three types of keys: Symmetric -key Secret Key Cryptography Public Key shared secret key Alice Bob Private Key Plaintext Ciphertext Plaintext Encryption Decryption •Same key used by both parties •Key used for both encryption and decryption •Keys need to be swapped beforehand using a secure mechanism Asymmetric -key To everyone (public) Bob’s public Cryptography key Alice Bob Bob’s private key Ciphertext Plaintext Plaintext Encryption Decryption Differentiate between a public key and a private key Symmetric-Key Cryptography • Traditional ciphers: – Character oriented – Two main approaches: • Substitution ciphers or • Transposition Ciphers • Substitution Ciper: – Substitute one symbol with another – Mono-alphabetic : a character (symbol) in plaintext is changed to the same character (symbol) in ciphertext regardless of its position in the text If L O, every instance of L will be changed to O Plaintext: HELLO Ciphertext: KHOOR – Poly-alphabetic : each occurrence can have a different substitute. Relationship between a character in plaintext to ciphertext is one-to-many (based on position being in beginning, middle or end of text). Divide text into group of characters and use a set of keys. THIS LECTUREIS REALLY INTERESTING Plaintext: HELLO Ciphertext: ABNZF 2 Other Traditional Ciphers • Shift/Caesar Cipher – Plaintext and Ciphertext contains upper case characters – Encryption: shift <x> characters up – Decryption: shift <x> characters down – <x> is the key Use shift cipher with key = 15 to encrypt message “HELLO” Solution: Each character is shifted 15 times: H W ET HELLO WTAAD LA OD Transposition Cipher • Change location of characters from plaintext to cipher text • Permute symbols in a block of symbols • Key is a mapping between the position of symbols in plaintext to cipher text 1 1 • Example: Plaintext: 1 2 3 4; Cipher text: 2 4 1 3 2 2 3 3 4 4 position Encryption using the above Cipher: Message “HELLO MY DEAR” Remove spaces: “HELLOMYDEAR” Divide into block of four: HELL OMYD EARZ – note addition of Z Ciphertext: ELHLMDOYAZER 3 Currently used Ciphers • Traditional ciphers are character-oriented • Modern ciphers are bit-oriented – Can deal with text , numbers, video, audio, images, etc – Convert data into bit stream – then apply cipher • Symmetric cipher: – Use a combination of ciphers rather than just one – Ciphers may be applied in rounds • Examples: – XOR, Rotation Cipher, Substitution Cipher (S-box), Transposition Cipher (P-box) • Standards: – Data Encryption Standard (DES) – Advanced Encryption Standards (AES) – Others: Int. Data Encryption Algorithm (IDEA), Blowfish, CAST- 128, RC5 Modern Ciphers … 1 • XOR A B C – Use of data (plaintext) and key 0 0 0 0 1 1 – Size of data, key and ciphertext are the same 1 0 1 – Interesting property: encryption and decryption are the same 1 1 0 Plaintext: 11011 Key: 01011 Ciphertext: 10000 Key: 01011 Recovered Plaintext: 11011 • Rotation Cipher – Key may be specifically defined or assumed – Keyless rotation: number of rotations (left/right) is pre-defined – If plaintext size is N; then after N rotations, we get original • Useless to apply more than N-1 rotations – Decryption: use same key but opposite direction of rotation 4 Modern Ciphers … 2 • Substitution: S-box – Similar to traditional substitution cipher for characters – Plaintext: stream of length N – Ciphertext: stream of length M, N<>M • Transposition: P-box (Permutation box) – Similar to traditional transposition cipher for characters – Performs transposition at bit level – E.g.: Straight (N N), Expansion (N M, M>N), Compression (N M, M<N) Round Ciphers • Ciphers involve multiple “rounds” – Each “round” is a complex cipher made up of simple ciphers – Each “round” has a key – which is a subset/variation of the general key (“round key”) • Key generator – If N rounds – N keys are generated – one for each round 5 Types Keys used for Encryption and Decryption Same Different Symmetric-Key Asymmetric-Key Cryptography Cryptography DES RSA AES Diffie-Hellman IDEA Blowfish CAST-128 RC5 Data Encryption Standard (DES) – from IBM 64-bit plaintext • Symmetric key cipher – divide plaintext into blocks (use same key Initial Permutation to encrypt/decrypt block) • 64-bit plaintext, 64-bit Round 1 k1 key Round • Two p-boxes, 16 Key complex (repeated) Generator round ciphers – with k16 Round 16 different key • Initial and final permutations are Final keyless straight Permutation permutations (inverse of each other) 64-bit ciphertext 6 DES function – for the ith Round 32 bits 32 bits Ri Li Ri 32 bits Expansion Permutation 48 bits f(Ri,Ki) Key (Ki) (Ki) + 48-bits 48 bits S-boxes Outcome S S S S S S S + XOR 32 bits Straight Permutation 32 bits Li+1 Ri+1 32 bits 32 bits Outcome Decryption Round 32 bits 32 bits Ri Li Ri 32 bits Expansion Permutation 48 bits f(Ri,Ki) Key (Ki) (Ki) + 48-bits 48 bits S-boxes Outcome S S S S S S S + XOR 32 bits Straight Permutation 32 bits Li+1 Ri+1 32 bits 32 bits Outcome 7 Triple DES (3DES) • To improve on the limited size of DES key – use of three DES blocks • Encryption block: – Encryption-Decryption-Encryption combination • Decryption block – Decryption-Encryption-Decryption combination • Two version: – 2 keys and 3 keys Triple DES 64-bit plaintext (3DES) 2 keys version: Encrypt DES Key 1 Key 1 = Key 3 Text encrypted by a Single DES block can Be decrypted by the new 3DES Decrypt DES Key 2 Encrypt DES Key 3 Key sizes: 112 bits and 168 bits 64-bit ciphertext 8 Advanced Encryption Standard (AES) – from NIST • Overcome limitation with small DES keysize – 3DES increases key size but slow • Uses Rijndael algorithm • Uses a complex round cipher with 3 key sizes – 128 bits (10 rounds), – 192 bits (12 rounds), – 256 bits (14 rounds) – data block: 128 bits 10 Blocks – identical (except 10), but each uses a different key • Other variations proposed which differ Each Round (except 10) is a cipher with four operations that are invertible . Last round has in either size of block, only three operations key, number of rounds, or function used Each operation uses a complex cipher AES (10 rounds, 128-bit key) Round i 128-bit plaintext 128-bit data k0 + Byte Substitution (SubByte) k1 Round 1 Byte Permutation Round (ShiftRow) Key Generator Round 10 k16 Complex Operation (different from other rounds) -- except Round 10 (MixColumn) 128-bit 128-bit ciphertext key ki + 128-bit data 9 Applying the Cipher • Electronic Code Block – Plaintext divided into N blocks, Ciphertext has N blocks – If Plaintext blocks 1,2,3 are identical Ciphertext blocks 1,2,3 are identical – Blocks are considered independent of each other – error in one block is not propagated to another • Cipher Block Chaining – Use previous cipher block in the preparation of the current block (Plaintext and Ciphertext still N blocks) – Identical blocks in Plaintext are not identical in Ciphertext – Blocks have dependencies – errors propagated across blocks – An initiation vector used to bootstrap the process Various other approaches are also possible Rivest, Shamir and Adleman (RSA) • Two keys – (e,d); e:public; d:private – Keys related • Selecting keys by Bob – Chose two large prime numbers: p, q – n=p * q; f=(p-1) * (q-1) – Chose a random integer “e” • d * e = 1 mod f Alice sends message to Bob: C = Pe (mod n) Public: e,n Private: f, d Bob receives message from Alice: P = Cd (mod n) Size of Plaintext block < n 10 RSA Example • Bob chooses: p=7; q=11 – n=p*q=7*11=77 – f=(7-1) * (11-1) = 60 • Bob chooses: e=13; and calculates: d=37 – Public key = 13 – Private key = 37 • Alice: Plaintext = 5 – C= 5 13 = 26 mod 77 – Bob receives ciphertext 26 • Bob: Ciphertext=26 – P= 26 37 = 5 mod 77 – Plaintext = 5 RSA … 2 • Slow if message is long – Useful for small message digests – Useful for Digital signatures – Useful for encrypting a symmetric key • Diffie-Hellman – Used for key exchange – Bob and Alice create a symmetric session key • They do not need to remember or store the key • They do not have to meet to agree on the key 11 • Bob and Alice: Diffie-Hellman – Choose two numbers: p, g – these are public • p: large prime number (1024 bits); • g: random number • Bob: chooses “y”; Alice: chooses “x” (x,y: large random numbers) Secret key has three parts: (p,g),x,y: (g,p=public; Bob knows y; Alice knows x). Each adds their own part to calculate the shared key Alice R1=gx mod p R2=gy mod p Bob R1 R2 x K=(R2) mod p K=(R1) y mod p Both reach Shared secret key the same K=gxy mod p value for the key, without Bob knowing x, (gx mod p) y mod p = (gy mod p) x mod p = gxy mod p and Alice knowing y Simple Diffie-Hellman Example • Assume: g=7; p=23 • Alice: chooses x=3; R1=7 3 mod 23 = 21 • Bob: chooses y=6; R2=7 6 mod 23 = 4 Alice 21 Bob 4 Bob Alice • Alice: calculate symmetric key (K) – K = 4 3 mod 23 = 18 • Bob: calculate symmetric key (K) 6 – K = 21 mod 23 = 18 gxy mod p = 7(3*6) mod 23 = 18 12 Man-in-the-middle attack • Diffie-Hellman is a sophisticated symmetric-key creation algorithm – If x,y are large numbers; difficult for another party to find the key (knowing only p,q) – Even if R1 and R2 intercepted, intruder still needs to know x,y – Finding x from R1; or y from R2 are difficult tasks • Alternative attack: – Intruder can fool Alice and Bob by creating two keys (one between each party) – Intermediate party (Eve) can fool Alice and Bob into believing they are communicating directly – Eve can also change/modify message before forwarding Alice Eve Bob R1=gx mod p R1 R2=gz mod p R2 R2 R3=gy mod p R3 K1=(R2) x mod p K1=(R1) z mod p K2=(R2) y mod p K2=(R3) z mod p Alice-Eve: K1= gxy mod p Eve-Bob: K2= gzy mod p 13.
Recommended publications
  • Stage De Master 2R
    STAGE DE MASTER 2R SYSTEMES ELECTRONIQUES ET GENIE ELECTRIQUE PARCOURS SYSTEMES ELECTRONIQUES ANNEE UNIVERSITAIRE 2006/2007 CRYPTO-COMPRESSION BASED ON CHAOS OF STILL IMAGES FOR THE TRANSMISSION YIN XU École Polytechnique de l’Université de Nantes Laboratoire IREENA Encadrants du stage : Safwan EL ASSAD Vincent RICORDEL Stage effectué du (05/02/2007) au (09/07/2007) Acknowledgments I would like to express my gratitude to my supervisors Professor Safwan EL ASSAD and Professor Vincent RICORDEL, who have been giving me direction with great patience. As the tutor of the first part of my internship, Prof. RICORDEL coached me on the study of JPEG 2000 systems and I benefited a lot from his tutorials. His constructive suggestions on my research and careful correction of my submitted materials are deeply appreciated. And as the tutor of the second part of my internship, Prof. EL ASSAD pointed out a clear direction of the subject that I should follow, which spare me from the potential wasting of time. He was always encouraging me and thus providing me with more confidence to achieve the objects of the internship. Doctor. Abir AWAD helped me a lot on the program-performance comparisons of C++ and MATLAB and she also gave me many useful materials on my subject. I am really thankful. I would also give my thankfulness to Professor Joseph SAILLARD and Professor Patrick LE CALLET for attending my final defense as a member of the jury despite the busy occupation of their own work. Of course also send great thankfulness to my two supervisors Prof. EL ASSAD and Prof.
    [Show full text]
  • Symmetric Key Ciphers Objectives
    Symmetric Key Ciphers Debdeep Mukhopadhyay Assistant Professor Department of Computer Science and Engineering Indian Institute of Technology Kharagpur INDIA -721302 Objectives • Definition of Symmetric Types of Symmetric Key ciphers – Modern Block Ciphers • Full Size and Partial Size Key Ciphers • Components of a Modern Block Cipher – PBox (Permutation Box) – SBox (Substitution Box) –Swap – Properties of the Exclusive OR operation • Diffusion and Confusion • Types of Block Ciphers: Feistel and non-Feistel ciphers D. Mukhopadhyay Crypto & Network Security IIT Kharagpur 1 Symmetric Key Setting Communication Message Channel Message E D Ka Kb Bob Alice Assumptions Eve Ka is the encryption key, Kb is the decryption key. For symmetric key ciphers, Ka=Kb - Only Alice and Bob knows Ka (or Kb) - Eve has access to E, D and the Communication Channel but does not know the key Ka (or Kb) Types of symmetric key ciphers • Block Ciphers: Symmetric key ciphers, where a block of data is encrypted • Stream Ciphers: Symmetric key ciphers, where block size=1 D. Mukhopadhyay Crypto & Network Security IIT Kharagpur 2 Block Ciphers Block Cipher • A symmetric key modern cipher encrypts an n bit block of plaintext or decrypts an n bit block of ciphertext. •Padding: – If the message has fewer than n bits, padding must be done to make it n bits. – If the message size is not a multiple of n, then it should be divided into n bit blocks and the last block should be padded. D. Mukhopadhyay Crypto & Network Security IIT Kharagpur 3 Full Size Key Ciphers • Transposition Ciphers: – Involves rearrangement of bits, without changing value. – Consider an n bit cipher – How many such rearrangements are possible? •n! – How many key bits are necessary? • ceil[log2 (n!)] Full Size Key Ciphers • Substitution Ciphers: – It does not transpose bits, but substitutes values – Can we model this as a permutation? – Yes.
    [Show full text]
  • Network Security H B ACHARYA
    Network Security H B ACHARYA NETWORK SECURITY Day 2 NETWORK SECURITY Encryption Schemes NETWORK SECURITY Basic Problem ----- ----- ? Given: both parties already know the same secret How is this achieved in practice? Goal: send a message confidentially Any communication system that aims to guarantee confidentiality must solve this problem NETWORK SECURITY slide 4 One-Time Pad (Vernam Cipher) ----- 10111101… ----- = 10111101… 10001111… = 00110010… 00110010… = Key is a random bit sequence as long as the plaintext Decrypt by bitwise XOR of ciphertext and key: ciphertext key = (plaintext key) key = Encrypt by bitwise XOR of plaintext (key key) = plaintext and key: plaintext ciphertext = plaintext key Cipher achieves perfect secrecy if and only if there are as many possible keys as possible plaintexts, and every key is equally likely (Claude Shannon, 1949) NETWORK SECURITY slide 5 Advantages of One-Time Pad Easy to compute ◦ Encryption and decryption are the same operation ◦ Bitwise XOR is very cheap to compute As secure as theoretically possible ◦ Given a ciphertext, all plaintexts are equally likely, regardless of attacker’s computational resources ◦ …if and only if the key sequence is truly random ◦ True randomness is expensive to obtain in large quantities ◦ …if and only if each key is as long as the plaintext ◦ But how do the sender and the receiver communicate the key to each other? Where do they store the key? NETWORK SECURITY slide 6 Problems with One-Time Pad Key must be as long as the plaintext ◦ Impractical in most realistic
    [Show full text]
  • Data Encryption Standard (DES)
    6 Data Encryption Standard (DES) Objectives In this chapter, we discuss the Data Encryption Standard (DES), the modern symmetric-key block cipher. The following are our main objectives for this chapter: + To review a short history of DES + To defi ne the basic structure of DES + To describe the details of building elements of DES + To describe the round keys generation process + To analyze DES he emphasis is on how DES uses a Feistel cipher to achieve confusion and diffusion of bits from the Tplaintext to the ciphertext. 6.1 INTRODUCTION The Data Encryption Standard (DES) is a symmetric-key block cipher published by the National Institute of Standards and Technology (NIST). 6.1.1 History In 1973, NIST published a request for proposals for a national symmetric-key cryptosystem. A proposal from IBM, a modifi cation of a project called Lucifer, was accepted as DES. DES was published in the Federal Register in March 1975 as a draft of the Federal Information Processing Standard (FIPS). After the publication, the draft was criticized severely for two reasons. First, critics questioned the small key length (only 56 bits), which could make the cipher vulnerable to brute-force attack. Second, critics were concerned about some hidden design behind the internal structure of DES. They were suspicious that some part of the structure (the S-boxes) may have some hidden trapdoor that would allow the National Security Agency (NSA) to decrypt the messages without the need for the key. Later IBM designers mentioned that the internal structure was designed to prevent differential cryptanalysis.
    [Show full text]
  • COS433/Math 473: Cryptography Mark Zhandry Princeton University Spring 2017 Previously
    COS433/Math 473: Cryptography Mark Zhandry Princeton University Spring 2017 Previously Pseudorandom Functions and Permutaitons Modes of Operation Pseudorandom Functions Functions that “look like” random functions Syntax: • Key space {0,1}λ • Domain X (usually {0,1}m, m may depend on λ) • Co-domain/range Y (usually {0,1}n, may depend on λ) • Function F:{0,1}λ × XàY Pseudorandom Permutations (also known as block ciphers) Functions that “look like” random permutations Syntax: • Key space {0,1}λ • Domain X (usually {0,1}n, n usually depends on λ) • Range X • Function F:{0,1}λ × XàX • Function F-1:{0,1}λ × XàX Correctness: ∀k,x, F-1(k, F(k, x) ) = x Pseudorandom Permutations Security: λ b Challenger x∈X y b’ Pseudorandom Permutations Security: λ b=0 Challenger k ß Kλ x∈X y y ß F(k,x) b’ PRF-Exp0( , λ) Pseudorandom Permutations Security: λ b=1 Challenger HßPerms(X,X) x∈X y y = H(x) b’ PRF-Exp1( , λ) Theorem: A PRP (F,F-1) is secure iff F is a secure as a PRF Theorem: There are secure PRPs (F,F-1) where (F-1,F) is insecure Strong PRPs λ b=0 Challenger k ß K x∈X λ y y ß F(k,x) x∈X ß -1 y y F (k,x) b’ PRF-Exp0( , λ) Strong PRPs λ b=1 Challenger x∈X HßPerms(X,X) y y ß H(x) x∈X ß -1 y y H (x) b’ PRF-Exp1( , λ) Theorem: If (F,F-1) is a strong PRP, then so is (F-1,F) PRPs vs PRFs In practice, PRPs are the central building block of most crypto • Also PRFs • Can build PRGs • Very versatile Today Constructing PRPs Today, we are going to ignore negligible, and focus on concrete parameters • E.g.
    [Show full text]
  • Introduction to Modern Symmetric-Key Ciphers Objectives
    Introduction to Modern Symmetric-key Ciphers Objectives ❏ To distinguish between traditional and modern symmetric-key ciphers. ❏ To introduce modern block ciphers and discuss their characteristics. ❏ To explain why modern block ciphers need to be designed as substitution ciphers. ❏ To introduce components of block ciphers such as P-boxes and S-boxes. Objectives (Continued) ❏ To discuss product ciphers and distinguish between two classes of product ciphers: Feistel and non-Feistel ciphers. ❏ To discuss two kinds of attacks particularly designed for modern block ciphers: differential and linear cryptanalysis. ❏ To introduce stream ciphers and to distinguish between synchronous and nonsynchronous stream ciphers. ❏ To discuss linear and nonlinear feedback shift registers for implementing stream ciphers. MODERN BLOCK CIPHERS A symmetric-key modern block cipher encrypts an n-bit block of plaintext or decrypts an n-bit block of ciphertext. The encryption or decryption algorithm uses a k-bit key. 1 Substitution or Transposition 2 Block Ciphers as Permutation Groups 3 Components of a Modern Block Cipher 4 Product Ciphers 5 Two Classes of Product Ciphers 6 Attacks on Block Ciphers Figure A modern block cipher Example How many padding bits must be added to a message of 100 characters if 8-bit ASCII is used for encoding and the block cipher accepts blocks of 64 bits? Solution Encoding 100 characters using 8-bit ASCII results in an 800- bit message. The plaintext must be divisible by 64. If | M | and |Pad| are the length of the message and the length of the padding, Substitution or Transposition A modern block cipher can be designed to act as a substitution cipher or a transposition cipher.
    [Show full text]
  • An Efficient VHDL Description and Hardware Implementation of The
    An Efficient VHDL Description and Hardware Implementation of the Triple DES Algorithm A thesis submitted to the Graduate School of the University of Cincinnati In partial fulfillment of the requirements for the degree of Master of Science In the Department of Electrical and Computer Engineering Of the College of Engineering and Applied Sciences June 2014 By Lathika SriDatha Namburi B.Tech, Electronics and Communications Engineering, Jawaharlal Nehru Technological University, Hyderabad, India, 2011 Thesis Advisor and Committee Chair: Dr. Carla Purdy ABSTRACT Data transfer is becoming more and more essential these days with applications ranging from everyday social networking to important banking transactions. The data that is being sent or received shouldn’t be in its original form but must be coded to avoid the risk of eavesdropping. A number of algorithms to encrypt and decrypt the data are available depending on the level of security to be achieved. Many of these algorithms require special hardware which makes them expensive for applications which require a low to medium level of data security. FPGAs are a cost effective way to implement such algorithms. We briefly survey several encryption/decryption algorithms and then focus on one of these, the Triple DES. This algorithm is currently used in the electronic payment industry as well as in applications such as Microsoft OneNote, Microsoft Outlook and Microsoft system center configuration manager to password protect user content and data. We implement the algorithm in a Hardware Description Language, specifically VHDL and deploy it on an Altera DE1 board which uses a NIOS II soft core processor. The algorithm takes input encoded using a software based Huffman encoding to reduce its redundancy and compress the data.
    [Show full text]
  • Cryptanalysis of Block Ciphers
    Cryptanalysis of Block Ciphers Jiqiang Lu Technical Report RHUL–MA–2008–19 30 July 2008 Royal Holloway University of London Department of Mathematics Royal Holloway, University of London Egham, Surrey TW20 0EX, England http://www.rhul.ac.uk/mathematics/techreports CRYPTANALYSIS OF BLOCK CIPHERS JIQIANG LU Thesis submitted to the University of London for the degree of Doctor of Philosophy Information Security Group Department of Mathematics Royal Holloway, University of London 2008 Declaration These doctoral studies were conducted under the supervision of Prof. Chris Mitchell. The work presented in this thesis is the result of original research carried out by myself, in collaboration with others, whilst enrolled in the Information Security Group of Royal Holloway, University of London as a candidate for the degree of Doctor of Philosophy. This work has not been submitted for any other degree or award in any other university or educational establishment. Jiqiang Lu July 2008 2 Acknowledgements First of all, I thank my supervisor Prof. Chris Mitchell for suggesting block cipher cryptanalysis as my research topic when I began my Ph.D. studies in September 2005. I had never done research in this challenging ¯eld before, but I soon found it to be really interesting. Every time I ¯nished a manuscript, Chris would give me detailed comments on it, both editorial and technical, which not only bene¯tted my research, but also improved my written English. Chris' comments are fantastic, and it is straightforward to follow them to make revisions. I thank my advisor Dr. Alex Dent for his constructive suggestions, although we work in very di®erent ¯elds.
    [Show full text]
  • COS433/Math 473: Cryptography Mark Zhandry Princeton University Fall 2020 Announcements/Reminders
    COS433/Math 473: Cryptography Mark Zhandry Princeton University Fall 2020 Announcements/Reminders HW2 due Today • Submit through Gradescope PR1 Due October 6 Previously on COS 433… Confusion/Diffusion Paradigm Confusion/Diffusion Paradigm Third Attempt: Repeat multiple times! f1 f2 f3 f4 f5 f6 Round π1 f7 f8 f9 f10 f11 f12 π2 Confusion/Diffusion Paradigm While single round is insecure, we’ve made progress • Each bit affects 8 output bits With repetition, hopefully we will make more and more progress Confusion/Diffusion Paradigm With 2 rounds, • Each bit affects 64 output bits With 3 rounds, all 128 bits are affected Repeat a few more times for good measure Limitations Describing subs/perms requires many bits • Key size for r rounds is approximately 28×λ×r • Ideally want key size to be 128 (or 256) Idea: instead, fix subs/perms • But then what’s the key? Substitution Permutation Networks Variant of previous construction • Fixed public permutations for confusion (called a substitution box, or S-box) • Fixed public permutation for diffusion (called a permutation box, or P-box) • XOR “round key” at beginning of each round Substitution Permutation Networks ⊕ ⊕ ⊕ ⊕ ⊕ ⊕ Round key Round s1 s2 s3 s4 s5 s6 π Substitution Permutation Networks ⊕ ⊕ ⊕ ⊕ ⊕ ⊕ Round key Round s1 s2 s3 s4 s5 s6 π Potentially ⊕ ⊕ ⊕ ⊕ ⊕ ⊕ different s1 s2 s3 s4 s5 s6 π Substitution Permutation Networks ⊕ ⊕ ⊕ ⊕ ⊕ ⊕ Round key Round s1 s2 s3 s4 s5 s6 π Potentially ⊕ ⊕ ⊕ ⊕ ⊕ ⊕ different s1 s2 s3 s4 s5 s6 π Final key ⊕ ⊕ ⊕ ⊕ ⊕ ⊕ mixing Substitution Permutation Networks To specify
    [Show full text]
  • Research Article Improved 2D Discrete Hyperchaos Mapping with Complex Behaviour and Algebraic Structure for Strong S-Boxes Generation
    Hindawi Complexity Volume 2020, Article ID 8868884, 16 pages https://doi.org/10.1155/2020/8868884 Research Article Improved 2D Discrete Hyperchaos Mapping with Complex Behaviour and Algebraic Structure for Strong S-Boxes Generation Musheer Ahmad 1 and Eesa Al-Solami 2 1Department of Computer Engineering, Jamia Millia Islamia, New Delhi 110025, India 2Department of Information Security, University of Jeddah, Jeddah 21493, Saudi Arabia Correspondence should be addressed to Musheer Ahmad; [email protected] Received 30 September 2020; Revised 7 December 2020; Accepted 11 December 2020; Published 23 December 2020 Academic Editor: Jesus M. Muñoz-Pacheco Copyright © 2020 Musheer Ahmad and Eesa Al-Solami. *is is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. *is paper proposes to present a novel method of generating cryptographic dynamic substitution-boxes, which makes use of the combined effect of discrete hyperchaos mapping and algebraic group theory. Firstly, an improved 2D hyperchaotic map is proposed, which consists of better dynamical behaviour in terms of large Lyapunov exponents, excellent bifurcation, phase attractor, high entropy, and unpredictability. Secondly, a hyperchaotic key-dependent substitution-box generation process is designed, which is based on the bijectivity-preserving effect of multiplication with permutation matrix to obtain satisfactory configuration of substitution-box matrix over the enormously large problem space of 256!. Lastly, the security strength of obtained S-box is further elevated through the action of proposed algebraic group structure. *e standard set of performance parameters such as nonlinearity, strict avalanche criterion, bits independent criterion, differential uniformity, and linear approximation probability is quantified to assess the security and robustness of proposed S-box.
    [Show full text]
  • Cryptography Glossary
    Cryptography Glossary A5/1 A stream cipher used in GSM mobile phone communication. 36 Active Attack A cryptanalysis attack that relies on actively disrupting communication 44 or forcefully getting access to data. Adaptive chosen-ciphertext Attack Similar to chosen-ciphertext attack but Eve can choose subsequent ci- 44 phertexts based on information learnt from previous encryptions. Adaptive chosen-plaintext Attack Similar to chosen-plaintext attack but Eve can choose subsequent plain- 44 texts based on information learnt from previous encryptions. AddRoundKey The round key addition operation used during AES encryption and de- 28 cryption. AES The advanced encryption standard that is the successor of DES. 26 Alice The sender of an encrypted message. 11 Asymmetric Cipher Cipher that uses different (not trivially related) keys for encryption and 11, 54 decryption. Asymmetric Cryptography The study of algorithms and protocols for asymmetric ciphers. 54 Birthday Paradox A probability theoretical fact stating that in a random group of ¢¡ people 47 the likelihood that two of them will have the same birthday is more than £¥¤§¦ Block A fixed-length group of bits. 11 Block Cipher A symmetric key cipher, which operates on fixed-length groups of bits, 11 named blocks. Bob The intended receiver of an encrypted message. Bob is assumed to have 11 the key to decrypt it. C2 Short for Cryptomeria. 24 CA Short for Certification Authority. 71 Caesar Cipher Shift cipher with fixed shift of ¡ . 6 © § ¨ © !¨ Carmichael Number A number ¨ for which for all but that is 64 nevertheless composite. CBC Short for Cipher Block Chaining 20 CBC-MAC A method to produce a MAC from a block cipher.
    [Show full text]
  • Design of a New Stream Cipher: PALS
    Design of a New Stream Cipher: PALS Mohammadreza Ashouri , University of Potsdam, Germany desirable statistical properties, such that it is impossible to achieve the main key from keystream. In general, the design [email protected] approaches for keystream generators can be categorized into four categories [2, 3]: Abstract— In this paper, a new stream cipher is designed as a clock-controlled one, but with a new mechanism of altering ● Information theory steps based on system theory in such a way that the structures ● Complexity theory used in it are resistant to conventional attacks. Our proposed ● System theory algorithm (PALS) uses the main key with the length of 256 bits ● Provably secure systems and a 32-bit message key. The most important criteria In the first approach, the design basis is mutual considered in designing the PALS are resistance to known information between the plaintext and the cipher text. A attacks, maximum period, high linear complexity, and good cryptosystem is secure from the perspective of information statistical properties. As a result, the output keystream is very theory, whenever the attackers cannot obtain any similar to the perfectly random sequences and resistant to information about the probability distribution of possible conventional attacks such as correlation attacks, algebraic attack, divide & conquer attack, time-memory tradeoff attack messages in the cipher-text-only attack, despite their and AIDA/cube attacks. The base structure of the PALS is a unlimited computational power. clock-controlled combination generator with memory and we In the second approach, the design basis is the use of obtained all the features according to design criteria with this one-way functions.
    [Show full text]