Docsity

Cryptography Fundamentals: Encryption Techniques and Algorithms, Exams of Cryptography and System Security

Toggle sidebar
bg1
Intro to Cryptography (ECES) 839
Key clustering - Correct answer splitting the key into round keys for
encrypting blocks
Synchronous - Correct answer encryption or decryption request is
performed immediately
Asynchronous - Correct answer Encrypt/Decrypt requests are processed
in queues
Hash Function - Correct answer a one-way mathematical operation that
reduces a message or data file into a smaller fixed length output, or hash
value
fixed bit stream output (hash value) - Correct answer Variable data input
(of any size) + hashing algorithm
MD5 - Correct answer 128 bit hash
RFC 1321
SHA1 - Correct answer 160 bits
Digital signatures - Correct answer provide authentication of a sender and
integrity of a sender's message. A message is input into a hash function.
Then the hash value is encrypted using the private key of the sender. The
result of these two steps yields a digital signature
Symmetric - Correct answer A single key used to encrypt and to decrypt
Asymmetric - Correct answer two different but mathematically related keys
are used where one key is used to encrypt and another is used to decrypt
Digital certificate - Correct answer used to identify the certificate holder
when conducting electronic transactions
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Cryptography Fundamentals: Encryption Techniques and Algorithms and more Exams Cryptography and System Security in PDF only on Docsity!

Intro to Cryptography (ECES) 839

Key clustering - Correct answer splitting the key into round keys for encrypting blocks Synchronous - Correct answer encryption or decryption request is performed immediately Asynchronous - Correct answer Encrypt/Decrypt requests are processed in queues Hash Function - Correct answer a one-way mathematical operation that reduces a message or data file into a smaller fixed length output, or hash value fixed bit stream output (hash value) - Correct answer Variable data input (of any size) + hashing algorithm MD5 - Correct answer 128 bit hash RFC 1321 SHA1 - Correct answer 160 bits Digital signatures - Correct answer provide authentication of a sender and integrity of a sender's message. A message is input into a hash function. Then the hash value is encrypted using the private key of the sender. The result of these two steps yields a digital signature Symmetric - Correct answer A single key used to encrypt and to decrypt Asymmetric - Correct answer two different but mathematically related keys are used where one key is used to encrypt and another is used to decrypt Digital certificate - Correct answer used to identify the certificate holder when conducting electronic transactions

Certificate authority (CA) - Correct answer an entity trusted by one or more users as an authority in a network that issues, revokes, and manages digital certificates Root CA - Correct answer only issues certificates to Subordinate CA's Subordinate CA - Correct answer issues certificates to users + computers on behalf of the Root CA Registration authority (RA) - Correct answer responsible for the accuracy of the information contained in a certificate request. The RA is also expected to perform user validation before issuing a certificate request Plaintext or cleartext - Correct answer unencrypted data Ciphertext or cryptogram - Correct answer encrypted data Cryptosystem - Correct answer This represents the entire cryptographic operation. This includes the algorithm, key, and key management functions Encryption - Correct answer Changing a Message so it can only be easily read by the intended recipient changes plaintext to cyphertext Decryption - Correct answer Changing an encrypted message back to it's original format. changes cyphertext to plaintext Key or Cryptovariable - Correct answer The input that controls the operation of the cryptographic algorithm Non-repudiation - Correct answer reasonable assurance that the sender is who they say they are Algorithm - Correct answer mathematical construct Cryptanalysis - Correct answer study of techniques for attempting to defeat cryptographic techniques and information security services

Provided by mixing (changing) the key values used during the repeated rounds of encryption Diffusion - Correct answer provided by mixing up the location of the plaintext throughout the ciphertext Avalanche effect - Correct answer where a minor change in either the key or the plaintext will have a significant change in the resulting ciphertext Stream Cipher - Correct answer encrypts bit by bit Block Cipher - Correct answer encrypts in blocks (think buckets or baskets) Electronic Code Book (ECB) - Correct answer Each block is encrypted independently, BUT identical plaintext blocks are encrypted into identical ciphertext blocks Cipher Block Chaining (CBC) - Correct answer Each block of plaintext is XORed with the previous ciphertext block before being encrypted. This way, each ciphertext block depends on all plaintext blocks processed up to that point. To make each message unique, an initialization vector must be used in the first block. Propagating Cipher Block Chaining (PCBC) - Correct answer Each block of plaintext is XORed with the XOR of the previous plaintext block and the previous ciphertext block before being encrypted. As with CBC mode, an initialization vector is used in the first block. Cipher Feedback (CFB) - Correct answer Allows encryption of partial blocks rather than requiring full blocks for encryption. This eliminates the need to pad a block like in CBC. Output Feedback (OFB) mode - Correct answer Makes a block cipher into a synchronous stream cipher. It generates keystream blocks, which are then XORed with the plaintext blocks to get the ciphertext. Counter mode - Correct answer Like OFB, turns a block cipher into a stream cipher. It generates the next keystream block by encrypting successive values of a "counter".

Blowfish - Correct answer Block cipher using from 32- through 448-bit (the default is 128) keys to encrypt 64 bits of data. Symmetric Serpent - Correct answer Block cipher of 128 bits and supports a key size of 128, 192 or 256 bits. 32 rounds. AES Finalist Symmetric Twofish - Correct answer Adapted version of Blowfish with 128 bit blocks, 128-256 bit keys and 16 rounds. AES Finalist. Symmetric Skipjack - Correct answer Symmetric Key Algorithm, Developed by the NSA and reliant on the Clipper Chip. Uses an 80-bit key to encrypt or decrypt 64-bit data blocks. Unbalanced Feistel with 32 rounds. IDEA cipher - Correct answer 64-bit blocks using a 128-bit key and consists of a series of 8 rounds with half-round output Cryptography - Correct answer the study of secure communication mechanisms / methods. It provides ways to encode a message so that it is not readable by any unauthorized persons, but is easily readable by the intended recipient. Atbash Cipher - Correct answer Reverses the alphabet ( A becomes Z, B becomes Y ... ) - Mono-Alphabet Substitution Cipher Used by ancient hebrew scholars Cesar Cipher - Correct answer Choose some number by which to shift each letter of the message. ( right is "+" | left is "-" | A "+2" = C | C "-1" = B )

  • Mono-Alphabet Substitution Cipher

spaces with the rest of the letters of the alphabet in order. The technique encrypts pairs of letters (digraphs), instead of single letters as in the simple substitution cipher. The Playfair is significantly harder to break since the frequency analysis used for simple substitution ciphers does not work with it. A typical 5x5 key square is below: (Any sequence of 25 letters can be used as a key, so long as all letters are in it and there are no repeats. Note that there is no 'j', it is combined with 'i'.) k e y w o r d a b c f g h i l m n p q s t u v w x The ADFGVX Cipher - Correct answer the first cipher used by the German Army during World War I. Invented by Colonel Fritz Nebel in 1918. A transposition cipher which used a modified Polybius square with a single columnar transposition used to encode a 36 letter alphabet. The key for this algorithm is a six-by-six square made up of the letters ADFGVX forming the outer row and column, the rest of the table is comprised of the letters of the alphabet and the numbers 0 through 9 distributed randomly in the square. Example is below: (you encrypt message by finding it's coordinates on the grid and using the row and column coordinates as the encrypted representation of the plaintext - each plaintext charachter becomes two encrypted charchters in other words) A D F G V X A 1 Q 2 E T P D W R U I 9 O F Y 3 4 A S F G 5 H 6 J L K V G D 7 Z 0 X X C V B N M 8 Plaintext = DOG Ciphertext = DVXDAV

The ENIGMA Machine - Correct answer a multi-alphabet substitution cipher using machinery to accomplish the encryption. In World War II, the Germans used this as an electromechanical rotor-based cipher system. Symmetric encryption expressed mathematically - Correct answer C = E(k,p) Cipher text (C) is equal to the encryption function (E) with the key (k) and plaintext (p) being passed as parameters to that function. Symmetric decryption expressed mathematically - Correct answer P = E(k,c) Plaintext (P) is equal to the encryption function (E) with the key (k) and ciphertext (c) being passed as parameters to that function. Information Theory - Correct answer In 1949, Claude Shannon published a paper in the Bell System Technical Journal called "Communication Theory of Secrecy Systems". Shannon and Warren Weaver then published a book titled Mathematical Theory of Communication. Important concepts from Information Theory - Correct answer 1. Diffusion

  1. Confusion
  2. Avalanche effect - Horst Feistel's variation on Shannon's concept of diffusion Kerkchoff's Principle - Correct answer In 1883, Auguste Kerkchoff proposes that a cryptosystem should be secure even if all of the elements of the system could be exposed or known EXCEPT the key(s). Binary AND - Correct answer If both numbers have a one in both places, then the resultant number is a one. If not, then the resultant number is a zero. 1st - 1100 2nd - 0100 ============== Result - 0100

AES

Serpent Twofish Skipjack IDEA Asymmetric Cryptography - Correct answer "Public / Private Key Pair" one key is used to encrypt and the other to decrypt.Diffusion: Having changes to one character in the plaintext affect multiple characters in the ciphertext. Avalanche - Correct answer A small change yields large effects in the output. This is Feistel's varaiation on Shannon's concept of Diffusion. Ideally, a change in one bit in the plaintext would affect all the bits of the ciphertext. This would be a complete avalanche. Entropy (Information Theory) - Correct answer A measure of the uncertainty associated with a random variable. Shannon's source coding theorem - Correct answer It is impossible to compress the data such that the code rate is less than the Shannon entropy of the source, without it being virtually certain that information will be lost. Natural Numbers - Correct answer 1,2,3,4, etc... All non-zero whole numbers Represented by N Integers - Correct answer All non-zero whole numbers

  • 0
  • negative numbers any number that can be written without a fractional component Represented by Z Rational Numbers - Correct answer Numbers expressed as the ratio of integers, or fractions

Fractions, Mixed Numbers, Repeating Decimals Represented by Q Real numbers - Correct answer Fractions, Mixed Numbers, Repeating Decimals, Integers, and Irrational Numbers (such as √2) Represented by R Imaginary Numbers - Correct answer Numbers whose square is negative Represented by lowercase i Prime Numbers - Correct answer Any number whose factors are 1 and itself Co-Prime Numbers - Correct answer A number that has no factors in common with another number ( 3 & 7 ) Eulers Totient - Correct answer Counts the positive integers up to a given integer n that are relatively prime to n. For example, 7 has six numbers that are co-prime to it. Modulus Operator - Correct answer Remainder from Division Divide A by N and return the remainder. (sometimes symbolized as %, as in 9 % 2 = 1) 5 mod 2 = 1 12 mod 5 = 2 Fibonacci Numbers - Correct answer Sequence of numbers derived by adding the last number in the sequence to the previous one to create the next Example: 1,1,2,3,5,8,13,21,35,56,

To be suitable for cryptography, any PRNG should meet K3 and K standards. Examples of PRNGs - Correct answer Naor-Reingold Mersenne Twister Linear Congruential Generator Lehmer Random Number Generator (twisted generalized feedback shift registers) Lagged Fibonacci Genrator (LFG): -If addition is used, then it is an Additive Lagged Fibonacci Generator or ALFG. -If multiplication is used, it is a Multiplicative Lagged Fibonacci Generator or MLFG. -If the XOR operation is used, it is called a two-tap generalized feedback shift register, or GFS. Diffie-Helmann - Correct answer A cryptographic protocol that allows two parties to establish a shared key over an insecure channel. Often used to allow parties to exchange a symmetric key through some unsecure medium, such as the Internet. It was developed by Whitfield Diffie and Martin Hellman in 1976. The first publicly-described asymmetric algorithm RSA - Correct answer Developed in 1977 by three mathematicians, Ron Rivest, Adi Shamir, and Len Adleman and MIT. Based on the practical difficulty of factoring the product of two large prime numbers. Key sizes are typically from 1,024 - 4,096 bits. Encryption: C = M^e mod n Decryption: C^d mod n = (M^e mod n)^d

Menezes-Qu-Vanstone (MQV) - Correct answer A protocol used for key agreement that is based on Diffie-Hellman. It is incorporated in the public key standard IEEE P1363. Digital Signature Algorithm (DSA) - Correct answer Described in U.S. Patent 5,231, FIPS 186. Patent filed July 26, 1991, and attributed to David W. Kravitz. It was adopted by the U.S. government in 1993 with FIPS 186. Elliptic Curve Cryptography (ECC) - Correct answer The security of Elliptic Curve cryptography is based on the fact that finding the discrete logarithm of a random elliptic curve element with respect to a publicly known base point is difficult to the point of being impractical to do so. Elliptic Curve Diffie Hellman (used for key exchange) Elliptic Curve Digital Signature Algorithm (ECDSA) Elliptic Curve MQV key agreement protocol y^2 = x^3 + Ax + B ElGamal - Correct answer Based on Diffie-Hellman and was invented in 1984 by Taher Elgamal. It is used in some PGP implementations as well as GNU Privacy Guard software. The algorithm consists of three parts: the key generator, the encryption algorithm, and the decryption algorithm. Digital Signatures - Correct answer Used to provide non-repudiation & proof of origin for the sender of an e-mail. They are also able to provide integrity protection for a file or block of data. With a digital signature, the sender encrypts data with their private key. If the recipient decrypts the data with the sender's public key, then it must have been sent by the person purported to have sent the message. Digital Certificates - Correct answer A certificate is a digital representation of information that identifies you as a relevant entity by a trusted third party.

Online Certificate Status Protocol (OCSP) - Correct answer A real-time protocol for verifying certificates. Server-based Certificate Validation Protocol (SCVP) - RFC 5055 - Correct answer An Internet protocol for determining the path between a X. digital certificate and a trusted root (Delegated Path Discovery) and the validation of that path (Delegated Path Validation) according to a particular validation policy. Certificate Classes - Correct answer Class 1 - for individuals, intended for email Class 2 - for organizations for which proof of identity is required Class 3 - for servers and software signing, for which independent verification and checking of identity and authority is done by the issuing CA Class 4 - for online business transactions between companies Class 5 - for private organizations or governmental security Certificate Management (Certificate Lifecycle) - Correct answer Setup and Initialization Phase:

  • Registration
  • Key Pair Generation,
  • Certificate Generation,
  • Certificate Dissemination Administration Phase:
  • Key storage,
  • Certificate retrieval and validation,
  • Backup or escrow, Recovery Cancellation and History Phase:
  • Expiration,
  • Renewal,
  • Revocation,
  • Suspension,
  • Destruction

Update and Patch Vulnerabilities:

  • Person who can recover keys from the keystore on behalf of a user,
  • Issue recovery agent certificate,
  • EFS Recovery Agent certificate,
  • Key Recovery Agent certificate Trust Models - Correct answer 1. Single Authority
  1. Hierarchical
  2. Web of Trust Password Authentication Protocol (PAP) - Correct answer Authentication Protocol. Transmission of user name and password in the clear. Basic HTTP Authentication uses PAP. Shiva Password Authentication Protocol (S-PAP) - Correct answer Authentication Protocol. Extends PAP by encrypting username and password transmission. Challenge Handshake Authentication Protocol (CHAP) - Correct answer Authentication Protocol. Calculates a hash after the user has logged in, then it shares that hash with the client system. Periodically, the server will ask the client to provide that hash (this is the challenge part). If the client cannot, then it is clear that the communications have been compromised. MS-CHAP is a Microsoft-specific extension to CHAP. Kerberos - Correct answer Authentication Protocol. A user logs in, the authentication server verifies their identity and then contacts the ticket granting server (these are often on the same machine). The ticket granting server sends an encrypted ticket to the uses machine. When the user needs to access some resource on the network the user's machine uses that ticket granting ticket to gain access to the target machine. Kerberos Components - Correct answer 1. Principal: Any server or client that can be assigned a ticket.
  3. Authentication Server (AS): Server that authorizes the principal and connects them to the ticket granting server.
  • Certificate holder's information
  • Digital signature of certificate owner
  • Certificate validity period
  • Preferred symmetric encryption algorithm for the key Wired Equivalent Privacy (WEP) - Correct answer Wifi Encryption. Uses the stream cipher RC4 to secure the data and a CRC-32 checksum for error checking. Standard WEP uses a 40-bit key with a 24-bit initialization vector (IV). (don't use this... seriously) WiFi Protected Access (WPA) - Correct answer Wifi Encryption. Replaces RC4 with Temporal Key Integrity Protocol (TKIP), which is a 128-bit per- packet key, meaning that it dynamically generates a new key for each packet. (probably don't use this if you can help it) WPA-2 - Correct answer Wifi Encryption. Based on the IEEE 802.11i standard. Uses AES with CCMP to provide for enhanced confidentiality, integrity and authentication. WPA-2 Enterprise - Correct answer Wifi Encryption. Also referred to as WPA-802.1x mode. Requires a RADIUS authentication server. An Extensible Authentication Protocol (EAP) is used for authentication. How SSL (Secure Socket Layer) works - Correct answer 1. The browser asks the web server to prove its identity.
  1. The server sends back a copy of its SSL certificate.
  2. The browser checks to see if the certificate is from a CA it trusts.
  3. The server sends back a digitally signed acknowledgement and a session is started. How TLS (Transport Layer Security) works - Correct answer A TLS client and server negotiate a connection by using a handshaking procedure. The handshake begins when a client connects to a TLS-enabled server

requesting a secure connection and presents a list of encryption and hash functions it can support. From this list, the server picks the strongest encryption and hash function that it also supports and notifies the client of the chosen algorithms. The server sends back its identification in the form of a digital certificate. This is a standard X.509 certificate. (The client may contact the CA that issued the certificate and confirm the validity of the certificate before proceeding.) In order to generate the session keys used for the secure connection, the client encrypts a random number with the server's public key and sends the result to the server. The server decrypts that number with its private key. From the random number, both parties generate key material for encryption and decryption. Virtual Private Network (VPN) - Correct answer Used to extend access to a private network over a public network such as the Internet. Protocols that are often used to create VPNs - Correct answer Point to Point Tunneling Protocol (PPTP) - Works at Layer 2 of the OSI model. Offers the ability to encrpyt and authenticate. Uses Extensible Authenitication Protocol (EAP) and/or Challange Handshake Authentication Protocol (CHAP) to authenticate. Uses Microsoft Point to Point Encryption (MPPE) for encryption. (MPPE is a derived version of DES). PPTP ONLY works over standard IP Networks. Layer 2 Tunneling Protocol (L2TP) - Works at Layer 2 of the OSI model. Combination of PPTP and Cisco's Layer 2 Forwarding Protocol (L2F). Offers additional methods for authentication; PPTP offers two, whereas L2TP offers five. In addition to CHAP and EAP, L2TP offers PAP, SPAP, and MS-CHAP. L2TP works over standard IP networks, but also X.25 and ATM. Internet Protocol Security (IPSec) - Used with L2TP VPN's to provide the encryption capability required to protect data. SSL/TLS VPN - Used to establish a VPN via a web browser. Encrypting File System (EFS) - Correct answer EFS is a Microsoft technology that lets you encrypt data on your computer, and control who can decrypt, or recover, the data. To use EFS, all users must have EFS certificates. EFS users must also have NTFS permission to modify the files.