Commit Graph

15 Commits

Author SHA1 Message Date
dsmurrow 0c5eccc69e
docs: fixed some documentation errors in BLAKE2b (#1234)
* docs: Slight modifications

Changed #include comments from doc to regular because it messed up the generated documentation. Changed blake2b() comment from regular to doc

* docs: Removed @define's

Doxygen doesn't seem to like them. Also fixed param on CEIL

* chore: made it so math directory gets built

* docs: added back third slash for includes

* feat: added extended Euclidean algorithm

* fix: key wasn't being considered in the algorithm

* chore: added more tests

* chore: Deleted file accidentally added from different branch

* chore: moved tests to their own function

* chore: apply suggestions from code review

---------

Co-authored-by: David Leal <halfpacho@gmail.com>
2023-04-07 13:35:40 -06:00
dsmurrow acbaf4a291
feat: implemented BLAKE2b cryptographic hashing algorithm (#1230)
* feat: added BLAKE2b with one working assert
docs: added BLAKE2b to README.md

* [enhancement] added more doc comments and fully implemented BLAKE2b key hashing

* fix: forgot to add arg

* chore: applied clang-format

* updating DIRECTORY.md

* docs: added main function docs

Co-authored-by: David Leal <halfpacho@gmail.com>

* docs: removed @file qualifier

Co-authored-by: David Leal <halfpacho@gmail.com>

* docs: added doc comment for assert_bytes()

Co-authored-by: David Leal <halfpacho@gmail.com>

* docs: added documentation for #include's

As requested by Panquesito27 in https://github.com/TheAlgorithms/C/pull/1230#discussion_r1130143641

* docs: added algorithm description

As requested in https://github.com/TheAlgorithms/C/pull/1230#discussion_r1130143364

* docs: added reasoning for warning suppression pragmas

* docs: spellcheck and additions

Added doc for bb definition.
Added description for mixing function G and compression function F.

* Added print statement to let user know tests have passed

Co-authored-by: David Leal <halfpacho@gmail.com>

* Updated doc comments for variables

* docs: removed old doc comments

* fix: had minus sign instead of assignment operator

* chore: replaced uint64_t[16] with block_t type to improve readability

* docs: defined macro constants to reduce magic numbers

* fix: fixed memory leak in blake2b()

* docs: moved comment

Moved comment about the suppressed warning directly above the code that emits the warning

* docs: added psuedocode/feat: added u128

Added psuedocode for the algorithm in doc comment for BLAKE2B(). Added return docs for void functions. Defined an unsigned 128-bit integer to match the max input size specified for the algorithm.

* fix: fixed build errors

* docs: added some clarifying comments

* docs: reduced magic numbers

---------

Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-03-13 20:38:42 -06:00
Erik Pellizzon c56b967161
test: removed commented code (#885) 2021-10-15 11:01:56 -05:00
Priyanshu 3a85f72d7a
fix: Integer literal is too large to be represented as signed integer typed (#793) 2021-02-17 21:10:29 -06:00
Krishna Vedala ff2e7a3528
[enhancement] formatted and added `Hash` directory to cmake (#580)
* added hash folder to CMAKE build

* split sdbm code from hash.c to independent program

* update readme file

* docs + vartype fix

* split djb2 code from hash.c to independent program

* fix function reference

* split xor8 code from hash.c to independent program

* split adler32 code from hash.c to independent program

* remove additional author

* split crc32 code from hash.c to independent program

* remove redundant files

* interpret large numbers as specific types

* disable eror clang-diagnostic-implicitly-unsigned-literal

* force use constants

* updating DIRECTORY.md

* clang-tidy fixes for 606e5d4fce

* added return in function doc to enable doc

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-07-29 13:18:11 -04:00
github-actions 6f98288110 formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
github-actions 0779a2b70d formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
Krishna Vedala 855c9124b8
added stdint.h for integer length typedefs 2020-04-03 08:10:28 -04:00
Krishna Vedala bc28239a15
Merge branch 'master' of github.com:kvedala/C 2020-03-07 10:53:52 -05:00
Krishna Vedala fba36e3b15
print hashes in HEX 2020-03-07 10:53:41 -05:00
Krishna Vedala 83bfb72fcf
print hashes in HEX 2020-03-07 10:45:24 -05:00
ChatN0ir ca18351173 Fixed CRC-32 Error 2019-10-14 17:49:03 +02:00
ChatN0ir 71738b36a9 Forgot to add crc32 to hash README.md 2019-10-13 12:16:12 +02:00
ChatN0ir c924079d60 Implemented CRC-32 Checksum-Algorithm 2019-10-13 12:13:00 +02:00
Anup Kumar Panwar 444d4b11d5 Refactor 2018-10-08 21:18:35 +05:30