FreeExam

Security engineer: Cryptographic Protocol Reasoning

Original technical interview scenarios on authenticated encryption, nonce and key lifecycles, derivation and encoding, peer and transcript binding, replay handling, tree evidence, and explicit cryptographic/protocol assumptions. Tiny algebra models are for reasoning only.

These prompts are original practice. They are not questions from a named employer or a live hiring loop.

  1. 1.A correctly used AEAD decoder receives the expected key, nonce, and associated data, but a ciphertext bit was changed. No forgery succeeds in the supplied case. What output should the authenticated-decryption interface expose?

    Show answer and explanation
    1. The original plaintext inferred from a failed tag
    2. The altered bytes treated as authorized instructions
    3. Accepted plaintext with a warning appended
    4. Authentication failure, without accepted plaintext

    Answer: Authentication failure, without accepted plaintext

    Authenticated decryption distinguishes successful plaintext from failure. Do not treat corrupted or unauthenticated candidate bytes as accepted output; the premise explicitly rules out a successful forgery in this case.

  2. 2.An AEAD construction authenticates a routing header as associated data while encrypting the message body. What does that do for the header?

    Show answer and explanation
    1. Protects its authenticated binding without necessarily hiding it
    2. Encrypts the header merely because it is associated data
    3. Makes the header a secret key
    4. Removes the need for the decoder to use the same associated data

    Answer: Protects its authenticated binding without necessarily hiding it

    Associated data is authenticated rather than encrypted by that interface. It can bind clear context to the protected payload; confidentiality for that context requires a separate appropriate mechanism if the protocol needs it.

  3. 3.A protocol authenticates tenant ID as AEAD associated data. A ciphertext created for tenant A is presented with tenant B as the decoder's associated data. In this supplied nonforgery case, what should happen?

    Show answer and explanation
    1. The tenant change is accepted because the encrypted body is unchanged.
    2. Associated data is ignored during decryption.
    3. A valid ciphertext authorizes every tenant label.
    4. Authentication fails for the changed context.

    Answer: Authentication fails for the changed context.

    The decoder must verify the payload with its actual bound context. Changing associated data changes the authenticated input relationship; accepting the body alone would discard the tenant binding the protocol intended.

  4. 4.A token's ciphertext authenticates its body but not its operation type. Both approve and cancel interpret that same body under one key. The consumer uses an unprotected type field. What context needs binding?

    Show answer and explanation
    1. Only ciphertext length, treating it as a unique operation identifier
    2. A rule accepting whichever unprotected operation type the caller supplies
    3. An assumption that a valid encrypted body authenticates every possible application purpose
    4. The intended protocol operation/purpose

    Answer: The intended protocol operation/purpose

    Cryptographic validity concerns the inputs actually bound. Include the relevant operation/domain context under the intended protocol so one valid object is not reinterpreted for another purpose without authorization.

  5. 5.A streaming decryptor emits provisional bytes before its final authentication check. The application executes commands from those bytes immediately. The final tag then fails. What boundary was violated?

    Show answer and explanation
    1. Unauthenticated candidate plaintext caused effects before acceptance.
    2. The tag failure retroactively undoes every executed command.
    3. Provisional output is authenticated because a decoder produced it.
    4. Only displaying the tag error needs to change.

    Answer: Unauthenticated candidate plaintext caused effects before acceptance.

    Some low-level APIs can expose candidate bytes before final acceptance. Buffer or otherwise prevent trusted use/effects until the complete required authentication succeeds, following the API/protocol contract.

  6. 6.A decoder API returns either bytes or an explicit failure result. A wrapper replaces failure with an empty byte string, and the application treats empty bytes as a valid empty command. What distinction must the wrapper preserve?

    Show answer and explanation
    1. Only the response's byte length
    2. A guarantee that all empty byte strings indicate tampering
    3. A rule that cryptographic failure authorizes a default operation
    4. Authentication failure versus successfully authenticated empty plaintext

    Answer: Authentication failure versus successfully authenticated empty plaintext

    An empty authentic message can be valid while failure is not a message at all. Preserve the API's failure state so error handling does not manufacture a successful authenticated application input.

  7. 7.A fictional wire format carries forty-two ciphertext payload bytes and a sixteen-byte authentication tag, with no other fields or padding. What total length does it carry?

    Show answer and explanation
    1. 26 bytes
    2. 42 bytes
    3. 58 bytes
    4. 672 bytes

    Answer: 58 bytes

    The specified fields total 42+16=58 bytes. This is format accounting, not a claim that every AEAD wire protocol has these lengths or excludes nonce/header overhead.

  8. 8.A nonce-unique AEAD protocol transmits its nonce openly. The secret key remains protected and all required nonce rules hold. What property is not generally required of that nonce?

    Show answer and explanation
    1. Secrecy from the ciphertext's observer
    2. Use of the agreed nonce value when authenticating/decrypting the record
    3. Compliance with the nonce formation/length requirements of the selected algorithm and protocol
    4. The required uniqueness domain across the actual key lifetime

    Answer: Secrecy from the ciphertext's observer

    A nonce need not be a secret key. Its required uniqueness/formation is protocol-specific and must be met; hiding a nonce is not a substitute for those requirements.

  9. 9.An AEAD sender uses a counter nonce under one persistent key. After restart, its counter starts at zero again. Earlier messages used that key and counter range. What lifecycle invariant is at risk?

    Show answer and explanation
    1. Only a new process identifier, without changing the actual key/nonce pair
    2. Per-key nonce uniqueness
    3. A rule accepting old counter values merely because they are used by a new process
    4. An assumption that restarting a process necessarily generates a fresh encryption key

    Answer: Per-key nonce uniqueness

    A counter design must preserve the required key/nonce uniqueness across crashes, restores, and restarts. Use an appropriate durable allocation or fresh-key/epoch design rather than assume in-process uniqueness covers the key's full lifetime.

  10. 10.A supplied eight-bit nonce layout has a unique two-bit worker prefix and six-bit local counter. Four workers use distinct prefixes and each counter value once per key. How many distinct nonce values does this layout provide?

    Show answer and explanation
    1. 64
    2. 256
    3. 10
    4. 8

    Answer: 256

    Four disjoint prefixes times sixty-four counter values gives 4×64=256. The premises require unique prefix ownership and no counter reuse; reusing a worker prefix/counter under the same key would invalidate that allocation model.

  11. 11.A VM snapshot contains both an AEAD key and the next nonce-counter state. Two clones resume from it and encrypt independently with identical key/counter sequences. What must the design distinguish?

    Show answer and explanation
    1. A rule treating separate VM instances as proof that their restored random/counter state differs
    2. The clones' key/nonce allocation domains before new encryption
    3. Only different machine names, despite retained identical cryptographic state
    4. An assumption that copying counter/key state automatically partitions the nonce domain

    Answer: The clones' key/nonce allocation domains before new encryption

    Replicated execution state can replicate nonce choices. Enforce a supported fresh-key/epoch or disjoint allocation protocol so independent clones do not reuse the same per-key nonce sequence.

  12. 12.A sender durably reserves nonce counters 100–199 before using them, then crashes after using through 120. Its recovery contract resumes only at 200 or later. What consequence is acceptable for nonce uniqueness?

    Show answer and explanation
    1. A gap necessarily means a nonce was reused.
    2. Every counter value must be used for cryptographic validity.
    3. Unused reserved values can be skipped without reusing them.
    4. The sender must restart at 121 from an unverified memory value.

    Answer: Unused reserved values can be skipped without reusing them.

    Nonce allocation may sacrifice unused values to preserve uniqueness. Contiguous use is not the same requirement as never repeating a nonce under its key; follow the actual durable reservation contract.

  13. 13.A sender picks random nonces from a finite space. It calls them guaranteed unique solely because they are hard to predict. What property is not supplied by unpredictability alone?

    Show answer and explanation
    1. A deterministic no-collision guarantee
    2. That a finite range can contain repeated draws
    3. The possibility of choosing values randomly
    4. That randomness and uniqueness are different concepts

    Answer: A deterministic no-collision guarantee

    Random choice can make collisions unlikely under stated assumptions without making them impossible. Evaluate the actual space, volume, lifecycle, and algorithm requirements rather than equate unpredictability with uniqueness.

  14. 14.Use the supplied small-collision approximation q²/(2N). Let q=2¹⁶ randomly chosen nonces and space N=2⁹⁶. What approximate collision probability follows from that formula?

    Show answer and explanation
    1. 2⁻⁶⁵
    2. 2⁻³²
    3. 2⁻⁸⁰
    4. 2⁻⁹⁶

    Answer: 2⁻⁶⁵

    Substitute q²=2³² and 2N=2⁹⁷, giving 2³²/2⁹⁷=2⁻⁶⁵. This applies only the supplied approximation/model; it is not an algorithm's complete security bound or a real-system usage recommendation.

  15. 15.A protocol requires unique nonces separately for each independent key. Key K1 uses nonce n once, and independent K2 also uses n once. What follows about that particular uniqueness condition?

    Show answer and explanation
    1. It proves every other security property of both encryptions.
    2. It requires one globally unique nonce across all possible keys.
    3. It is violated even though neither key repeats a nonce.
    4. It is not violated merely by equal nonce strings under different keys.

    Answer: It is not violated merely by equal nonce strings under different keys.

    The stated domain is per key, so these are different key/nonce pairs. This narrow result does not waive other algorithm requirements or prove key independence in a real deployment.

  16. 16.A toy stream construction is C=P XOR S. Two messages reuse the same keystream S. What relation can be obtained from their ciphertexts?

    Show answer and explanation
    1. C1 XOR C2 always equals the key itself.
    2. The two plaintexts must be identical.
    3. A reused keystream guarantees both plaintexts remain independently hidden.
    4. C1 XOR C2 = P1 XOR P2

    Answer: C1 XOR C2 = P1 XOR P2

    The repeated S cancels under XOR. That relation can expose information even without directly giving both plaintexts. The toy algebra illustrates a reuse failure and is not a production encryption construction.

  17. 17.A toy unkeyed checksum is the XOR of two bytes. Pairs (4,7) and (5,6) both yield three. What does this show about using that checksum as message authentication against a modifying adversary?

    Show answer and explanation
    1. Every checksum collision reveals a secure MAC key.
    2. Unkeyed XOR supplies unforgeability for these pairs.
    3. A changed message can retain the same checksum.
    4. The checksum proves the two byte pairs are identical.

    Answer: A changed message can retain the same checksum.

    The explicit collision preserves the checksum while changing the message. Error detection and adversarial authentication are different requirements; do not treat this toy checksum as a secure keyed integrity mechanism.

  18. 18.Two parties both know one MAC key. A third party receives a valid tag. Without other evidence, what unique-origin claim is not established?

    Show answer and explanation
    1. That symmetric and public-verification attribution models differ
    2. That the tag verifies under the shared-key model
    3. Which of those two key holders created the tag
    4. That both parties possess the authentication key

    Answer: Which of those two key holders created the tag

    Every holder of the shared MAC key can generate tags. A valid tag does not uniquely distinguish those holders as originators; broader attribution depends on the actual trust/evidence model.

  19. 19.A message travels in plaintext alongside a secure MAC. The observer does not know the MAC key but can read the transmitted message. What protection is absent from this format?

    Show answer and explanation
    1. The possibility of authenticated integrity under the MAC's assumptions
    2. That the MAC and message are separate transmitted fields
    3. That readable plaintext is visible to the observer
    4. Message-content confidentiality

    Answer: Message-content confidentiality

    A MAC does not encrypt the message it authenticates. Use a suitable confidentiality mechanism when needed and preserve the required context/integrity bindings.

  20. 20.A digital-signature verifier has a trusted public key, but no signing private key. Under the scheme's unforgeability assumptions, what role does that public key support?

    Show answer and explanation
    1. Generating arbitrary authorized signatures using only that public verification key
    2. Recovering the private signing key solely from its public distribution under the stated secure scheme
    3. Decrypting every ciphertext associated with unrelated key pairs
    4. Verifying covered signatures without granting the private signing capability

    Answer: Verifying covered signatures without granting the private signing capability

    Public verification and private signing are distinct capabilities under the scheme's assumptions. Trust in the key's identity/context and application authority still needs separate enforcement.

  21. 21.A signature is valid under key B, while the protocol expects signatures by authorized key A. Neither key delegates to the other. What should the verifier's policy decide?

    Show answer and explanation
    1. Reject the signer mismatch.
    2. Replace expected key A with whichever key verifies.
    3. Treat key names as interchangeable because both are public.
    4. Accept because any mathematically valid signature has the expected identity.

    Answer: Reject the signer mismatch.

    Signature validity is relative to a key. Verify the expected authenticated signer/context rather than accept an arbitrary key that happens to validate attacker-selected bytes.

  22. 22.A supplied signing API hashes its byte input internally with H. The signer passes H(M), but the verifier passes M into the matching hash-then-verify API. Which digest inputs do those two internal steps produce?

    Show answer and explanation
    1. H(H(M)) and H(M); the pipelines differ.
    2. Both produce H(M), because the API recognizes prehashed bytes automatically.
    3. Both produce H(H(M)), regardless of their different byte inputs.
    4. The hash input is irrelevant once a key parses.

    Answer: H(H(M)) and H(M); the pipelines differ.

    The API hashes whatever bytes it receives. A caller-supplied digest is just another byte string unless the scheme/API explicitly supports that prehash contract. Use the agreed algorithm and input pipeline rather than mix raw-message and prehashed interpretations.

  23. 23.A signing key authenticates both status reports and destructive commands. The formats omit purpose, and one report's bytes parse as a command. What cryptographic context should prevent that reinterpretation?

    Show answer and explanation
    1. A rule letting the recipient choose a new privileged purpose after signature verification
    2. A defined purpose/domain binding and appropriate key/protocol separation
    3. An assumption that a valid signature assigns every application meaning without a purpose binding
    4. Only a shared filename suffix, without authenticating the message class

    Answer: A defined purpose/domain binding and appropriate key/protocol separation

    Authenticate the intended domain and relevant fields under a sound protocol. A valid signature on bytes does not authorize every interpretation those bytes may have in another message class.

  24. 24.Both directions of a protocol use the same authentication context, and a server-produced message can be reflected as a client message. What role distinction should the key/context design enforce?

    Show answer and explanation
    1. Sender direction/role under the actual protocol
    2. An assumption that observed transport direction changes the bytes/context a tag authenticates
    3. A rule accepting any valid message tag in any sender/receiver role
    4. Only different log labels while retaining identical authenticated role context

    Answer: Sender direction/role under the actual protocol

    Bind or separate the required roles, directions, and session context. Otherwise authentication of one message class can be misapplied to another; choose a vetted protocol rather than invent incomplete cross-role reuse rules.

  25. 25.A protocol derives separate keys with HKDF info labels for upload and download. What is the intended role of those context labels?

    Show answer and explanation
    1. Replace all need for input-key secrecy
    2. Prove no two outputs can ever collide for any inputs
    3. Bind derived material to distinct application purposes under the KDF model
    4. Make the labels secret passwords

    Answer: Bind derived material to distinct application purposes under the KDF model

    Context labels provide domain separation under the construction's assumptions. They do not create secrecy from public input or establish an absolute collision impossibility for finite outputs.

  26. 26.An HKDF salt is transmitted openly while input key material remains secret. A reviewer says the salt must always be a secret key. What distinction should be retained?

    Show answer and explanation
    1. A rule that a salt can substitute for missing input entropy
    2. A claim that HKDF encrypts the salt by definition
    3. Salt/context roles versus the secret input-key material
    4. A guarantee that a public salt reveals every derived key

    Answer: Salt/context roles versus the secret input-key material

    A salt need not be secret in the HKDF model. Its appropriate formation, independence, and use depend on the protocol; secrecy and entropy assumptions belong to the actual input and construction, not the field name alone.

  27. 27.HKDF receives entirely known constant input, public salt, and public info. A team claims the derived bytes are secret solely because HKDF is cryptographic. What input property is absent?

    Show answer and explanation
    1. A guarantee that deterministic derivation hides all-public inputs
    2. Secret entropy or another justified secret source
    3. A rule that output length creates unknown key material
    4. Only a longer public info label

    Answer: Secret entropy or another justified secret source

    A deterministic KDF on known inputs is computable by an observer. It does not manufacture a secret from information the adversary already knows.

  28. 28.A supplied deterministic KDF receives one of 256 equally likely possible secrets and otherwise public fixed inputs. It emits 256 bits. How many candidate derived keys can that input model yield at most?

    Show answer and explanation
    1. 2²⁵⁶ necessarily
    2. 256, not 2²⁵⁶
    3. Zero
    4. Exactly one regardless of the secret

    Answer: 256, not 2²⁵⁶

    Each possible input maps to one output, so the image has at most 256 values. A longer representation does not increase the source's guessing entropy; collisions could only reduce the number of distinct outputs.

  29. 29.HKDF uses identical input material, salt, and info, requesting sixteen bytes in one call and thirty-two in another. In its expand construction, what relation does the shorter output have to the longer?

    Show answer and explanation
    1. It is the first sixteen bytes of the longer output.
    2. The two calls necessarily use different secret inputs.
    3. It equals the last sixteen bytes by definition.
    4. It must be independent merely because the requested lengths differ.

    Answer: It is the first sixteen bytes of the longer output.

    HKDF expansion produces a prefix of its output stream for the requested length. Do not rely on output length alone to separate purposes that require distinct key material; use the appropriate protocol-defined context.

  30. 30.A supplied HKDF expansion limit is L≤255×HashLen bytes. HashLen is thirty-two bytes. What maximum L follows?

    Show answer and explanation
    1. 8,160 bytes
    2. 8,192 bytes
    3. 32 bytes
    4. 255 bytes

    Answer: 8,160 bytes

    The bound is 255×32=8,160 bytes. This applies the supplied expansion rule, not a recommendation to request the maximum or a statement that output length equals security strength.

  31. 31.An authenticated context contains two fields, but its encoder merges missing role and empty-string role even though execution treats them differently. What encoding property is needed?

    Show answer and explanation
    1. Only fixed encoded length, even though missing and empty roles retain different execution meanings
    2. A rule letting execution choose the more privileged interpretation of a shared authenticated encoding
    3. An unambiguous binding of the distinct authority-relevant meanings
    4. An assumption that determinism alone proves distinct relevant meanings have distinct encodings

    Answer: An unambiguous binding of the distinct authority-relevant meanings

    Authentication covers the encoded representation. If distinct relevant meanings share that representation, it cannot distinguish them; define a suitable typed/unambiguous encoding and matching consumer semantics.

  32. 32.A byte-signature scheme covers UTF-8 exactly. One client signs U+00E9; another verifies U+0065 followed by U+0301 after independently normalizing input. What relationship must the protocol specify?

    Show answer and explanation
    1. An assumption that every canonically similar display form uses identical bytes
    2. The exact representation/normalization rule used before signing and verification
    3. A rule permitting each endpoint to choose unrelated preprocessing while claiming one agreed signature input
    4. Only visual similarity, treating it as proof that the exact UTF-8 byte strings match

    Answer: The exact representation/normalization rule used before signing and verification

    Equivalent display forms can have different bytes. Define and follow the signature scheme's input contract; visual similarity is not a byte-level equality rule, and unilateral normalization can invalidate the intended binding.

  33. 33.Two endpoints authenticate bytes 01 02 unchanged. One interprets this unsigned two-byte field as big-endian; the other little-endian. What values do they derive?

    Show answer and explanation
    1. 12 and 21
    2. 256 and 512
    3. 1 and 2
    4. 258 and 513

    Answer: 258 and 513

    Big-endian gives 1×256+2=258; little-endian gives 1+2×256=513. Authenticating the same bytes does not by itself establish agreement about their application interpretation.

  34. 34.A key is encoded as sixty-four hexadecimal characters, each representing four bits, with no prefixes or separators. What decoded key length follows?

    Show answer and explanation
    1. 16 bytes, or 128 bits
    2. 64 bytes, or 512 bits
    3. 32 bytes, or 256 bits
    4. 8 bytes, or 64 bits

    Answer: 32 bytes, or 256 bits

    Sixty-four hex digits represent 64×4=256 bits, or 32 bytes. Distinguish textual encoding length from the underlying key's bit/byte length and from any claimed effective security strength.

  35. 35.A protocol signs the exact encoded token text, while a verifier decodes and re-encodes it using an unspecified representation before signature checking. What should the protocol enforce?

    Show answer and explanation
    1. The agreed signed representation and its validation rules
    2. A guarantee that all encodings of one value have the same signature input bytes
    3. Any consumer-chosen re-encoding without a protocol rule
    4. Only equality of displayed decoded field names

    Answer: The agreed signed representation and its validation rules

    Encoding, canonicalization, and signature input are part of the protocol contract. Verify the required representation rather than invent transformations that change or ambiguously reinterpret the authenticated object.

  36. 36.A hypothetical handshake negotiates an algorithm, but the agreed transcript authentication omits the negotiation fields. An intermediary can change those fields in this model. What downgrade boundary is missing?

    Show answer and explanation
    1. An assumption that a field is authenticated because other nearby transcript fields are covered
    2. A rule letting endpoints infer that their preferred negotiation occurred without verifying the actual choice
    3. Authentication of the relevant negotiation and protocol context
    4. Only selecting a stronger-looking algorithm label without binding its negotiation

    Answer: Authentication of the relevant negotiation and protocol context

    Bind security-relevant negotiation under the protocol's authenticated transcript and verify the selected parameters against policy. This is a hypothetical incomplete handshake, not a claim that a current standard omits those fields.

  37. 37.A protocol authenticates a transcript made by ordered, unambiguous message encodings. An implementation sorts messages by type before hashing instead of retaining the defined sequence. What input contract has changed?

    Show answer and explanation
    1. The authenticated transcript's ordering and representation
    2. A guarantee that cryptographic hashes ignore input order
    3. A rule that every permutation is the same transcript
    4. Only the size of the final hash digest

    Answer: The authenticated transcript's ordering and representation

    Transcript authentication concerns a specified sequence of protocol messages. A different serialization can bind a different conversation; implement the actual encoding/order contract rather than a convenient set-like summary.

  38. 38.Two peers establish a fresh shared key by an unauthenticated exchange, but have no verified binding to the intended peer identity. What is not established by shared-key agreement alone?

    Show answer and explanation
    1. That identity and key agreement are different properties
    2. Authentication of the intended remote identity
    3. That an authentication mechanism may be needed by the protocol
    4. The possibility that two local endpoints computed shared bytes

    Answer: Authentication of the intended remote identity

    Key agreement and peer authentication must be composed correctly. Freshness of a negotiated secret alone does not prove it is shared with the intended principal under an active-intermediary threat model.

  39. 39.For algebra only, a toy Diffie–Hellman setup uses p=29,g=2, private exponents a=5,b=9. The shared value is g^(ab) mod p. What is it?

    Show answer and explanation
    1. 21
    2. 3
    3. 16
    4. 19

    Answer: 21

    The exponent product is forty-five; 2⁴⁵ mod 29=21. Each side can obtain that value using the other's public share. These tiny parameters are deliberately insecure teaching arithmetic, not a production configuration.

  40. 40.A supplied authenticated ephemeral-exchange protocol erases its ephemeral secrets. Later only its long-term signing key is exposed; session secrets and endpoints were not otherwise compromised. What past-session confidentiality property is being assessed?

    Show answer and explanation
    1. A rule that signing-key secrecy is irrelevant to authenticating new sessions
    2. A guarantee that every future session is safe despite the exposed key
    3. Forward secrecy under those stated assumptions
    4. Proof that stored plaintext copies disappear

    Answer: Forward secrecy under those stated assumptions

    Forward-secrecy claims concern appropriate past-session secret protection after later long-term-key compromise. They remain conditional on the actual exchange, erasure, and compromise model and do not authorize future use of a compromised identity.

  41. 41.A protocol has an appropriate forward-secrecy property for past session keys, but the application stores plaintext messages in an exposed log. What does that property not protect?

    Show answer and explanation
    1. That protocol and endpoint storage have different exposure boundaries
    2. That readable plaintext can bypass the need to recover a traffic key
    3. The separately retained plaintext log
    4. The stated key-agreement property under its assumptions

    Answer: The separately retained plaintext log

    A key-agreement guarantee does not encrypt or erase independent application outputs. Evaluate actual key, endpoint, and data-retention boundaries instead of extending a session-key property to every stored copy.

  42. 42.A supplied session derives its only secret from one static pre-shared key and public data, with no fresh secret contribution. An adversary later obtains that key and the complete public transcript. What past-session secrecy claim is unsupported by this model?

    Show answer and explanation
    1. Secrecy against that later key compromise
    2. That adding fresh secret material would describe a different model
    3. That public data was exchanged
    4. That the session used a pre-shared key

    Answer: Secrecy against that later key compromise

    An observer with all deterministic derivation inputs can reproduce its secret output. Do not infer forward secrecy merely from encryption; the actual key-exchange/derivation and compromise assumptions determine the guarantee.

  43. 43.A system sends a non-idempotent allocation command as TLS 1.3 early data and assumes TLS alone prevents all cross-connection replay of that command. What application concern remains?

    Show answer and explanation
    1. All 0-RTT data has the same inherent cross-connection replay guarantee as ordinary 1-RTT data.
    2. Transport encryption automatically makes every operation idempotent.
    3. A successful TLS connection proves a command ran only once globally.
    4. Replay/duplicate effects need the protocol's appropriate application handling.

    Answer: Replay/duplicate effects need the protocol's appropriate application handling.

    TLS early data has weaker replay guarantees. Restrict use and implement the required replay-safe application semantics/coordination rather than infer global exactly-once effects from encrypted transport.

  44. 44.Two servers each accept a ticket once using separate local replay stores. The same valid early request reaches both. No other binding/coordination exists. What fleet-level acceptance can occur?

    Show answer and explanation
    1. Local once-only stores automatically share state.
    2. Each server accepts its first local presentation.
    3. Exactly one acceptance is guaranteed across the fleet.
    4. Both must reject because either server has seen a different request.

    Answer: Each server accepts its first local presentation.

    Local uniqueness does not establish global uniqueness. Define the actual acceptance domain and coordination/binding required by the protocol rather than extend each server's local state guarantee to every server.

  45. 45.A challenge-response protocol signs only a challenge, omitting intended server, session, and purpose. A valid response is presented in another accepting context that uses the same format. What should its authenticated binding include?

    Show answer and explanation
    1. The required peer/session/purpose context as defined by the protocol
    2. A rule choosing the response's privileged purpose from an unauthenticated outer parameter
    3. An assumption that any valid challenge signature automatically identifies every intended session and purpose
    4. Only the printable challenge value, ignoring where and for what action the response is accepted

    Answer: The required peer/session/purpose context as defined by the protocol

    A response must be valid for the intended operation/context, not merely some bytes. Use a vetted, explicitly scoped transcript/binding design so authentication is not transferable to an unintended accepting role.

  46. 46.A verifier uses the same fixed challenge forever, while its stated goal requires evidence of a fresh live response for each session. What does a previously valid recorded response challenge?

    Show answer and explanation
    1. That a challenge-response design has a freshness goal
    2. That the signature may remain valid over its originally covered bytes
    3. That recording and newly generating a response are different events
    4. The claimed per-session freshness

    Answer: The claimed per-session freshness

    A fixed repeated challenge permits reuse unless another required mechanism supplies freshness/context. Define and verify the actual nonce/session/liveness contract rather than treat signature validity alone as a new live interaction.

  47. 47.A signed command has a valid signature and a timestamp within a five-minute acceptance interval. The identical command can be resent during that interval and no replay state exists. What property is not supplied by the timestamp check alone?

    Show answer and explanation
    1. At-most-once command acceptance
    2. That the interval limits time without counting uses
    3. That the command is within the allowed time interval
    4. That a signature can authenticate historical bytes

    Answer: At-most-once command acceptance

    A time window and replay/effect identity solve different problems. Enforce the actual duplicate/usage contract where required instead of equate recent authentication with single use.

  48. 48.A protocol requires the next message sequence to be exactly two. A message authenticated correctly with sequence three arrives first. What should the strict sequence rule do?

    Show answer and explanation
    1. Reject or defer it under the protocol's declared out-of-order handling.
    2. Change the expected sequence to any received authenticated value without a rule.
    3. Accept it solely because its tag is valid.
    4. Treat sequence fields as unauthenticated because they are numbers.

    Answer: Reject or defer it under the protocol's declared out-of-order handling.

    Cryptographic validity does not replace protocol-state validation. Apply the specified sequencing/replay behavior to the authenticated field rather than infer that every authentic message is valid in every state.

  49. 49.A supplied replay window covers counters 93–100, with used counters {98,100}; unused in-window counters may be accepted once. Which listed counter can be accepted now?

    Show answer and explanation
    1. 100
    2. 95
    3. 98
    4. 92

    Answer: 95

    Ninety-five is in the allowed window and not recorded used. Ninety-two is outside it; ninety-eight and one hundred are already used. This computes the supplied state rule, not a universal replay-window design.

  50. 50.A supplied protocol permits at most 1,024 plaintext bytes per encrypted record. An otherwise authentic record encodes 1,200 bytes. What does correct cryptographic authentication not override?

    Show answer and explanation
    1. Every record is allowed whenever any valid tag exists.
    2. The protocol's required record-size bound
    3. The stated maximum expands to whatever length the sender chose.
    4. The plaintext must be silently truncated and treated as the same authenticated record.

    Answer: The protocol's required record-size bound

    An authentic input can still violate a protocol constraint. Enforce supported size/framing rules before the relevant allocation or effect; tag validity is not permission to ignore required resource and message limits.

  51. 51.A presenter sends a public certificate whose chain is trusted, but supplies no required proof of its private key. What does receiving that certificate alone not establish?

    Show answer and explanation
    1. That distributing a certificate differs from demonstrating its private key
    2. That the public certificate carries a public key under its stated format
    3. The presenter's possession of the corresponding private key
    4. That the public certificate can be copied by another presenter

    Answer: The presenter's possession of the corresponding private key

    A certificate is not itself a private-key possession proof. The protocol must verify the required proof and context, alongside its trust/identity checks, rather than authenticate a peer solely because it copied public certificate bytes.

  52. 52.A server certificate chains to a trusted authority but identifies service B. The client intends service A, and the names do not match under its service-identity rules. What should validation do?

    Show answer and explanation
    1. Accept because any trusted chain authenticates every service name.
    2. Replace the client's expected name with the certificate's chosen name.
    3. Reject the expected-service identity mismatch.
    4. Ignore name matching after the key verifies a signature.

    Answer: Reject the expected-service identity mismatch.

    Path trust and expected service identity are separate requirements. Construct the intended reference identity from trusted context and validate it under the applicable protocol, rather than accept an unrelated certified name.

  53. 53.A key's signature verifies mathematically. The consumer's explicit policy also requires its credential to be currently unexpired, but that credential has expired. What does the policy decide?

    Show answer and explanation
    1. Treat expiration as a failure of the hash algorithm.
    2. Accept because signature validity extends credential lifetime automatically.
    3. Rewrite the expiration field without a new authenticated credential.
    4. Reject under the stated credential-validity condition.

    Answer: Reject under the stated credential-validity condition.

    Cryptographic correctness does not replace credential-lifecycle policy. Apply the stated validity/context conditions; a rejection does not mean the signature equation stopped being mathematically valid.

  54. 54.A protocol marks a key as usable only for verifying reports. A consumer instead accepts it to authorize destructive commands. What authority dimension was not enforced?

    Show answer and explanation
    1. An assumption that a key authorized for one role gains all other protocol roles automatically
    2. Only successful parsing of the key bytes, ignoring permitted usage
    3. A rule deriving unrestricted operation authority from the key's mathematical type alone
    4. The key's allowed usage/purpose

    Answer: The key's allowed usage/purpose

    Keys and credentials have contextual roles as well as mathematical types. Enforce the actual permitted purpose and relevant algorithm/context restrictions rather than infer unrestricted authority from parseability or a valid operation.

  55. 55.Mutual TLS terminates at a gateway. The backend receives a caller-editable client-certificate header over an otherwise unrelated path. What must preserve the original client-authentication claim?

    Show answer and explanation
    1. An authenticated, trusted binding from the gateway's verified client context to this backend request
    2. Only a header name, without verifying which trusted gateway established its value
    3. A rule allowing callers on unrelated paths to assert the gateway's authentication result
    4. An assumption that any forwarded certificate text proves the original peer authenticated

    Answer: An authenticated, trusted binding from the gateway's verified client context to this backend request

    Authentication at one hop does not automatically authenticate metadata at another. Define the trusted forwarding/delegation boundary and bind the actual backend operation to the verified context.

  56. 56.A TLS connection performs server authentication only, with no client certificate or application login. What caller property does that alone not establish?

    Show answer and explanation
    1. The application user's authenticated identity
    2. That application authentication may be separate
    3. That a transport can have asymmetric authentication roles
    4. That the server-authentication procedure occurred

    Answer: The application user's authenticated identity

    Server-authenticated transport does not identify every client as an authorized application user. Follow the actual authentication/authorization design rather than infer both peer roles from one side's credential check.

  57. 57.A supplied pin policy hashes only the server public-key encoding. A renewed certificate changes its expiry metadata but keeps exactly that same encoded public key. What happens to that particular pin value?

    Show answer and explanation
    1. It becomes the hash of the expiry date.
    2. It necessarily changes because every certificate renewal changes the key bytes.
    3. It stays the same.
    4. It proves every other certificate-validation condition passes.

    Answer: It stays the same.

    The input to this pin is unchanged, so the hash is unchanged. A full-certificate pin has a different scope; matching a key pin does not itself establish name, validity, policy, or every other required check.

  58. 58.A ciphertext uses an appropriately secure scheme, and every copy of its only decryption key is lost. No alternate recovery mechanism exists in the supplied model. What recovery claim is unsupported?

    Show answer and explanation
    1. That keys are part of the stated recovery dependency
    2. That loss of a required key can affect data availability
    3. That retaining ciphertext alone supplies practical plaintext recovery
    4. That the ciphertext can still be stored

    Answer: That retaining ciphertext alone supplies practical plaintext recovery

    Ciphertext retention is not key recovery. Evaluate the actual key backups, access, and recovery design; the premise supplies no other means to recover the protected plaintext.

  59. 59.A signing device keeps its private key nonexportable but accepts arbitrary signing requests from any caller. The policy permits only approved release statements. What control is still missing?

    Show answer and explanation
    1. A rule accepting all caller-proposed statements because the device is trusted to store a key
    2. An assumption that every signature a nonexportable key produces is policy-authorized
    3. Only making the raw private key nonexportable while leaving arbitrary signing requests allowed
    4. Authorization of the signing operation and its permitted content/context

    Answer: Authorization of the signing operation and its permitted content/context

    Protecting key extraction and constraining key use are different requirements. A signing oracle can issue unwanted authentic signatures without revealing its private key; enforce the intended operation policy.

  60. 60.An envelope scheme encrypts data with data key D and wraps D under key-encryption key K1. Rotation rewraps the same D under K2 without changing data encryption. What bytes can remain unchanged under this specified operation?

    Show answer and explanation
    1. The identity of K1 and K2 by definition
    2. Every piece of rotation metadata necessarily
    3. The data ciphertext
    4. The wrapped-key object, despite a different wrapping key

    Answer: The data ciphertext

    Rewrapping can change protection of the same data key without reencrypting the payload. Preserve the actual key/context bindings and lifecycle rules; this does not claim that every rotation threat is solved by rewrapping alone.

  61. 61.An adversary retained an old wrapped data key and later obtained its old wrapping key. The live system has since rewrapped that same data key under a new wrapping key. What historical access can that live update not erase?

    Show answer and explanation
    1. That the data key itself stayed the same in this scenario
    2. That the live wrapped-key object may have changed
    3. The adversary's ability to recover the retained data key from its old material
    4. That retained copies affect the compromise model

    Answer: The adversary's ability to recover the retained data key from its old material

    A live rewrite does not modify an adversary's retained ciphertext/key copies. Assess the exposed data key and historical payload scope rather than assume rewrapping retroactively removes already available recovery material.

  62. 62.A token carries a key ID used for verification. The consumer fetches any key location named by the token and treats the result as trusted. What selection boundary must be enforced?

    Show answer and explanation
    1. An assumption that a key supplied alongside a token grants authority over that token's interpretation
    2. Only a syntactically valid selector, without checking which authority controls the selected key
    3. A rule replacing the configured trusted issuer/key set with any caller-selected successful fetch
    4. A trusted, appropriately scoped key lookup rather than token-chosen authority

    Answer: A trusted, appropriately scoped key lookup rather than token-chosen authority

    Key identifiers are lookup inputs, not independent roots of trust. Constrain their resolution to the intended issuer/key/algorithm policy and validate the actual statement context.

  63. 63.Issuer A and issuer B both use local key ID seven for different keys. A verifier caches only by key ID. What context is missing from that lookup identity?

    Show answer and explanation
    1. Only numeric key-ID equality, without the issuer's actual identifier scope
    2. A rule trusting whichever unrelated issuer first populated that numeric cache entry
    3. The relevant issuer/trust domain and key-selection scope
    4. An assumption that all independently issued key IDs are globally unique

    Answer: The relevant issuer/trust domain and key-selection scope

    Identifiers can be scoped locally. Preserve the issuer and other relevant trusted selection context so a cache cannot conflate unrelated keys or apply one domain's authority in another.

  64. 64.For algebra only, toy raw RSA uses modulus 55 and public exponent three. Message integer seven is mapped to seven cubed mod 55. What ciphertext integer follows?

    Show answer and explanation
    1. 49
    2. 21
    3. 7
    4. 13

    Answer: 13

    Seven cubed is 343, and 343 mod 55=13. This is deliberately insecure teaching arithmetic; raw small-modulus RSA is not a production encryption scheme or a substitute for vetted padding/protocols.

  65. 65.Anyone has a recipient's public encryption key and can create valid ciphertexts for it. The recipient says successful decryption proves the sender is one particular authorized person. What property is missing?

    Show answer and explanation
    1. Only the ability to encrypt to the recipient
    2. Authentication/authorization of that sender
    3. A rule treating possession of a public encryption key as the sender's private credential
    4. A guarantee that valid public-key ciphertexts identify a unique sender

    Answer: Authentication/authorization of that sender

    Public-key encryption can protect confidentiality to a recipient without authenticating who created each ciphertext. Use the actual protocol's appropriate sender-authentication and authority binding where required.

  66. 66.An idealized t-bit tag model bounds each forgery attempt's conditional success by 2^-t. For t=12 and at most eight attempts, what union bound follows for any success?

    Show answer and explanation
    1. Exactly 1/8
    2. At most 1/32
    3. At most 1/512
    4. Exactly zero

    Answer: At most 1/512

    Sum the conditional per-attempt bounds: 8×2^-12=8/4096=1/512. This supplied idealized bound is not a complete security claim for an arbitrary real MAC/AEAD or an exact success probability.

  67. 67.A verifier compares tags byte by byte and returns at the first mismatch. In a supplied model, runtime reveals the number of matched prefix bytes. What extra information does it expose beyond equality?

    Show answer and explanation
    1. Only the intended complete-tag equality bit, with no prefix information
    2. The matching-prefix length
    3. The complete secret key directly on every comparison, rather than the stated prefix information
    4. A guarantee that every mismatch position takes identical time in the supplied implementation

    Answer: The matching-prefix length

    A secret-dependent comparison can leak more than its intended Boolean result. Use appropriate vetted constant-time primitives and assess the surrounding code/observable behavior; a function's name alone does not establish the whole protocol's timing property.

  68. 68.A toy key combiner computes A XOR B. Its design assumes two independent secret inputs, but implementation sets B=A. What output results instead?

    Show answer and explanation
    1. Two independent keys concatenated
    2. Twice the input's entropy by definition
    3. All-zero bits of the same length
    4. A uniformly random new key independent of A

    Answer: All-zero bits of the same length

    A XOR A is zero. The supplied correlation defeats the proposed independence premise; arbitrary combination does not automatically add entropy. This toy example is not a recommended key-combining construction.

  69. 69.A comparison primitive is constant-time under its contract, but its caller logs the secret-dependent prefix-match count through another path. What property is not established by the primitive alone?

    Show answer and explanation
    1. The primitive's own stated behavior
    2. That application composition can add exposure
    3. That a second observable path exists
    4. Constant-time/nonleaking behavior of the surrounding operation

    Answer: Constant-time/nonleaking behavior of the surrounding operation

    A local primitive guarantee does not cover arbitrary wrapper behavior. Review the actual observables and control flow of the complete operation rather than extend one component's contract to every surrounding path.

  70. 70.A supplied protocol requires indistinguishable authentication-failure responses. Its wrapper hides error text but returns different status codes for two secret-dependent failure classes. What channel remains?

    Show answer and explanation
    1. Only the now-hidden text
    2. The distinguishable status-code outcome
    3. A guarantee that hiding text makes all observable failures equal
    4. A rule that status metadata cannot convey information

    Answer: The distinguishable status-code outcome

    Uniformity is a property of the relevant complete observation, not one field. Enforce the protocol's actual failure contract across status, body, timing, and other applicable behavior; the premise explicitly supplies a secret-dependent distinction.

  71. 71.A credential-validity policy uses interval [10,20) on a trusted protocol clock. The signature verifies and the clock reads exactly twenty. What is the stated validity result?

    Show answer and explanation
    1. Inside, treating the upper-exclusive boundary as though it included twenty
    2. Outside the interval
    3. Unknown only because the protocol clock returned an integer
    4. Inside, assuming a valid signature extends the explicit time interval

    Answer: Outside the interval

    The lower-inclusive, upper-exclusive interval excludes twenty. This computes the supplied boundary rule, not a claim that all credential formats use these exact expiry semantics.

  72. 72.A self-signed certificate verifies under its own included public key, but the consumer has no trusted identity binding to that key. What remains unestablished?

    Show answer and explanation
    1. That the key belongs to the intended peer
    2. That trust bootstrap is separate from signature equations
    3. That the included public key can be copied
    4. That the signature can be mathematically self-consistent

    Answer: That the key belongs to the intended peer

    Self-consistency is not an independently trusted peer identity. Establish the intended root/pin/authorized trust relationship rather than grant authority to any key that signs its own statement.

  73. 73.A supplied handshake requires a confirmation MAC under the newly derived session key over the agreed transcript. No required confirmation arrives. Both sides' public shares exist. What required evidence is missing?

    Show answer and explanation
    1. The peer's required key/transcript confirmation
    2. Only the earlier public-share exchange, treating it as the required later confirmation
    3. A rule substituting a local key computation for the absent authenticated peer response
    4. An assumption that public messages establish every subsequent peer proof automatically

    Answer: The peer's required key/transcript confirmation

    Key computation and explicit confirmation are different protocol events. Follow the actual authenticated handshake contract; do not infer a missing required peer proof from the presence of earlier messages.

  74. 74.An application proof must match channel binding B1 for the current connection. The proof authenticates B2, which is different. What should the binding check decide?

    Show answer and explanation
    1. Reject the connection-context mismatch.
    2. Accept because both binding values have the same byte length.
    3. Ignore the expected channel binding once any signature verifies.
    4. Change the authenticated B2 field to B1 after verification and treat it as the original proof.

    Answer: Reject the connection-context mismatch.

    Channel binding connects application evidence to a specified transport context under its protocol. Enforce the expected binding, rather than accept valid evidence from a different connection as interchangeable.

  75. 75.An access token is bound to certificate key K1. The presenter proves possession only of unrelated K2, and the resource requires the token's actual key binding. What is missing?

    Show answer and explanation
    1. Only a valid proof for any available key
    2. A guarantee that authenticating one certificate satisfies every token binding
    3. Proof for the bound key K1
    4. A rule that the presenter may replace the token's bound key

    Answer: Proof for the bound key K1

    An arbitrary key-possession proof does not satisfy a particular key binding. Validate the actual token-to-presenter relationship under the protocol, in addition to token integrity and relevant authorization.

  76. 76.A sender changes an epoch label and resets its nonce counter but continues using exactly the same AEAD key. Its nonce input does not include the label. What uniqueness claim fails?

    Show answer and explanation
    1. That a renamed epoch alone creates a fresh key/nonce domain
    2. That the actual encryption key remained the same
    3. That the displayed epoch label changed
    4. That the reset can repeat the same nonce input under that key

    Answer: That a renamed epoch alone creates a fresh key/nonce domain

    Labels do not change cryptographic inputs unless the protocol actually binds/derives them. Enforce a genuine fresh-key or disjoint nonce-domain transition under the algorithm's requirements.

  77. 77.Two encrypted chunks each authenticate correctly, but the protocol never binds a chunk index or checks order. The application accepts either ordering. What file-level integrity property is missing?

    Show answer and explanation
    1. The required relationship between authenticated chunks and their intended order
    2. Only validity of each tag considered independently of its file position
    3. An assumption that authentic chunks automatically authenticate every concatenation order
    4. A rule calling any permutation the intended original file without an order contract

    Answer: The required relationship between authenticated chunks and their intended order

    Authentic parts do not automatically authenticate their composition. Bind the relevant file/session/index structure and enforce the specified order/coverage instead of treating individually valid chunks as one uniquely defined file.

  78. 78.A per-chunk authenticated stream accepts a truncated prefix because there is no required final marker or authenticated total-length/completeness check. All received tags verify. What is not established?

    Show answer and explanation
    1. That chunk authenticity and message completeness differ
    2. That the entire intended message was received
    3. That a prefix can contain valid chunks
    4. That the received chunks passed their checks

    Answer: That the entire intended message was received

    Dropping a valid suffix need not forge a received chunk. Use the protocol's appropriate framing/completion contract to distinguish a complete message from an authentic prefix.

  79. 79.A supplied lossless format must encode all 256 possible one-byte inputs uniquely. It claims every encoded output is shorter than one byte. Why is that impossible in a byte-string format?

    Show answer and explanation
    1. There are 256 distinct empty byte strings.
    2. There is only one byte string shorter than one byte: the empty string.
    3. Every one-byte input must be identical.
    4. Lossless encoding does not require distinguishing inputs.

    Answer: There is only one byte string shorter than one byte: the empty string.

    An injective encoding needs enough distinct outputs. Counting rules out compressing every possible fixed-length input to a shorter byte string; this is a representation argument, not a claim about a particular compressor's average behavior.

  80. 80.A program copies key bytes into independent buffers A and B, then overwrites A with zeros. What does that overwrite alone not establish?

    Show answer and explanation
    1. That A's bytes changed under the stated operation
    2. That two independent copies existed
    3. That copy scope matters to a deletion claim
    4. Erasure of B's copied key bytes

    Answer: Erasure of B's copied key bytes

    Overwriting one storage object does not necessarily overwrite another independent copy. Assess actual representations, copies, access, and platform/language behavior rather than infer complete erasure from one buffer operation.

  81. 81.A service grants one worker access only to a public encryption key. No private decryption key or decryption service is available to it. Under the supplied secure scheme, what capability is not thereby granted?

    Show answer and explanation
    1. Use of the distributed public key
    2. Decryption of arbitrary ciphertext for that recipient
    3. That encryption and decryption capabilities can differ
    4. Encryption of new messages to the recipient

    Answer: Decryption of arbitrary ciphertext for that recipient

    Public encryption capability is not possession of the private decryption capability under the scheme's assumptions. Actual service authority must still be evaluated across all other available interfaces and copies.

  82. 82.A key hierarchy derives child keys deterministically from a secret parent and public child labels. An adversary obtains that parent. What descendant scope must be assessed?

    Show answer and explanation
    1. A rule treating deterministic descendants as independent secret roots solely because their labels differ
    2. An assumption that public child labels prevent a parent-key holder computing the child outputs
    3. The child keys computable from the exposed parent and labels
    4. Only the parent key's name, ignoring which child secrets it can actually derive

    Answer: The child keys computable from the exposed parent and labels

    Deterministic derivation does not protect children from an adversary holding their required parent inputs. Evaluate the actual hierarchy and key-use scope; a child's separate label is not an independent secret root.

  83. 83.Envelope-encrypted data and a plaintext copy of its wrapping key are readable from the same unauthorized storage location. The data key is recoverable with that wrapping key. What protection boundary is missing?

    Show answer and explanation
    1. Only the presence of an encryption layer, without restricting access to its recovery key
    2. An assumption that an adversary reading the wrapping key cannot use the described unwrap operation
    3. A rule treating additional wrapping as a substitute for protecting the necessary key material
    4. Independent protection of the required decryption authority

    Answer: Independent protection of the required decryption authority

    The scheme's confidentiality assumptions include key protection. If the adversary receives the necessary recovery material along with the ciphertext, merely layering wrappers does not establish the intended secrecy.

  84. 84.A proxy must verify a sender's digital signature over transmitted ciphertext without decrypting its message. Which supplied layout directly exposes that verification object?

    Show answer and explanation
    1. Only a private decryption key shared with every proxy
    2. An unsigned ciphertext labeled verified
    3. Only a signature hidden inside encrypted plaintext
    4. Ciphertext plus a publicly verifiable signature covering that ciphertext/context

    Answer: Ciphertext plus a publicly verifiable signature covering that ciphertext/context

    The verifier needs the signature and its exact covered bytes/context. An inner encrypted signature is not available to this proxy without decryption; this layout choice alone does not prove every property of a complete sign/encrypt protocol.

  85. 85.For algebra only, two shares follow y=s+a×x mod 17. Shares are (1,8) and (2,11). What secret s follows?

    Show answer and explanation
    1. 8
    2. 5
    3. 3
    4. 11

    Answer: 5

    Subtracting the two equations gives a=3 mod 17. Then s=8−3×1=5 mod 17. This is a deliberately small teaching model, not an implementation recommendation for production secret sharing.

  86. 86.In a supplied field model mod 17, a share is y=s+a at x=1. Both s and a can be any field value. Observing y=8 alone permits how many possible s values?

    Show answer and explanation
    1. 8
    2. 17
    3. 1
    4. 2

    Answer: 17

    For each s from zero through sixteen, choose a=8−s mod 17. All seventeen secrets are compatible with the one equation. The claim concerns this explicit model; privacy distributions require their own stated random-source assumptions.

  87. 87.A toy commitment publishes a public hash of a choice known to be either red or blue, with no secret or randomizer. The observer can compute both candidates' distinct hashes. What hiding claim fails?

    Show answer and explanation
    1. That the hash conceals which of those two choices was selected
    2. That the choices form a small known set
    3. That binding and hiding are different potential properties
    4. That the published value can be compared to candidate hashes

    Answer: That the hash conceals which of those two choices was selected

    A cryptographic-looking representation does not hide a small enumerable value when the observer can test all candidates. This toy construction is not a recommended commitment scheme.

  88. 88.A toy two-leaf tree defines root=H(H(a) concatenated with H(b)), using fixed-size leaf digests and the stated order. A verifier already has b and the trusted root. Which supplied extra value lets it compute that root?

    Show answer and explanation
    1. Only a's byte length, which does not supply its required sibling digest
    2. Only H(b), which the verifier can already compute without the sibling relation
    3. A replacement untrusted root, rather than evidence under the retained expected root
    4. H(a)

    Answer: H(a)

    The verifier combines the left sibling digest H(a) with its computed H(b) in the defined order. This checks the supplied toy membership relation; real tree protocols need their complete domain, encoding, and proof-validation rules.

  89. 89.A record has a valid membership proof under yesterday's trusted tree root. The decision requires membership in today's state, which may differ. What freshness condition is missing?

    Show answer and explanation
    1. A rule treating all signed roots as one timeless object
    2. Only the old proof's mathematical validity
    3. A guarantee that inclusion once means inclusion in every future state
    4. A proof/evidence binding to the required current state

    Answer: A proof/evidence binding to the required current state

    Proofs are scoped to their actual root/state. An intact old membership relationship does not automatically answer a current-state question; verify the intended checkpoint/freshness contract.

  90. 90.A membership proof verifies that a log contains the bytes saying task completed. No source observation is otherwise supplied. What truth claim is not established by inclusion alone?

    Show answer and explanation
    1. That a log can include a producer's assertion
    2. That the real-world task actually completed
    3. That those covered bytes belong to the verified tree
    4. That inclusion and event truth have different scopes

    Answer: That the real-world task actually completed

    Cryptographic integrity/inclusion can authenticate a representation within its trust model without proving every assertion in it. Assess source authority and actual outcome evidence before treating inclusion as truth certification.

  91. 91.A log presents two correctly signed roots. The consumer requires append-only continuity from its prior checkpoint. What additional relationship must it verify under the log protocol?

    Show answer and explanation
    1. Only separate validity of both root signatures, without their required continuity relation
    2. A rule replacing the retained checkpoint with any newer-looking root without consistency validation
    3. The required consistency/continuity evidence between those states
    4. An assumption that every two authenticated snapshots are necessarily append-only extensions

    Answer: The required consistency/continuity evidence between those states

    Authentication of two snapshots does not by itself establish their structural relationship. Apply the protocol's consistency and checkpoint rules instead of infer append-only evolution solely from separate signatures.

  92. 92.A supplied key-agreement protocol forbids an all-zero shared-secret result. A peer input produces that result, and the remaining KDF inputs are public. What should the implementation do?

    Show answer and explanation
    1. Treat every parseable peer key as proof of the required contributory behavior.
    2. Reject under the protocol's public-input/shared-secret validation rules.
    3. Accept because applying a KDF makes a known all-zero input secret.
    4. Use the zero bytes as an independently random session secret.

    Answer: Reject under the protocol's public-input/shared-secret validation rules.

    Follow the actual scheme/protocol's validation and failure contract. A KDF does not create unknown entropy from a known shared value plus public context. Real APIs and schemes have specific required validation behavior; do not substitute a generic parse-only check.

  93. 93.An ideal n-bit hash model gives a fixed-target preimage work scale of 2^n and collision-search scale about 2^(n/2). For n=128, which scales follow from those supplied rules?

    Show answer and explanation
    1. Both exactly 128 trials
    2. Both about 2⁶⁴
    3. 2¹²⁸ and about 2⁶⁴
    4. 2⁶⁴ and about 2¹²⁸

    Answer: 2¹²⁸ and about 2⁶⁴

    The two goals use different idealized work models. Substitute n=128 to obtain the stated exponents; these are asymptotic model scales, not measured costs or proof of any real implementation's complete security.

  94. 94.A protocol expects raw key bytes decoded from hex. One endpoint instead passes the ASCII characters of the hex text as its key bytes. What agreement must integration checks establish?

    Show answer and explanation
    1. Both endpoints use the intended decoded byte representation.
    2. The cipher automatically detects and decodes every textual representation without an API contract.
    3. A representation/length mismatch can be ignored as a display issue.
    4. Equal-looking key text always implies equal raw API key bytes.

    Answer: Both endpoints use the intended decoded byte representation.

    Cryptographic APIs consume defined byte objects. Explicitly encode/decode according to the protocol and validate lengths/types; textual similarity does not guarantee equal underlying keys.

  95. 95.A protocol requires authenticated confidential transport for a command. Handshake verification fails. The implementation silently retries that same command as unauthenticated plaintext. What requirement does that fallback violate?

    Show answer and explanation
    1. An assumption that failed authentication authorizes a plaintext retry of the protected command
    2. The command's required authenticated/confidential transport boundary
    3. A rule calling retry success proof that the required security boundary was preserved
    4. Only successful application delivery, regardless of the transport protections used

    Answer: The command's required authenticated/confidential transport boundary

    Failure handling must preserve the intended security contract. Use the supported error/recovery behavior rather than remove required protections merely to obtain an application response.

  96. 96.A resumption credential was scoped to service A, but a client reuses it while intending unrelated service B without validating that scope. What identity relationship must resumption preserve?

    Show answer and explanation
    1. An assumption that one valid session credential authenticates every later intended service
    2. A rule choosing the trusted expected identity from whatever server name appears in the response
    3. Only that an earlier session succeeded, without retaining its peer/context scope
    4. The expected authenticated service and credential/session context

    Answer: The expected authenticated service and credential/session context

    Resumption must retain the relevant authentication context under its actual protocol. A saved credential is not unrestricted authority for a different intended peer.

  97. 97.A toy key update is Knext=H(Kcurrent), with public H and no fresh secret input. An adversary learns Kcurrent. What future-key recovery claim is unsupported by that update alone?

    Show answer and explanation
    1. That key-update direction matters
    2. That H can be applied deterministically
    3. That adding fresh secret material would change the model
    4. That the adversary cannot compute Knext

    Answer: That the adversary cannot compute Knext

    An observer knowing the current input can compute the public deterministic update. A one-way function can have different backward and forward implications; it does not automatically heal this compromise for future keys.

  98. 98.A protocol selects decryption keys by authenticated epoch. Sender uses epoch two, while receiver has only epoch-one key state. No resynchronization transition has completed. What must the receiver resolve?

    Show answer and explanation
    1. An assumption that a new epoch's authentic records decrypt under every old epoch key
    2. The required key-update/epoch state before accepting the new message
    3. Only the epoch's display label, without obtaining the required secret/state transition
    4. A rule reporting successful authentication despite not having the required key context

    Answer: The required key-update/epoch state before accepting the new message

    Cryptographic operations and protocol state must agree. Follow the supported update/reordering/error mechanism and enforce the actual key context rather than assume a peer's advance automatically updates local secrets.

  99. 99.A generator outputs the sequence 0,1,…,255 repeatedly. Its byte frequencies are exactly uniform over each cycle, but its algorithm/state are public. What security claim does that frequency test not establish?

    Show answer and explanation
    1. That a deterministic public sequence can be predictable
    2. That statistical appearance and secrecy assumptions differ
    3. That the counted byte frequencies are uniform
    4. Unpredictability of future output to the observer

    Answer: Unpredictability of future output to the observer

    A simple distribution test does not prove cryptographic unpredictability. Assess the actual generator, entropy/state, and adversary model rather than equate balanced observed frequencies with secure secret generation.

  100. 100.A protocol requires comparing every byte of a thirty-two-byte authentication tag. A wrapper compares only the first sixteen and accepts tags whose suffix differs. What acceptance invariant is missing?

    Show answer and explanation
    1. A rule ignoring all authenticated suffix bytes because their position is later
    2. Full required tag equality/verification
    3. Only matching length of the tag's prefix
    4. A guarantee that equal prefixes imply equal full tags

    Answer: Full required tag equality/verification

    Implement the agreed tag length and verification semantics. A truncated comparison changes the acceptance rule and its security model; it cannot be reported as verification of all thirty-two required bytes.

  101. 101.Round-trip tests always pass matching associated data to encryption and decryption. A faulty implementation ignores that data in both directions, so those tests still pass. Which targeted test distinguishes the required binding?

    Show answer and explanation
    1. Repeat only successful round trips with matching context in both directions.
    2. Check only that returned plaintext length matches its original length.
    3. Change the decoder's associated data and require authentication failure.
    4. Compare printed algorithm labels without testing whether context mutation is rejected.

    Answer: Change the decoder's associated data and require authentication failure.

    Positive self-consistency can miss a shared omission. A negative context-mutation test exercises whether the required authenticated binding is actually enforced, alongside the other protocol/lifecycle checks the implementation needs.