• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 14 pages
Exam (elaborations)

CompTIA Security+ (SY0-501) – Cryptography(Solved)2022

Document preview thumbnail
Preview 2 out of 14 pages

encryption A reversible process of converting data such that to a third party the data is nothing more than a random binary string. decryption Makes encrypted data readable. cryptography The science of encrypting and decrypting data. encryption The process of converting plaintext information into ciphertext information. plaintext Any form of easily readable binary data. ciphertext Any form of encrypted binary data. code A representation of an entire phrase or sentence. A ____________ tends to represent text on a character-by-character basis. cipher True or False: Codes are not typically transformative; that is, there is usually no formal process to convert the true meanings of messages into their coded equivalents or back. True codebook A predefined dictionary that translates codes to their plaintext messages and back. What do ciphers require for decryption? Some form of formal, usually mathematical process. What do codes require for decryption? A codebook. ____________ are entire words and phrases; ____________ are individual characters. Codes, ciphers data-at-rest Data that resides in storage and is not currently accessed, transmitted, or received, nor used by the computer. data-in-transit Describes data currently in transport. data-in-process Describes data currently in use by a computing device, and not at rest or in transit. What type of data has high requirements for confidentiality and low requirements for integrity? data-at-rest What type of data has high requirements for confidentiality and high requirements for integrity? data-in-transit What type of cypher swaps letters of the alphabet for other letters? substitution cyper shift cipher A cipher where each letter in the original message is replaced with a letter corresponding to a certain number of letters shifted up or down in the alphabet. Also known as a Caesar cipher. polyalphabetic substitution A cipher that uses multiple alphabets. Also called a Vigenère cipher. confusion Every character in a key is used to make the ciphertext more random looking. diffusion Refers to the property that redundancy in the statistics of the plaintext is "dissipated" in the statistics of the ciphertext. The smallest change in the key makes for very different ciphertext. A ____________ cipher transposes or changes the order of characters in a message using some predetermined method that both the sender and recipient know. transposition obfuscation algorithm An algorithm that makes plaintext hard to understand. cryptanalysis The study of breaking encryption, the opposite of cryptography. algorithms Mathematical constructs that define how to transform plaintext into ciphertext, as well as how to reverse that process during decryption. A _______ applies a variable used by the algorithm for the final cryptosystem key cryptovariable The key used for encryption and decryption. Kerckhoffs' principle States that the algorithm should not be the secret part of the cryptographic process or method used; the key should be kept secret, not the algorithm. key escrow An arrangement in which the keys needed to decrypt encrypted data are held in escrow so that, under certain circumstances, an authorized third party may gain access to those keys. block algorithm An algorithm that operates on a predefined size of a group of bits, known as a block. streaming algorithms An algorithm that operates on individual bits, one bit at a time. Tend to work much faster than block algorithms. What is the most commonly used binary math function used in cryptography? eXclusive OR (XOR) XOR compares two bits to determine difference. shift Moving the ciphertext left or right. round An iteration of cryptography that can be applied multiple times. cryptosystem Includes everything in a cryptographic process, such as the algorithms, keys, functions, methods, and techniques. symmetric cryptography Uses a single key that both encrypts and decrypts data. session keys Keys created and used for a single communications session. True or False: Symmetric key cryptography is both low latency and good at handling large amounts of data. True What are the weaknesses in symmetric key cryptography? The more people who have the key increases the chances that it will get inadvertently disclosed to an unauthorized person. Getting the key into the hands of only the desired users presents challenges. key exchange Refers to the process used to exchange keys between users who send a message and those who receive it. What is the formula for determining the required number of keys in symmetric key cryptography? K = N × (N - 1)/2 • K is the total number of keys required. • N is the number of people in the group. in-band key exchange Involves using the same communications channel you are using to send the message to send the key. out-of-band key exchange Involves the use of a separate, independent channel, such as snail mail, USB stick, or even a different network connection, to send the key to the authorized users. What are the advantages and disadvantages to symmetric key cryptography? Symmetric key cryptography excels in speed, efficiency, and the ability to handle large amounts of data easily. The disadvantages primarily involve scalability and key exchange. asymmetric key cryptography Encryption that uses two separate keys—a key pair—for secure communication. Data encrypted with one key requires the other key in the key pair for decryption. public key cryptography An encryption technique that uses a paired public and private key (or asymmetric key) algorithm for secure data communication. A message sender uses a recipient's public key to encrypt a message. To decrypt the sender's message, only the recipient's private key may be used. What is the primary asymmetric key cryptography implementation? public key cryptography True or False: In asymmetric key cryptography, what one key encrypts, only the other key in the pair may decrypt. True What are the advantages and disadvantages of asymmetric key cryptography? Asymmetric key cryptography does great key exchange, but features slower speed compared to symmetric key cryptography and doesn't handle large amounts of data very efficiently. hashing The creation of unique numbers for data and originators of information. hash A fixed-length piece of ciphertext, usually expressed in a hexadecimal format that represents a variable-length text. Also known as a message digest. What is the primary purpose of a hash? To ensure data integrity. hybrid cryptography Incorporates a combination of asymmetric and symmetric encryption with hashing to benefit from the strengths of each form of encryption. Data Encryption Standard (DES) An older, now obsolete standard for commercial-grade encryption. Uses an algorithm called Lucifer, developed by IBM. 64-bit key size (8 bits used for computational overhead, so the true key size is only 56 bits). Symmetric block algorithm 64-bit block sizes How many rounds are there for each mode in DES? 16 Electronic Code Book (ECB) A DES mode in which plaintext blocks of 64 bits are manipulated to produce ciphertext. A piece of plaintext always produces the same cipertext. Cipher Block Chaining (CBC) A DES mode that produces much stronger encryption by XORing the previous block to the block being encrypted. initialization vector (IV) A fixed-size input to a cryptographic primitive that is typically required to be random or pseudorandom. Cipher Feedback (CFB) A DES mode that is like CBC except the plaintext is XORed into the IV after each round. Output Feedback (OFB) A DES mode that is very similar to CFB mode, but instead of the previous block's ciphertext being the next block's IV, it takes the result of the previous encryption of the IV and key before the plaintext is XORed. Counter (CTR) In DES, Counter (CTR) mode uses a random 64-bit block as the first IV, then increments a specified number or counter for every subsequent block of plaintext. CTR mode offers the best performance. What are the five cipher modes of operation in DES? Electronic Code Book (ECB), Cipher Block Chaining (CBC), Cipher Feedback (CFB), Output Feedback (OFB), Counter (CTR) Triple DES (3DES or TDES) A later iteration of DES that basically puts plaintext blocks through the same type of DES encryption process, but it does so in three distinct iterations. Where DES uses single 56-bit keys, 3DES uses three 56-bit keys. 3DES has a 168-bit key (3 x 56). What modes does 3DES use? The same modes as DES. Electronic Code Book (ECB), Cipher Block Chaining (CBC), Cipher Feedback (CFB), Output Feedback (OFB), Counter (CTR) Advanced Encryption Standard (AES) A symmetric block cipher. Block sizes of 128 bits Key sizes of 128, 192, and 256 bits. 10 rounds for 128-bit keys, 12 rounds for 192-bit keys, and 14 rounds for 256-bit keys Can use different modes to encrypt and decrypt data. side-channel attacks Any attack based on information gained from the physical implementation of a cryptosystem, rather than brute force or theoretical weaknesses in the algorithms What is the de jure encryption standard for the U.S. government and the de facto standard for private and commercial organizations? AES Galois/Counter Mode (GCM) A mode that starts with CTR mode, but adds a special data type known as a Galois field to add integrity. What modes does AES support? All the modes listed under DES and GCM. What mode does AES tend to use? GCM Blowfish A symmetric block cipher that accepts 64-bit blocks. Has a wide range of variable key links, from 32 bits, all the way up to 448 bits. Uses 16 rounds of encryption. Twofish A symmetric block algorithm 128-bit block size Can use 128-bit, 192-bit, or 256-bit keys 16 rounds of encryption Rivest Cipher 4 (RC4) Streaming symmetric algorithm one round of encryption. key sizes from 40 to 2048 bits in length Very fast protocol How does RC4 work? RC4 uses a key stream (stream of pseudo-random bits injected into the encryption process), which is then combined with plaintext using the XOR function to encrypt them into ciphertext. Algorithm Metrics RSA Asymmetric block algorithm Used to create and use a public-private key pair Uses one round of encryption Typical key sizes range from 1024 to 4096 bits How does RSA work? It generates keys based on the mathematical problem of the difficulty of factoring two very large prime numbers (each generally up to several hundred digits in length). _______ is the de facto asymmetric protocol used for generating public-private key pairs. RSA What does RSA stand for? The first letters of its creators, Rivest, Shamir, and Adleman. Diffie-Hellman (D-H) A set of asymmetric key exchange protocols that uses asymmetric key exchange to give both sides of a conversation a single symmetric key. Provides a secure key exchange to establish a secure communications session over an insecure channel, even when two parties have no previous relationship. How does Diffie-Hellman generate key pairs? It uses discrete logarithms, modulo arithmetic, and prime numbers to generate key pairs randomly that derive a symmetric key without ever sending any private information. Diffie-Hellman Ephemeral (DHE) Part of the D-H key exchange process requires each side to create a temporary key, called an ephemeral key, which is used in only one exchange and then discarded. This ephemeral key usage is called Diffie-Hellman Ephemeral (DHE). D-H group A preset modulus of a specific size. Elliptic Curve Diffie-Hellman Ephemeral (ECDHE) Ephemeral key exchange that skips pseudo-random number generation and instead uses ephemeral keys calculated using elliptic curve cryptography, Many applications (such as secure Web sites) use _______ for authentication and _______ for key exchange. RSA, D-H Pretty Good Privacy (PGP) A cryptography application and protocol suite used in asymmetric cryptography. What type of operations is PGP used for? Bulk encryption, data-at-rest encryption (including both file and full disk encryption), key-pair generation, and key exchange. What type of keys can PGP use? Both asymmetric and symmetric keys. Gnu Privacy Guard (GPG) Open source equivalent of PGP. Where will you most likely see PGP/GPG? e-mail. Elliptic curve cryptography (ECC) An asymmetric method of cryptography based upon problems involving the algebraic structure of elliptic curves over finite fields. ECC has many uses, including variations that apply both to encryption and digital signatures. Why has ECC been widely implemented in mobile devices, notably smart phones? It requires low computational power and memory usage. _______ uses smaller keys that are harder to break. ECC ElGamal An asymmetric algorithm that can be used for both digital signatures and general encryption. It's widely used in open standards and cryptosystems, including PGP and GPG. What U.S. Government algorithm is based on ElGamal? Digital Signature Algorithm (DSA) What type of mathematical problems does ElGamal utilize? Mathematical problems related to computing discrete logarithms. True or False: An identical piece of plaintext will always produce a unique hash value. False collisions Two different plaintext inputs that produce the same hash value. Why is hashing used? For confidentiality, a password can be "hashed" and the resulting hash sent over an untrusted network, if needed, for authentication, so the actual password is not transmitted. True or False: Hashes cannot be decrypted. True ____________ can be used to assure both confidentiality and integrity. Hashing Message Digest version 5 (MD5) A hashing algorithm that generates a 128-bit hash, 32 hexadecimal characters long. Secure Hash Algorithm (SHA) A series of hashing functions sponsored by NIST as a U.S. government standard SHA-1 A 160-bit algorithm Originally designed to be used as the standardized Digital Signature Algorithm for the United States Produces 40-character hashes What two algorithms make up SHA-2? SHA-256 and SHA-512 What hash function does SHA-3 use? Keccak What were SHA-1 and SHA-2 replaced by? SHA-3 RACE Integrity Primitives Evaluation Message Digest (RIPEMD) A hashing algorithm not often seen in practical implementation Developed in an open-standard type of environment Comes in 128-, 160-, 256-, and 320-bit versions Hash Message Authentication Code (HMAC) Used in conjunction with a symmetric key both to authenticate and verify the integrity of the message HMAC can use either MD5 or SHA series of hashing algorithms The HMAC process produces a hash value whose length and strength corresponds to whichever hashing algorithm was used to create it How does HMAC work? HMAC uses a secret (symmetric) key with the hashing process. Only someone who has the secret key can successfully produce the same hash. message authentication code (MAC) Hash produced using hashing functions and symmetric keys. In regards to CIA, what does HMAC ensure? Integrity and authenticity of a message. How does a web server prove that the public key your client recieves came from the proper server? The web server adds a digital signature. What are the steps that the web server takes when creating a digital signature? The Web server takes the current Web page and does the following: 1. Encrypts the page with the client's public key. 2. Hashes the page. 3. Encrypts the hash with the server's private key. 4. Sends the page, the public key, and the hash to the client. What are the steps does the client take when receiving a digital signature? 1. The client decrypts the hash using the server's public key to verify it really came from the server. (Only the server's public key can decrypt something encrypted with the server's private key.) 2. The client decrypts the message with the client's private key. What makes up a digital signature? The hash value encrypted with the private key and that accompanies the public key is a digital signature. What does a digital signature verify? That the entity who sent you a public key is legitimately the one who possesses the corresponding private key. spoofing Hacking or deception that imitates another person, software program, hardware device, or computer, with the intentions of bypassing security measures. digital certificate An electronic document used to prove the ownership of a public key. What is the most common certificate format? X.509 How does public key infrastructure create robust and secure systems? By combining symmetric and asymmetric key cryptographic methods with hashing. Public Key Cryptography Standards (PKCS) Developed by RSA Security they describe particulars about certificate construction and use. key generation The process of creating a public and private key pair, which is then issued to an individual, based upon his or her confirmed identity. What is the most popular key generation algorithm? RSA key exchange A process, typically using Diffie-Hellman algorithms, which assists in the creation and secure exchange of symmetric keys, typically session keys used for one communications session only.


Document information

Uploaded on
November 23, 2022
Number of pages
14
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers
$13.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EvaTee
3.9
(991)
Sold
5507
Followers
3584
Items
59646
Last sold
10 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.