Lines Matching refs:errp
52 Error **errp) in qcrypto_hash_bytesv() argument
54 g_autoptr(QCryptoHash) ctx = qcrypto_hash_new(alg, errp); in qcrypto_hash_bytesv()
60 if (qcrypto_hash_updatev(ctx, iov, niov, errp) < 0 || in qcrypto_hash_bytesv()
61 qcrypto_hash_finalize_bytes(ctx, result, resultlen, errp) < 0) { in qcrypto_hash_bytesv()
74 Error **errp) in qcrypto_hash_bytes() argument
78 return qcrypto_hash_bytesv(alg, &iov, 1, result, resultlen, errp); in qcrypto_hash_bytes()
84 Error **errp) in qcrypto_hash_updatev() argument
88 return drv->hash_update(hash, iov, niov, errp); in qcrypto_hash_updatev()
94 Error **errp) in qcrypto_hash_update() argument
98 return qcrypto_hash_updatev(hash, &iov, 1, errp); in qcrypto_hash_update()
101 QCryptoHash *qcrypto_hash_new(QCryptoHashAlgo alg, Error **errp) in qcrypto_hash_new() argument
106 error_setg(errp, "Unsupported hash algorithm %s", in qcrypto_hash_new()
119 hash = qcrypto_hash_lib_driver.hash_new(alg, errp); in qcrypto_hash_new()
141 Error **errp) in qcrypto_hash_finalize_bytes() argument
145 return drv->hash_finalize(hash, result, result_len, errp); in qcrypto_hash_finalize_bytes()
152 Error **errp) in qcrypto_hash_finalize_digest() argument
159 ret = qcrypto_hash_finalize_bytes(hash, &result, &resultlen, errp); in qcrypto_hash_finalize_digest()
174 Error **errp) in qcrypto_hash_finalize_base64() argument
180 ret = qcrypto_hash_finalize_bytes(hash, &result, &resultlen, errp); in qcrypto_hash_finalize_base64()
192 Error **errp) in qcrypto_hash_digestv() argument
194 g_autoptr(QCryptoHash) ctx = qcrypto_hash_new(alg, errp); in qcrypto_hash_digestv()
200 if (qcrypto_hash_updatev(ctx, iov, niov, errp) < 0 || in qcrypto_hash_digestv()
201 qcrypto_hash_finalize_digest(ctx, digest, errp) < 0) { in qcrypto_hash_digestv()
212 Error **errp) in qcrypto_hash_digest() argument
216 return qcrypto_hash_digestv(alg, &iov, 1, digest, errp); in qcrypto_hash_digest()
223 Error **errp) in qcrypto_hash_base64v() argument
225 g_autoptr(QCryptoHash) ctx = qcrypto_hash_new(alg, errp); in qcrypto_hash_base64v()
231 if (qcrypto_hash_updatev(ctx, iov, niov, errp) < 0 || in qcrypto_hash_base64v()
232 qcrypto_hash_finalize_base64(ctx, base64, errp) < 0) { in qcrypto_hash_base64v()
243 Error **errp) in qcrypto_hash_base64() argument
247 return qcrypto_hash_base64v(alg, &iov, 1, base64, errp); in qcrypto_hash_base64()