vhost/crypto: add public function implementation