Cryptographicalgorithms

234 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
234
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cryptographicalgorithms

  1. 1. Cryptographic Algorithms By: Kirti Chawla
  2. 2. <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>What is a Cipher or Crypto-algorithm ? A method or system for transforming given information in order to conceal its meaning.
  3. 3. <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>Transposition ciphers Prologue Substitution ciphers Transposition Substitution Computers Can Only Execute Answers CCOEAoan xnmnlesp _ycwu__u et__tre_ _ess____ Computers Can Only Execute Answers Frpsxwhuv Fdq Rqob Hahfxwh Dqvzhuv
  4. 4. <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>Algorithms Genealogy Algorithms Ciphers Authenticators Asymmetric Symmetric DES3DES AES IDEA RC6 BlowFish … … … RSA ELGAMAL … SHA MD5 …
  5. 5. Algorithmic Parlance <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>Strong Open Key-oriented
  6. 6. At the heart of Algorithms <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>Methods to do Categories Directional Behavior Anomalous Behavior Handling Key Management Controlled Chaos Creation Deciding Operations <ul><li>Simple XOR </li></ul><ul><li>Modular Arithmetic with Polynomials </li></ul><ul><li>Relative Prime Factors </li></ul><ul><li>S-boxes & P-boxes </li></ul><ul><li>Inversion </li></ul><ul><li>Data distribution/redundancy </li></ul><ul><li>Self generation or ask from user </li></ul><ul><li>Key organization </li></ul><ul><li>Key protection </li></ul><ul><li>Buffer management </li></ul><ul><li>Padding and boundary cases </li></ul><ul><li>State management </li></ul><ul><li>Hash or One time PADs </li></ul><ul><li>Bi-directionality </li></ul>
  7. 7. Deciding Operations <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>This is secret message This is key Axaw sa dawawt sazawcsr This is secret message X 7 + x 5 + x 2 + 1 This is key Axaw sa dawawt sazawcsr This is secret message Factorized key 1 Factorized key 2 Axaw sa dawawt sazawcsr Simple XOR Modular arithmetic with polynomials Relative prime factors
  8. 8. Controlled Chaos Creation <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>S-box P-box Inversion Data distribution/redundancy 1010 (data) 001 1010 001 1010 0101(data) 1010 001 1010 001
  9. 9. Key Management <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>Self-generation Ask from user 1010 (data) 1010 XOR 11 = 1001 0101 (data) 0101 XOR 11 = 0110 Key organization 1010 0000 1010 1111 0000 1011 (key) 1010 0000 1010 (key) Key protection 1010 0000 1010 1111 0000 1011 (key) 1010 0000 1010 1111 0000 1010 1010
  10. 10. Anomalous Behavior Handling <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>Buffer management Padding Boundary cases State management <ul><li>1010 1000 0010 1100 </li></ul><ul><li>[+] 1000 1001 = Overflow </li></ul><ul><li>Capture of 1010 1000 0010 1100 as </li></ul><ul><li>plain-text from buffer on which </li></ul><ul><li>algorithm operate </li></ul>If the input data or key are not exactly fulfilling the algorithm requirements, lets say required input is of multiple of 2 and > 512 bit, but user does not provide … ! U/SIGN-INT * U/SIGN-INT > 65536/32768 If the algorithm works in various stages, each stage signifying a state and regurgitating partially (weak) cipher-text and hence making possible ‘interleaving’… !
  11. 11. Directional Behavior <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>Hash or one time PADs Bi-directionality <ul><li>Use one character once only for </li></ul><ul><li>substitution. </li></ul><ul><li>Destroy or delete encryption </li></ul><ul><li>mechanism. </li></ul><ul><li>Destroy or delete decryption </li></ul><ul><li>mechanism. </li></ul><ul><li>Hash differs from one time PADs in </li></ul><ul><li>a way of producing output. </li></ul><ul><li>Given the single algorithm, the </li></ul><ul><li>enciphering and deciphering </li></ul><ul><li>operations should be inverse of </li></ul><ul><li>each other. </li></ul><ul><li>Bi-directional nature of algorithm is </li></ul><ul><li>there, because of need to get original </li></ul><ul><li>data back. </li></ul>
  12. 12. <ul><li>A single key for enciphering and deciphering operations. </li></ul><ul><li>More the number of bits of key, more secure your data. </li></ul><ul><li>Algorithms are usually characterized as stream or block ciphers. </li></ul><ul><li>Algorithmic proclivity to certain weak keys can create problem. </li></ul><ul><li>Used generally for protecting data. </li></ul>Symmetric Ciphers <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>
  13. 13. <ul><li>One key for enciphering and another key for deciphering </li></ul><ul><li>operation. </li></ul><ul><li>More the distance between mutually prime nos. ( here they are key ), </li></ul><ul><li>more secure your data. </li></ul><ul><li>Used generally for protecting data as well for making sure its </li></ul><ul><li>authentication . </li></ul>Asymmetric Ciphers <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>
  14. 14. <ul><li>Hash functions gives a fixed-length output for a arbitrary-length </li></ul><ul><li>message. </li></ul><ul><li>Strength of algorithm is measured by collision resistance . </li></ul><ul><li>Uni-directionality is innate capability of authentication algorithms. </li></ul><ul><li>Authentication is achieved by re-computing hash and compared </li></ul><ul><li>with stored hash value . </li></ul>Authenticators <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>
  15. 15. <ul><li>Introduction </li></ul><ul><li>Classification </li></ul><ul><li>Algorithms </li></ul><ul><li>Vis-à-Vis </li></ul><ul><li>Looking back </li></ul>Egyptian pictorial substitution Caesar cipher Cipher cylinders Enigma DES/… algorithms

×