Skip to content

Commit

Permalink
FEAT: optional support for SHA3 family checksums (included in Bulk)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Nov 22, 2023
1 parent 35c1b61 commit 1ff2d94
Show file tree
Hide file tree
Showing 11 changed files with 941 additions and 9 deletions.
2 changes: 2 additions & 0 deletions make/rebol3.nest
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,11 @@ include-optional-checksums: [
config: INCLUDE_RIPEMD160 ; checksum: RIPE-MD-160 (requires INCLUDE_MBEDTLS)
config: INCLUDE_SHA224
config: INCLUDE_SHA384
config: INCLUDE_SHA3 ; checksum: SHA3-224, SHA3-256, SHA3-384 and SHA3-512
core-files: [
%core/mbedtls/md4.c
%core/mbedtls/ripemd160.c
%core/mbedtls/sha3.c
]
]
include-base85-encoding: [
Expand Down
4 changes: 3 additions & 1 deletion src/boot/sysobj.reb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ catalog: object [
uri-component: #[bitset! #{0000000041E6FFC07FFFFFE17FFFFFE2}] ;A-Z a-z 0-9 !'()*-._~
quoted-printable: #[bitset! #{FFFFFFFFFFFFFFFBFFFFFFFFFFFFFFFF}]
]
checksums: [adler32 crc24 crc32 tcp md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd160]
checksums: [
; will be filled on boot from `Init_Crypt` in `n-crypt.c
]
compressions: [deflate zlib gzip] ;; these are always available
elliptic-curves: [
; will be filled on boot from `Init_Crypt` in `n-crypt.c`
Expand Down
4 changes: 4 additions & 0 deletions src/boot/words.reb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ sha256
sha384
sha512
ripemd160
sha3-224
sha3-256
sha3-384
sha3-512

; Codec actions
identify
Expand Down
Loading

0 comments on commit 1ff2d94

Please sign in to comment.