Standalone SHA-1 hashing implementation #51

Merged
admin merged 4 commits from feature/sha1 into develop 2026-03-07 22:12:40 +00:00
Owner

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)

  • Streaming API: SHA1Init / SHA1Update / SHA1Final
  • FIPS-180 compliant: 80-round compression (SHA1Transform), big-endian Invert helper, standard padding with appended bit-length
  • Types: TSHA1Context (state + 64-byte block buffer + length counter), TSHA1Digest (20-byte output)

Commits (4)

  • b9643a7b feature: SHA-1 Hashing
  • 3d334b8e feature: SHA-1 Hashing
  • 452cc0c8 Rebased on develop & remove test code from Kernel main.
  • c70c0b52 Rebase: Fixed accidentally removed unit tests.

Stats

1 file changed, +210

## 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) - Streaming API: `SHA1Init` / `SHA1Update` / `SHA1Final` - FIPS-180 compliant: 80-round compression (`SHA1Transform`), big-endian `Invert` helper, standard padding with appended bit-length - Types: `TSHA1Context` (state + 64-byte block buffer + length counter), `TSHA1Digest` (20-byte output) ### Commits (4) - `b9643a7b` feature: SHA-1 Hashing - `3d334b8e` feature: SHA-1 Hashing - `452cc0c8` Rebased on develop & remove test code from Kernel main. - `c70c0b52` Rebase: Fixed accidentally removed unit tests. ### Stats 1 file changed, **+210**
admin added 4 commits 2026-03-07 21:07:10 +00:00
- Add SHA-1 hashing implementation with Init/Update/Final API and inline test in kernel,
  following the same interface as MD5 & the fpc rtl.
- Add SHA-1 hashing implementation with Init/Update/Final API and inline test in kernel,
  following the same interface as MD5 & the fpc rtl.
Rebased on develop & remove test code from Kernel main.
continuous-integration/drone/push Build is passing
452cc0c8c8
Rebase: Fixed accidentally removed unit tests.
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
c70c0b52c3
Aaron approved these changes 2026-03-07 21:07:52 +00:00
admin merged commit 605ec9d817 into develop 2026-03-07 22:12:40 +00:00
Sign in to join this conversation.