This chapter gathers further foundations that entries elsewhere in the book rely on, in cryptography, program analysis, file handling, parsing and probability. Its cryptography entries explain pseudorandom functions §15.1 and permutations, block ciphers §15.3 and the round structure of AES (the Advanced Encryption Standard), the counter and cipher block chaining §15.6 modes of operation, CMAC §15.7 (cipher-based message authentication code), the Merkle–Damgård construction §15.8 of a hash function from a compression function, and password hashing §15.10 with memory-hard key derivation. Its program-analysis entries extend the analysis chapter with reduced products §15.11 and relational abstract domains §15.12, counterexample-guided abstraction refinement §15.13, interprocedural summaries §15.14 and bit-vector logic §15.15.
The next entries cover details that robust tools must get right when they build software and handle files and data: conditional compilation §15.16 and build fingerprints §15.17; archive extraction that escapes its target directory; Unicode normalization §15.19; duplicate keys in JSON §12.26 (JavaScript Object Notation); the difference between a file descriptor §15.21 and a path name; making a file and its directory entry durable with fsync §15.22; opening files without following symbolic links §13.10; the reuse of inode numbers, by which a file system identifies files; and the Python §12.23 modules for exact fractions, decimal arithmetic, heaps, signals, file status, archives, XML (Extensible Markup Language), compression and JSON schemas. A group on input semantics separates the integrity §1.9 of content from the authority to supply it and covers algorithmic-complexity attacks §15.35, event epochs and sequence numbers, thresholds and sentinel values, and prefix-free encodings §15.38. The chapter ends with the mathematics behind many arguments in the book: Boolean algebra §15.39 and De Morgan’s laws, set inclusion §15.40 as an order on policies, the difference between a probability distribution and the set of possible executions, the union bound §15.42, conditional probability §15.43, correlation and covariance §15.44, the central limit theorem §15.45 and the law of large numbers §15.46.