Lines Matching refs:alg
41 size_t qcrypto_hash_digest_len(QCryptoHashAlgo alg) in qcrypto_hash_digest_len() argument
43 assert(alg < G_N_ELEMENTS(qcrypto_hash_alg_size)); in qcrypto_hash_digest_len()
44 return qcrypto_hash_alg_size[alg]; in qcrypto_hash_digest_len()
47 int qcrypto_hash_bytesv(QCryptoHashAlgo alg, in qcrypto_hash_bytesv() argument
54 g_autoptr(QCryptoHash) ctx = qcrypto_hash_new(alg, errp); in qcrypto_hash_bytesv()
69 int qcrypto_hash_bytes(QCryptoHashAlgo alg, in qcrypto_hash_bytes() argument
78 return qcrypto_hash_bytesv(alg, &iov, 1, result, resultlen, errp); in qcrypto_hash_bytes()
101 QCryptoHash *qcrypto_hash_new(QCryptoHashAlgo alg, Error **errp) in qcrypto_hash_new() argument
105 if (!qcrypto_hash_supports(alg)) { in qcrypto_hash_new()
107 QCryptoHashAlgo_str(alg)); in qcrypto_hash_new()
112 hash = qcrypto_hash_afalg_driver.hash_new(alg, NULL); in qcrypto_hash_new()
119 hash = qcrypto_hash_lib_driver.hash_new(alg, errp); in qcrypto_hash_new()
188 int qcrypto_hash_digestv(QCryptoHashAlgo alg, in qcrypto_hash_digestv() argument
194 g_autoptr(QCryptoHash) ctx = qcrypto_hash_new(alg, errp); in qcrypto_hash_digestv()
208 int qcrypto_hash_digest(QCryptoHashAlgo alg, in qcrypto_hash_digest() argument
216 return qcrypto_hash_digestv(alg, &iov, 1, digest, errp); in qcrypto_hash_digest()
219 int qcrypto_hash_base64v(QCryptoHashAlgo alg, in qcrypto_hash_base64v() argument
225 g_autoptr(QCryptoHash) ctx = qcrypto_hash_new(alg, errp); in qcrypto_hash_base64v()
239 int qcrypto_hash_base64(QCryptoHashAlgo alg, in qcrypto_hash_base64() argument
247 return qcrypto_hash_base64v(alg, &iov, 1, base64, errp); in qcrypto_hash_base64()