Skip to main content

Module hash

Module hash 

Source
Expand description

Hash methods: hash_create, hash_update, hash_finalize.

Hash objects are owned by the daemon and referenced by a client- supplied handle id (a string). The handle table lives in the [HashStore] passed to each handler.

For the skeleton, handlers exercise the core Hash API under a per-connection lock. The underlying confium_core::hash::Hash requires a loaded provider, so these methods return an Engine error when no provider offers the requested algorithm.

Functions§

hash_create
hash_finalize
hash_finalize({ "handle": "..." }){"digest": "<base64>"}
hash_update
hash_update({ "handle": "...", "data": "<base64>" }){"ok": true}