File tree 4 files changed +25
-2
lines changed
4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ checksum: native [
383
383
/method {Method to use}
384
384
word [word! ] {Methods: SHA1 SHA256 MD5 CRC32}
385
385
/key {Returns keyed HMAC value}
386
- key-value [any-string! ] {Key to use}
386
+ key-value [any-string! binary! ] {Key to use}
387
387
]
388
388
389
389
compress: native [
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ static struct digest {
170
170
** /method {Method to use}
171
171
** word [word!] {Method: SHA1 MD5}
172
172
** /key {Returns keyed HMAC value}
173
- ** key-value [any-string!] {Key to use}
173
+ ** key-value [any-string! binary! ] {Key to use}
174
174
**
175
175
***********************************************************************/
176
176
{
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ wrap load %units/mezz-crypt-test.r3
16
16
wrap load %units/rsa-test.r3
17
17
wrap load %units/dh-test.r3
18
18
wrap load %units/port-test.r3
19
+ wrap load %units/checksum-test.r3
19
20
20
21
wrap load %units/crash-test.r3
21
22
Original file line number Diff line number Diff line change
1
+ Rebol [
2
+ Title: "Rebol checksum test script"
3
+ Author: "Olds"
4
+ File: %checksum-test.red
5
+ Tabs: 4
6
+ Needs: [%../quick-test-module.r3 ]
7
+ ]
8
+
9
+ ~~~start-file~~~ "Checksum"
10
+
11
+ ===start-group=== "Checksum with binary key (issue #1910)"
12
+ ;@@ https://github.com/rebol/rebol-issues/issues/1910
13
+ --test-- "checksum-1"
14
+ --assert #{ 800A1BC1B53CAA795F4DF39DC57652209239E1F1 }
15
+ = checksum /key to binary! "Hello world" "mykey"
16
+ --assert #{ 800A1BC1B53CAA795F4DF39DC57652209239E1F1 }
17
+ = checksum /key to binary! "Hello world" to binary! "mykey"
18
+
19
+
20
+ ===end-group===
21
+
22
+ ~~~end-file~~~
You can’t perform that action at this time.
0 commit comments