| Crates.io | chksum-ffi |
| lib.rs | chksum-ffi |
| version | 0.1.0-rc3 |
| created_at | 2022-03-01 17:57:51.712263+00 |
| updated_at | 2022-03-02 18:47:33.877621+00 |
| description | FFI bindings for chksum library. |
| homepage | |
| repository | https://github.com/ventaquil/chksum |
| max_upload_size | |
| id | 541705 |
| size | 10,876 |
Basic FFI bindings which allows to use chksum library in other languages.
Bindings are available for both md5 and sha1 hash functions.
| Binding | Description |
|---|---|
chksum_hash_*_new() |
Create new instance of hash. |
chksum_hash_*_update(hash, data, length) |
Update hash with incoming data. Function processes only full blocks of data and doesn't apply padding. |
chksum_hash_*_digest(hash) |
Return hash raw digest. You need to free memory on your own. |
chksum_hash_*_hexdigest(hash) |
Return hash digest as hex string. You need to free memory on your own. |
chksum_hash_*_drop(hash) |
Drop memory of hash structure. |