hash_memory #265
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#265
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?
hash_memory(idx, NULL, 0, digest, &len);
If this call will be exception!
The following is better.
int hash_memory(int hash, const unsigned char *in, unsigned long inlen,
unsigned char *out, unsigned long *outlen)
{
if(in == NULL || inlen == 0 || out == NULL || outlen == 0)return 6;
......
}