Skip to content

Commit 1ff2d94

Browse files
committed
FEAT: optional support for SHA3 family checksums (included in Bulk)
1 parent 35c1b61 commit 1ff2d94

11 files changed

+941
-9
lines changed

make/rebol3.nest

+2
Original file line numberDiff line numberDiff line change
@@ -743,9 +743,11 @@ include-optional-checksums: [
743743
config: INCLUDE_RIPEMD160 ; checksum: RIPE-MD-160 (requires INCLUDE_MBEDTLS)
744744
config: INCLUDE_SHA224
745745
config: INCLUDE_SHA384
746+
config: INCLUDE_SHA3 ; checksum: SHA3-224, SHA3-256, SHA3-384 and SHA3-512
746747
core-files: [
747748
%core/mbedtls/md4.c
748749
%core/mbedtls/ripemd160.c
750+
%core/mbedtls/sha3.c
749751
]
750752
]
751753
include-base85-encoding: [

src/boot/sysobj.reb

+3-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ catalog: object [
108108
uri-component: #[bitset! #{0000000041E6FFC07FFFFFE17FFFFFE2}] ;A-Z a-z 0-9 !'()*-._~
109109
quoted-printable: #[bitset! #{FFFFFFFFFFFFFFFBFFFFFFFFFFFFFFFF}]
110110
]
111-
checksums: [adler32 crc24 crc32 tcp md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd160]
111+
checksums: [
112+
; will be filled on boot from `Init_Crypt` in `n-crypt.c
113+
]
112114
compressions: [deflate zlib gzip] ;; these are always available
113115
elliptic-curves: [
114116
; will be filled on boot from `Init_Crypt` in `n-crypt.c`

src/boot/words.reb

+4
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ sha256
212212
sha384
213213
sha512
214214
ripemd160
215+
sha3-224
216+
sha3-256
217+
sha3-384
218+
sha3-512
215219

216220
; Codec actions
217221
identify

0 commit comments

Comments
 (0)