Lines Matching refs:hmac
89 QCryptoHmac *hmac = NULL; in test_hmac_alloc() local
102 hmac = qcrypto_hmac_new(data->alg, (const uint8_t *)KEY, in test_hmac_alloc()
104 g_assert(hmac != NULL); in test_hmac_alloc()
106 ret = qcrypto_hmac_bytes(hmac, (const char *)INPUT_TEXT, in test_hmac_alloc()
116 qcrypto_hmac_free(hmac); in test_hmac_alloc()
128 QCryptoHmac *hmac = NULL; in test_hmac_prealloc() local
144 hmac = qcrypto_hmac_new(data->alg, (const uint8_t *)KEY, in test_hmac_prealloc()
146 g_assert(hmac != NULL); in test_hmac_prealloc()
148 ret = qcrypto_hmac_bytes(hmac, (const char *)INPUT_TEXT, in test_hmac_prealloc()
159 qcrypto_hmac_free(hmac); in test_hmac_prealloc()
171 QCryptoHmac *hmac = NULL; in test_hmac_iov() local
189 hmac = qcrypto_hmac_new(data->alg, (const uint8_t *)KEY, in test_hmac_iov()
191 g_assert(hmac != NULL); in test_hmac_iov()
193 ret = qcrypto_hmac_bytesv(hmac, iov, 3, &result, in test_hmac_iov()
202 qcrypto_hmac_free(hmac); in test_hmac_iov()
214 QCryptoHmac *hmac = NULL; in test_hmac_digest() local
225 hmac = qcrypto_hmac_new(data->alg, (const uint8_t *)KEY, in test_hmac_digest()
227 g_assert(hmac != NULL); in test_hmac_digest()
229 ret = qcrypto_hmac_digest(hmac, (const char *)INPUT_TEXT, in test_hmac_digest()
236 qcrypto_hmac_free(hmac); in test_hmac_digest()