C implementation of the krypt-core API.