1 IN: checksums.openssl.tests
2 USING: byte-arrays checksums.openssl checksums tools.test
3 accessors kernel system ;
6 B{ 201 238 222 100 92 200 182 188 138 255 129 163 115 88 240 136 }
9 "Hello world from the openssl binding" >byte-array
10 "md5" <openssl-checksum> checksum-bytes
14 B{ 63 113 237 255 181 5 152 241 136 181 43 95 160 105 44 87 49 82 115 0 }
17 "Hello world from the openssl binding" >byte-array
18 "sha1" <openssl-checksum> checksum-bytes
22 "Bad checksum test" >byte-array
23 "no such checksum" <openssl-checksum>
25 ] [ [ unknown-digest? ] [ name>> "no such checksum" = ] bi and ]
28 [ ] [ image openssl-sha1 checksum-file drop ] unit-test