Polish API unsigned long outlen vs. unsigned long *outlen #176
Labels
No labels
bug
duplicate
enhancement
feature
help wanted
improve API
invalid
needs documentation
not-planned
rtfm
stale
support
wishlist
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libtom/libtomcrypt#176
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?
based on discussion in #171 I have found the following places where we IMO handle incosistently
outlenLooking at these it also became obvious to me that there's different paradigms used for different classes of algorithms... like the
XXhash_done()functions always use the same signature aspelican_done()and TBH I'm not sure yet how much I (dis)like that type of signature...well i suppose in the case of crc32_finish it's clear that the result len will be 4 bytes, so there's no need to pass a pointer-to where the size is being written to by the callee.
But it is exactly the same case in many mac/authenc functions returning a tag of fixed length (where we utilize
unsigned long *outlenparameter)