digest subu8vector - part-cw/lambdanative GitHub Wiki
(digest-subu8vector u8vect start end algorithm #!optional result-type)
Returns the digest of the u8vector section, using the specified algorithm
Parameter | Description |
---|---|
u8vect | u8vector to digest |
start | Start index |
end | End index |
algorithm | Algorithm to use: crc32 , md5 , sha-1 , sha-224 or sha-256 |
result-type | Type of result: hex or u8vector |
Example
> (digest-subu8vector (u8vector 1 2 3 4) 0 2 'sha-224)
"345c41ed451c6f4ca538563c12d83817f0fbb68ecd83b1423c7e1f3f"
> (digest-subu8vector (u8vector 1 2 3 4) 0 2 'sha-224 'u8vector)
#u8(52 92 65 237 69 28 111 76 165 56 86 60 18 216 56 23 240 251 182 142 205 131 177 66 60 126 31 63)