Difference between revisions of "BSc: Fundamentals of Computer Security"

From IU
Jump to navigation Jump to search
(Created page with "= Fundamentals of Computer Security = * <span>'''Course name:'''</span> Fundamentals of Computer Security * <span>'''Course number:'''</span> XYZ * <span>'''Knowledge area:''...")
 
Line 92: Line 92:
 
|align="center"| 1
 
|align="center"| 1
 
| Computer security technology and principles
 
| Computer security technology and principles
|align="center"| 12
+
|align="center"| 36
 
|-
 
|-
 
|align="center"| 2
 
|align="center"| 2
 
| Software and system security
 
| Software and system security
|align="center"| 24
+
|align="center"| 16
 
|-
 
|-
 
|align="center"| 3
 
|align="center"| 3
 
| Cryptographic algorithms
 
| Cryptographic algorithms
|align="center"| 24
+
|align="center"| 12
 
|}
 
|}
   
Line 108: Line 108:
 
==== Topics covered in this section ====
 
==== Topics covered in this section ====
   
  +
* Overview
* General introduction to the course
 
  +
* Cryptographic tools
* Computer networks basic
 
  +
* User authentication
* Socket programming
 
  +
* Access control
* UDP socket programming
 
  +
* Database and data center security
* TCP socket programming
 
  +
* Malicious software
  +
* Denial-of-service attacks
  +
* Intrusion detection
  +
* Firewalls and intrusion prevention systems
   
 
==== What forms of evaluation were used to test students’ performance in this section? ====
 
==== What forms of evaluation were used to test students’ performance in this section? ====
Line 151: Line 155:
 
==== Typical questions for ongoing performance evaluation within this section ====
 
==== Typical questions for ongoing performance evaluation within this section ====
   
# What are the distributed systems?
+
# What is meant by the CIA triad?
  +
# What is the difference between data integrity and system integrity?
# Give an example of distributed systems.
 
  +
# How is cryptanalysis different from brute-force attack?
# What are the advantages of layered architecture?
 
  +
# List and briefly explain the different approaches to attacking a symmetric encryption scheme.
# What are the roles of transport protocols?
 
  +
# In general terms, what are four means of authenticating a user’s identity?
# How the TCP and UDP differ from each other? When one is preferred over the other?
 
# What is socket programming?
+
# What is a Trojan horse attack?
  +
# What is the difference between authentication and authorization?
# How socket programming is different for UDP and TCP?
 
  +
# How does RBAC relate to DAC and MAC?
 
  +
# Define the terms database, database management system, and query language.
  +
# What is a relational database and what are its principal ingredients?
  +
# What is an SQL injection attack? What are the implications of an SQL injection attack?
  +
# List the categories for grouping different types of SQLi attacks.
  +
# Why is RBAC considered fit for database access control?
  +
# What are three broad mechanisms that malware can use to propagate?
  +
# What is a blended attack?
  +
# Define a denial-of-service (DoS) attack
  +
# State the difference between a SYN flooding attack and a SYN spoofing attack.
  +
# What is the goal of an HTTP flood attack?
  +
# What is a poison packet attack? Give two examples of such an attack.
  +
# How are intruders classified according to skill level?
  +
# List and breifly describe the classifications of intrusion detection systems based on the source and the type of data analyzed.
  +
 
==== Typical questions for seminar classes (labs) within this section ====
 
==== Typical questions for seminar classes (labs) within this section ====
   
  +
# Consider the given general code for allowing access to a resource: a) Explain the security flaw in this program, b) Rewrite the code to avoid the flaw
# Write a simple UDP/TCP client-server echo program
 
  +
# Develop an attack tree for gaining access to the contents of a physical safe
# Write a simple chatting program using UDP/TCP sockets
 
  +
# Typically, in practice, the length of the message is greater than the block size of the encryption algorithm. The simplest approach to handle such encryption is known as electronic codebook (ECB) mode. Explain this mode. Mention a scenario where it cannot be applied. Explain briefly why it is not a secure mode of encryption
# Given the simple echo server program, apply socket timeouts and catch timeout exceptions
 
  +
# Consider a very simple symmetric block encryption algorithm, in which 64-bits blocks of plaintext are encrypted using a 128-bit key. Show the decryption equation.
# Write a UDP-based reliable file transfer protocol
 
  +
# Explain the suitability or unsuitability of the given passwords
# Write a program that parallelly executes the CPU-bound tasks using multiple processes
 
  +
# Assume that Personal Identification Numbers (PINs) are formed by nine-digit combinations of numbers 0 to 9. Assume that an adversary is able to attempt three PINs per second.
  +
## Assuming no feedback to the adversary until each attempt has been completed, what is the expected time to discover the correct PIN?
  +
## Assuming feedback to the adversary flagging an error as each incorrect digit is entered, what is the expected time to discover the correct PIN?
  +
# Assume an application requires access control policies based on the applicant’s age and the type of funding to be provided. Using an ABAC approach, write policy rules for each of the following scenarios:
  +
## If the applicant’s age is more than 35, only “Research Grants (RG)” can be provided.
  +
## If the applicant’s age is less than or equal to 35, both “RG and Travel Grants (TG)” can be provided.
  +
# Assume a system with K subject attributes, M object attributes and Range () denotes the range of possible values that each attribute can take. What are the number of roles and permissions required for an RBAC model? What is the problem with this approach if additional attributes are added?
  +
# Consider a simplified database for an organization that includes information of several departments (identity, name, manager, number of employees) and of managers and employees of the respective departments. Suggest a relational database for efficiently managing this information
  +
# Users hulkhogan and undertaker do not have the SELECT access right to the Inventory table and the Item table. These tables were created by and are owned by user bruno-s. Write the SQL commands that would enable bruno-s to grant SELECT access to these tables to hulkhogan and undertaker.
  +
# Consider the given fragment of code. What type of malware is this?
  +
# Consider the given fragment embedded in a webpage. What type of malicious software is this?
  +
# In order to implement a classic DoS flood attack, the attacker must generate a sufficiently large volume of packets to exceed the capacity of the link to the target organization. Consider an attack using ICMP echo request (ping) packets that are 100 bytes in size (ignoring framing overhead). How many of these packets per second must the attacker send to flood a target organization using a 8-Mbps link? How many per second if the packets are 1000 bytes in size? Or 1460 bytes?
  +
# It is discussed that an amplification attack, which is a variant of reflection attack, can be launched by using any type of a suitable UDP service, such as the echo service. However, TCP services cannot be used in this attack. Why?
  +
# Consider the first step of the common attack methodology we describe, which is to gather publicly available information on possible targets. What types of information could be used? What does this use suggest to you about the content and detail of such information? How does this correlate with the organization’s business and legal requirements? How do you reconcile these conflicting demands?
  +
# As was mentioned in this chapter, the application gateway does not permit an end-toend TCP connection; rather, it sets up two TCP connections, one between itself and a TCP user on an inner host and one between itself and a TCP user on an outside host. The disadvantage of this approach is the additional processing overhead on each connection since the gateway must examine and forward all traffic in both directions. Describe at least one more limitation of this approach which is not discussed.
  +
# Given table shows a sample of a packet filter firewall ruleset for an imaginary network of IP address that range from 192.168.1.0 to 192.168.1.254. Describe the effect of each rule.
   
 
==== Test questions for final assessment in this section ====
 
==== Test questions for final assessment in this section ====
   
  +
Questions from previous two subsections can be used.
# Describe an advantage of layered architecture?
 
# Describe the differences between TCP and UDP protocols?
 
# Provide examples when using UDP can be more reasonable than TCP?
 
# Describe how UDP and TCP socket programming differ from each other?
 
   
=== Section 2: Multithreaded socket programming, RPCs, and distributed system architecture ===
+
=== Section 2: Software and system security ===
   
 
==== Topics covered in this section ====
 
==== Topics covered in this section ====
   
  +
* Buffer overflow
* Multithreading and multithreaded socket programming
 
  +
* Software security
* Remote procedure calls (RPCs)
 
* Distributed system architectures
+
* Operating system security
  +
* Cloud and IoT security
   
 
==== What forms of evaluation were used to test students’ performance in this section? ====
 
==== What forms of evaluation were used to test students’ performance in this section? ====
Line 219: Line 251:
 
==== Typical questions for ongoing performance evaluation within this section ====
 
==== Typical questions for ongoing performance evaluation within this section ====
   
  +
# Define buffer overflow.
# How the threads differ from processes?
 
  +
# Define an off-by-one attack.
# What are the I/O and CPU-bound tasks?
 
  +
# Define an injection attack. List some examples of injection attacks. What are the general circumstances in which injection attacks are found?
# For what kind of tasks, using threads is preferred than using processes?
 
  +
# State the similarities and differences between command injection and SQL injection attacks
# What is a remote procedure call?
 
  +
# What are the basic steps needed in the process of securing a system?
# What are some well-known distributed system architectures?
 
  +
# State different types of full virtualization with their security requirements.
# Discuss the structured and unstructured decentralized architectures.
 
  +
# List five essential characteristics of cloud computing.
 
  +
# List and briefly define three cloud service models.
==== Typical questions for seminar classes (labs) within this section ====
 
  +
# Briefly explain the most prominent deployment models for cloud computing.
  +
# Describe some of the main cloud-specific security threats.
   
# You have a list of large numbers, and you need to find if they are prime or not. Would you use multithreading, multiprocessing, or sequential programming in order to complete the task asap? Prove it in practice.
 
# You need to send multiple requests to a server and receive responses. Assume there is a few msecs of delay before you receive the response from the server. Would you use multithreading, multiprocessing, or sequential programming in order to complete the task asap? Prove it in practice. (Order of the requests/responses doesn't matter)
 
# Discuss two ways of creating the threads using threading module in Python: 1) passing the worker function as a target, 2) subclassing the Thread class
 
# Given the function implemented locally, make it available to be called through RPC from remote process? Use xmlRPC.
 
 
==== Test questions for final assessment in this section ====
 
 
# Discuss the differences between the threads and processes.
 
# What is the Race condition?
 
# Discuss the ways to protect the shared data from the race condition
 
# You're given the worker function that just sleeps for a second and quits, implement the same behavior in a subclass of the Thread.
 
# Discuss the RPC and its advantages over using the low-level socket programming?
 
# Discuss the decentralized architecture: structured and unstructured p2p systems.
 
 
=== Section 3: Coordination, consistency, and replication in distributed systems ===
 
 
==== Topics covered in this section ====
 
 
* Clock synchronization algorithms (NTP, Berkeley)
 
* Logical clock (Lamport clocks)
 
* Mutual exclusion algorithms: permission-based, token-based
 
* Election algorithms: Bully, Ring
 
* Consistency models
 
* Replica management
 
* Consistency protocols
 
 
==== What forms of evaluation were used to test students’ performance in this section? ====
 
 
<div id="tab:OSSectionEval1">
 
 
{| style="border-spacing: 2px; border: 1px solid darkgray;"
 
|''' '''
 
! '''Yes/No'''
 
|-
 
| Development of individual parts of software product code
 
|align="center"| 1
 
|-
 
| Homework and group projects
 
|align="center"| 1
 
|-
 
| Midterm evaluation
 
|align="center"| 0
 
|-
 
| Testing (written or computer based)
 
|align="center"| 1
 
|-
 
| Reports
 
|align="center"| 0
 
|-
 
| Essays
 
|align="center"| 0
 
|-
 
| Oral polls
 
|align="center"| 1
 
|-
 
| Discussions
 
|align="center"| 1
 
|}
 
 
 
</div>
 
==== Typical questions for ongoing performance evaluation within this section ====
 
 
# How NTP protocol works?
 
# How Berkeley protocol works?
 
# Discuss the mutual exclusion algorithms.
 
# Discuss the permanent and server-initiated replicas and their difference
 
# Explain the Primary-backup protocol.
 
 
 
==== Typical questions for seminar classes (labs) within this section ====
 
==== Typical questions for seminar classes (labs) within this section ====
   
  +
# Investigate each of the unsafe standard C library functions shown in the figure using the UNIX man pages or any C programming text, and determine a safer alternative to use.
# Given three machines with drifting clocks, adjust their clocks using Berkeley algorithm.
 
  +
# Investigate the use of a replacement standard C string library, such as Libsafe, bstring, vstr, or other. Determine how significant the required code changes are, if any, to use the chosen library.
# Explain how Bully algorithm for election works
 
  +
# Investigate the issues that arise while using sequence number as both identifier and authenticator of packets. Identify the root cause of the problem.
# Explain how Ring algorithm for election works
 
  +
# Investigate the various types of cross-site scripting (XSS) attacks. How can such attacks be prevented?
# Explain the centralized (permission-based) method of mutual exclusion
 
  +
# How can we use the TCP Wrappers and tcpd daemon to achieve secure remote control access? What if the network servers are heavily loaded?
  +
# Why is it important to secure the boot process? Is it required to limit which media the system must boot from?
   
 
==== Test questions for final assessment in this section ====
 
==== Test questions for final assessment in this section ====
   
  +
Questions from previous two subsections can be used.
# Discuss NTP and Berkeley protocols for synchronization and explain their key difference
 
# Discuss permission-based and token-based solution for mutual exclusion.
 
# Discuss content replication: permanent, server-initiated, and client-initiated replicas.
 
# Explain the Primary-backup protocol, its advantages and disadvantages.
 
   
=== Section 4: Fault tolerance and security in distributed systems ===
+
=== Section 3: Cryptographic algorithms ===
   
 
==== Topics covered in this section ====
 
==== Topics covered in this section ====
   
  +
* Symmetric encryption and message confidentiality
* Intro to fault tolerance: Failure models, Failure masking by redundancy
 
  +
* Public key cryptography and message authentication
* Process resilience: process groups, process replication, consensus in faulty systems, failure detection
 
* Reliable group communication: atomic multicast,
 
* Distributed commit
 
* Recovery: checkpointing
 
* Intro to security: threats, design issues, cryptography
 
* Secure channels: authentication, message integrity and confidentiality, secure group communication
 
* Access control: general issues, firewalls, secure mobile code, denial of service
 
* Secure naming
 
* Security management: Key management, secure group management, authorization management
 
   
 
==== What forms of evaluation were used to test students’ performance in this section? ====
 
==== What forms of evaluation were used to test students’ performance in this section? ====
Line 363: Line 319:
 
==== Typical questions for ongoing performance evaluation within this section ====
 
==== Typical questions for ongoing performance evaluation within this section ====
   
  +
# What are different types of cryptanalysis attacks?
# Discuss the failure models
 
  +
# Why do some block cipher modes of operation only use encryption while others use both encryption and decryption?
# Discuss different failure masking techniques by redundancy
 
  +
# In the context of a hash function, what is a compression function?
# What is k-fault tolerant group?
 
  +
# Briefly explain Diffie-Hellman key exchange.
# What is general model of failure detection?
 
# Explain basic reliable multicasting
 
# Explain what is authentication
 
# Explain what are message confidentiality and integrity
 
 
 
 
==== Typical questions for seminar classes (labs) within this section ====
 
==== Typical questions for seminar classes (labs) within this section ====
   
  +
# Suppose that your organization wants you to ensure the security of its data while the data is in transit. Which one out of stream cipher and block cipher would you select and why?
# Same as above
 
  +
# Can we perform encryption operations in parallel on multiple blocks of plaintext in any of the five modes? How about decryption?
  +
# Consider a 32-bit hash function defined as the concatenation of two 16-bit functions: XOR and RXOR, defined as “two simple hash functions.”
  +
## Will this checksum detect all errors caused by an odd number of error bits? Explain.
  +
## Will this checksum detect all errors caused by an even number of error bits? If not, characterize the error patterns that will cause the checksum to fail.
  +
## Comment on the effectiveness of this function for use as a hash function for authentication
  +
# It is possible to use a hash function to construct a block cipher with a structure similar to DES. Because a hash function is one way and a block cipher must be reversible (to decrypt), how is it possible?
   
 
==== Test questions for final assessment in this section ====
 
==== Test questions for final assessment in this section ====
   
  +
Questions from previous two subsections can be used.
# Same as above
 

Revision as of 01:31, 20 October 2021

Fundamentals of Computer Security

  • Course name: Fundamentals of Computer Security
  • Course number: XYZ
  • Knowledge area: xxx

Course characteristics

Key concepts of the class

What is the purpose of this course?

Course Objectives Based on Bloom’s Taxonomy

What should a student remember at the end of the course?

By the end of the course, the students should be able to recognize and define

What should a student be able to understand at the end of the course?

By the end of the course, the students should be able to describe and explain (with examples)

What should a student be able to apply at the end of the course?

By the end of the course, the students should be able to apply

Course evaluation

Course grade breakdown
Component Points
Laboratory assignments 55%
Final exam 35%
Attendance 10%

Important: In order to successfully finish the course, the student is required to score at least 50% in final exam.

Grades range

Course grading range
A. Excellent 90-100
B. Good 75-89
C. Satisfactory 60-74
D. Poor 0-59

Resources and reference material

  • Textbook:

Course Sections

The course is organized in 8 weeks, with every weeks 4 academics hours of lectures and 4 academic hours of tutorials/labs. The main sections of the course and approximate hour distribution between them is as follows:

Course Sections
Section Section Title Teaching Hours
1 Computer security technology and principles 36
2 Software and system security 16
3 Cryptographic algorithms 12

Section 1: Introduction to subject, computer networks basics, transport layer protocols, and socket programming

Topics covered in this section

  • Overview
  • Cryptographic tools
  • User authentication
  • Access control
  • Database and data center security
  • Malicious software
  • Denial-of-service attacks
  • Intrusion detection
  • Firewalls and intrusion prevention systems

What forms of evaluation were used to test students’ performance in this section?

Yes/No
Development of individual parts of software product code 1
Homework and group projects 1
Midterm evaluation 0
Testing (written or computer based) 1
Reports 0
Essays 0
Oral polls 1
Discussions 1


Typical questions for ongoing performance evaluation within this section

  1. What is meant by the CIA triad?
  2. What is the difference between data integrity and system integrity?
  3. How is cryptanalysis different from brute-force attack?
  4. List and briefly explain the different approaches to attacking a symmetric encryption scheme.
  5. In general terms, what are four means of authenticating a user’s identity?
  6. What is a Trojan horse attack?
  7. What is the difference between authentication and authorization?
  8. How does RBAC relate to DAC and MAC?
  9. Define the terms database, database management system, and query language.
  10. What is a relational database and what are its principal ingredients?
  11. What is an SQL injection attack? What are the implications of an SQL injection attack?
  12. List the categories for grouping different types of SQLi attacks.
  13. Why is RBAC considered fit for database access control?
  14. What are three broad mechanisms that malware can use to propagate?
  15. What is a blended attack?
  16. Define a denial-of-service (DoS) attack
  17. State the difference between a SYN flooding attack and a SYN spoofing attack.
  18. What is the goal of an HTTP flood attack?
  19. What is a poison packet attack? Give two examples of such an attack.
  20. How are intruders classified according to skill level?
  21. List and breifly describe the classifications of intrusion detection systems based on the source and the type of data analyzed.

Typical questions for seminar classes (labs) within this section

  1. Consider the given general code for allowing access to a resource: a) Explain the security flaw in this program, b) Rewrite the code to avoid the flaw
  2. Develop an attack tree for gaining access to the contents of a physical safe
  3. Typically, in practice, the length of the message is greater than the block size of the encryption algorithm. The simplest approach to handle such encryption is known as electronic codebook (ECB) mode. Explain this mode. Mention a scenario where it cannot be applied. Explain briefly why it is not a secure mode of encryption
  4. Consider a very simple symmetric block encryption algorithm, in which 64-bits blocks of plaintext are encrypted using a 128-bit key. Show the decryption equation.
  5. Explain the suitability or unsuitability of the given passwords
  6. Assume that Personal Identification Numbers (PINs) are formed by nine-digit combinations of numbers 0 to 9. Assume that an adversary is able to attempt three PINs per second.
    1. Assuming no feedback to the adversary until each attempt has been completed, what is the expected time to discover the correct PIN?
    2. Assuming feedback to the adversary flagging an error as each incorrect digit is entered, what is the expected time to discover the correct PIN?
  7. Assume an application requires access control policies based on the applicant’s age and the type of funding to be provided. Using an ABAC approach, write policy rules for each of the following scenarios:
    1. If the applicant’s age is more than 35, only “Research Grants (RG)” can be provided.
    2. If the applicant’s age is less than or equal to 35, both “RG and Travel Grants (TG)” can be provided.
  8. Assume a system with K subject attributes, M object attributes and Range () denotes the range of possible values that each attribute can take. What are the number of roles and permissions required for an RBAC model? What is the problem with this approach if additional attributes are added?
  9. Consider a simplified database for an organization that includes information of several departments (identity, name, manager, number of employees) and of managers and employees of the respective departments. Suggest a relational database for efficiently managing this information
  10. Users hulkhogan and undertaker do not have the SELECT access right to the Inventory table and the Item table. These tables were created by and are owned by user bruno-s. Write the SQL commands that would enable bruno-s to grant SELECT access to these tables to hulkhogan and undertaker.
  11. Consider the given fragment of code. What type of malware is this?
  12. Consider the given fragment embedded in a webpage. What type of malicious software is this?
  13. In order to implement a classic DoS flood attack, the attacker must generate a sufficiently large volume of packets to exceed the capacity of the link to the target organization. Consider an attack using ICMP echo request (ping) packets that are 100 bytes in size (ignoring framing overhead). How many of these packets per second must the attacker send to flood a target organization using a 8-Mbps link? How many per second if the packets are 1000 bytes in size? Or 1460 bytes?
  14. It is discussed that an amplification attack, which is a variant of reflection attack, can be launched by using any type of a suitable UDP service, such as the echo service. However, TCP services cannot be used in this attack. Why?
  15. Consider the first step of the common attack methodology we describe, which is to gather publicly available information on possible targets. What types of information could be used? What does this use suggest to you about the content and detail of such information? How does this correlate with the organization’s business and legal requirements? How do you reconcile these conflicting demands?
  16. As was mentioned in this chapter, the application gateway does not permit an end-toend TCP connection; rather, it sets up two TCP connections, one between itself and a TCP user on an inner host and one between itself and a TCP user on an outside host. The disadvantage of this approach is the additional processing overhead on each connection since the gateway must examine and forward all traffic in both directions. Describe at least one more limitation of this approach which is not discussed.
  17. Given table shows a sample of a packet filter firewall ruleset for an imaginary network of IP address that range from 192.168.1.0 to 192.168.1.254. Describe the effect of each rule.

Test questions for final assessment in this section

Questions from previous two subsections can be used.

Section 2: Software and system security

Topics covered in this section

  • Buffer overflow
  • Software security
  • Operating system security
  • Cloud and IoT security

What forms of evaluation were used to test students’ performance in this section?

Yes/No
Development of individual parts of software product code 1
Homework and group projects 1
Midterm evaluation 0
Testing (written or computer based) 1
Reports 0
Essays 0
Oral polls 1
Discussions 1


Typical questions for ongoing performance evaluation within this section

  1. Define buffer overflow.
  2. Define an off-by-one attack.
  3. Define an injection attack. List some examples of injection attacks. What are the general circumstances in which injection attacks are found?
  4. State the similarities and differences between command injection and SQL injection attacks
  5. What are the basic steps needed in the process of securing a system?
  6. State different types of full virtualization with their security requirements.
  7. List five essential characteristics of cloud computing.
  8. List and briefly define three cloud service models.
  9. Briefly explain the most prominent deployment models for cloud computing.
  10. Describe some of the main cloud-specific security threats.

Typical questions for seminar classes (labs) within this section

  1. Investigate each of the unsafe standard C library functions shown in the figure using the UNIX man pages or any C programming text, and determine a safer alternative to use.
  2. Investigate the use of a replacement standard C string library, such as Libsafe, bstring, vstr, or other. Determine how significant the required code changes are, if any, to use the chosen library.
  3. Investigate the issues that arise while using sequence number as both identifier and authenticator of packets. Identify the root cause of the problem.
  4. Investigate the various types of cross-site scripting (XSS) attacks. How can such attacks be prevented?
  5. How can we use the TCP Wrappers and tcpd daemon to achieve secure remote control access? What if the network servers are heavily loaded?
  6. Why is it important to secure the boot process? Is it required to limit which media the system must boot from?

Test questions for final assessment in this section

Questions from previous two subsections can be used.

Section 3: Cryptographic algorithms

Topics covered in this section

  • Symmetric encryption and message confidentiality
  • Public key cryptography and message authentication

What forms of evaluation were used to test students’ performance in this section?

Yes/No
Development of individual parts of software product code 1
Homework and group projects 1
Midterm evaluation 0
Testing (written or computer based) 1
Reports 0
Essays 0
Oral polls 1
Discussions 1


Typical questions for ongoing performance evaluation within this section

  1. What are different types of cryptanalysis attacks?
  2. Why do some block cipher modes of operation only use encryption while others use both encryption and decryption?
  3. In the context of a hash function, what is a compression function?
  4. Briefly explain Diffie-Hellman key exchange.

Typical questions for seminar classes (labs) within this section

  1. Suppose that your organization wants you to ensure the security of its data while the data is in transit. Which one out of stream cipher and block cipher would you select and why?
  2. Can we perform encryption operations in parallel on multiple blocks of plaintext in any of the five modes? How about decryption?
  3. Consider a 32-bit hash function defined as the concatenation of two 16-bit functions: XOR and RXOR, defined as “two simple hash functions.”
    1. Will this checksum detect all errors caused by an odd number of error bits? Explain.
    2. Will this checksum detect all errors caused by an even number of error bits? If not, characterize the error patterns that will cause the checksum to fail.
    3. Comment on the effectiveness of this function for use as a hash function for authentication
  4. It is possible to use a hash function to construct a block cipher with a structure similar to DES. Because a hash function is one way and a block cipher must be reversible (to decrypt), how is it possible?

Test questions for final assessment in this section

Questions from previous two subsections can be used.