Repository navigation
Add opt-in conformance check for missing symmetric output buffers - #8
Open
yss1522475048-collab wants to merge 2 commits into
Open
yss1522475048-collab wants to merge 2 commits into
yss1522475048-collab wants to merge 2 commits into
Conversation
Add conformance probe documentation for GM/T 0102-2020.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds an opt-in check for GM/T 0102-2020 §6.10 cc) (printed p. 48). It first verifies both directions against the public SM4-CBC known-answer example in GB/T 17964-2021 Annex B, then checks the status returned when the output buffer is absent. GB/T 36322-2018 Annex A maps the specified output-parameter error to SDR_OUTARGERR (0x0100001E).
On the official SoftSDF v1.1.3 Windows x64 DLL (SHA-256 75aa4fb9cc2e1e0f3287678ea36f2e123773821cd75c893537e2b15c2cad0f92), both known-answer controls match. When the output buffer is absent, both operations return SDR_OK and report 64 bytes. The opt-in check reports these statuses and exits 1 on that release.
Is the successful length query an intentional extension? If so, how should callers distinguish it from the conformance path?
This PR adds only the check, its public test vector, and instructions. Production code and CI are unchanged.