Lines Matching refs:alg
23 qcrypto_afalg_hash_format_name(QCryptoHashAlgorithm alg, in qcrypto_afalg_hash_format_name() argument
30 switch (alg) { in qcrypto_afalg_hash_format_name()
54 error_setg(errp, "Unsupported hash algorithm %d", alg); in qcrypto_afalg_hash_format_name()
68 qcrypto_afalg_hash_hmac_ctx_new(QCryptoHashAlgorithm alg, in qcrypto_afalg_hash_hmac_ctx_new() argument
75 name = qcrypto_afalg_hash_format_name(alg, is_hmac, errp); in qcrypto_afalg_hash_hmac_ctx_new()
102 qcrypto_afalg_hash_ctx_new(QCryptoHashAlgorithm alg, in qcrypto_afalg_hash_ctx_new() argument
105 return qcrypto_afalg_hash_hmac_ctx_new(alg, NULL, 0, false, errp); in qcrypto_afalg_hash_ctx_new()
109 qcrypto_afalg_hmac_ctx_new(QCryptoHashAlgorithm alg, in qcrypto_afalg_hmac_ctx_new() argument
113 return qcrypto_afalg_hash_hmac_ctx_new(alg, key, nkey, true, errp); in qcrypto_afalg_hmac_ctx_new()
118 QCryptoHashAlgorithm alg, in qcrypto_afalg_hash_hmac_bytesv() argument
128 const int expect_len = qcrypto_hash_digest_len(alg); in qcrypto_afalg_hash_hmac_bytesv()
143 afalg = qcrypto_afalg_hash_ctx_new(alg, errp); in qcrypto_afalg_hash_hmac_bytesv()
176 qcrypto_afalg_hash_bytesv(QCryptoHashAlgorithm alg, in qcrypto_afalg_hash_bytesv() argument
182 return qcrypto_afalg_hash_hmac_bytesv(NULL, alg, iov, niov, result, in qcrypto_afalg_hash_bytesv()
193 return qcrypto_afalg_hash_hmac_bytesv(hmac->opaque, hmac->alg, in qcrypto_afalg_hmac_bytesv()