ABSTRACT

This problem set focuses on Stream Processing and Command Line Interaction. It introduces the mechanics of reading from standard input, parsing command-line arguments, and implementing data integrity checks using the SHA256 hashing algorithm.


Problem Categories

Standard Input and Output (I/O)

Command Line Arguments

Data Transformation and Hexadecimal

String Logic and Filtering

Hashing Control Flow

  • SHA256 Hash Checker: Comparing a generated hash against a “known good” value to verify file integrity.
  • SHA256 Loop: Iteratively hashing data, a fundamental concept in proof-of-work or repeated encryption.

Technical Summary

ConceptC ImplementationUsage
Stream Readinggetchar() or fgets()Processing data byte-by-byte or line-by-line.
CLI Argumentsint main(int argc, char *argv[])Receiving user input directly from the shell.
Hashingsha256_update()Accumulating data into a fixed-size cryptographic digest.

  • C Syntax: Deepens understanding of arrays (char *) and loop structures for stream processing.
  • Counting: Relevant for understanding the collision resistance and output space () of SHA256.
  • Lecture: Memory and System Calls: Background on how the OS passes arguments and handles file descriptors.
Folder Contents

17 items under this folder.