feature/sha1
develop
Adds a standalone SHA-1 hashing implementation to the kernel.
New: SHA-1 hashing unit (src/include/sha1.pas, +210 lines)
src/include/sha1.pas
SHA1Init
SHA1Update
SHA1Final
SHA1Transform
Invert
TSHA1Context
TSHA1Digest
b9643a7b
3d334b8e
452cc0c8
c70c0b52
1 file changed, +210
- Add SHA-1 hashing implementation with Init/Update/Final API and inline test in kernel, following the same interface as MD5 & the fpc rtl.
No dependencies set.
The note is not visible to the blocked user.
Standalone SHA-1 hashing implementation
Summary
Adds a standalone SHA-1 hashing implementation to the kernel.
Changes
New: SHA-1 hashing unit (
src/include/sha1.pas, +210 lines)SHA1Init/SHA1Update/SHA1FinalSHA1Transform), big-endianInverthelper, standard padding with appended bit-lengthTSHA1Context(state + 64-byte block buffer + length counter),TSHA1Digest(20-byte output)Commits (4)
b9643a7bfeature: SHA-1 Hashing3d334b8efeature: SHA-1 Hashing452cc0c8Rebased on develop & remove test code from Kernel main.c70c0b52Rebase: Fixed accidentally removed unit tests.Stats
1 file changed, +210