Minor documentation and formatting fixes #799
Labels
No labels
bug
duplicate
enhancement
feature
help wanted
improve API
invalid
needs documentation
not-planned
rtfm
stale
support
wishlist
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libtom/libtomcrypt#799
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I noticed a few small typos, documentation inconsistencies, and formatting issues.
These are all minor cleanup items, but fixing them would improve consistency and readability:
ltc_pkcs_1_pss_encode_mgf1.c:72: remove the unnecessary blank linehmac_init.c:67: remove extra spaceshash_memory.c:hash_descriptor[hash].hashsizeis accessed multiple times. It could be stored in a local variable (like inhmac_done.c) after validating the hash, and then reused throughout the function:der_decode_choice.c:111+112: align the calculation linesder_decode_integer.c:75: remove the unnecessary blank lineder_decode_short_integer.c:62: remove the unnecessary blank lineder_decode_utctime.c:74-81: align the commentder_decode_generalizedtime.c:91-98: align the comments_der_decode_sequence_flexi.c: TheXMALLOC,XCALLOCandXREALLOCcalls use a code style that differs from the rest of the codebase. I would prefer to write them as separate assignment and NULL-check statements, for example:instead of:
I am not sure about changing "separate assignment + NULL-check" the rest is fixed in #800