Repository navigation
Decrypt a page by its encryption in one place, and read a TDEF in its steps - #134
Merged
Merged
Conversation
…s header in functions of their own - Verify the password and decrypt a page with EncryptionState::verify and decrypt_page, which the opening and read_page share, rather than the same match in each - Read page 0 and check its version and signature in read_page0, and read the header with DbHeader::from_page0 - Make the errors and the row offsets of find_row with a closure each Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… as a ForeignKeyReference - Read the header, the columns and the indexes of read_table_def in functions of their own - Read a column entry, its column numbers and the values only Jet4 and ACE entries have in functions of their own - Read the slots of the columns of an index in a function of its own - Read the foreign key of a logical index as a ForeignKeyReference, which build_index_defs gives as it is rather than copy it field by field Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
CoverageFor d441dcd. |
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.
Summary
EncryptionState::decrypt_page, which both use, and the verification of the password that makes the state isEncryptionState::verify. Page 0 is read and its version and signature checked inread_page0, and the header read withDbHeader::from_page0.ForeignKeyReference, which build_index_defs gives as it is rather than copy it field by field.parse_column_entryis above them (CC 11), as a straight sequence of the nine reads of a column entry, each of which may fail;FileError'sDisplayis kept as the match of its 21 messages.finish_open_with_passwordread_pageopen_raw_from_sourcefind_rowread_table_defparse_column_entriesparse_index_column_defsparse_logical_indexesbuild_index_defs🤖 Generated with Claude Code