Home
last modified time | relevance | path

Searched refs:afalg (Results 1 – 6 of 6) sorted by relevance

/openbmc/qemu/crypto/
H A Dcipher-afalg.c68 QCryptoAFAlg *afalg; in qcrypto_afalg_cipher_ctx_new() local
78 if (!afalg) { in qcrypto_afalg_cipher_ctx_new()
100 afalg->msg->msg_control = g_new0(uint8_t, afalg->msg->msg_controllen); in qcrypto_afalg_cipher_ctx_new()
103 afalg->cmsg = CMSG_FIRSTHDR(afalg->msg); in qcrypto_afalg_cipher_ctx_new()
107 afalg->cmsg = CMSG_NXTHDR(afalg->msg, afalg->cmsg); in qcrypto_afalg_cipher_ctx_new()
111 afalg->cmsg = CMSG_FIRSTHDR(afalg->msg); in qcrypto_afalg_cipher_ctx_new()
114 return &afalg->base; in qcrypto_afalg_cipher_ctx_new()
134 afalg->cmsg = CMSG_NXTHDR(afalg->msg, afalg->cmsg); in qcrypto_afalg_cipher_setiv()
158 afalg->cmsg = CMSG_FIRSTHDR(afalg->msg); in qcrypto_afalg_cipher_op()
162 afalg->msg->msg_iov = &iov; in qcrypto_afalg_cipher_op()
[all …]
H A Dafalg.c73 QCryptoAFAlg *afalg; in qcrypto_afalg_comm_alloc() local
77 afalg->opfd = -1; in qcrypto_afalg_comm_alloc()
83 afalg->opfd = qemu_accept(afalg->tfmfd, NULL, 0); in qcrypto_afalg_comm_alloc()
84 if (afalg->opfd == -1) { in qcrypto_afalg_comm_alloc()
89 return afalg; in qcrypto_afalg_comm_alloc()
98 if (!afalg) { in qcrypto_afalg_comm_free()
102 if (afalg->msg) { in qcrypto_afalg_comm_free()
104 g_free(afalg->msg); in qcrypto_afalg_comm_free()
108 close(afalg->tfmfd); in qcrypto_afalg_comm_free()
112 close(afalg->opfd); in qcrypto_afalg_comm_free()
[all …]
H A Dhash-afalg.c72 QCryptoAFAlg *afalg; in qcrypto_afalg_hash_hmac_ctx_new() local
81 if (!afalg) { in qcrypto_afalg_hash_hmac_ctx_new()
93 qcrypto_afalg_comm_free(afalg); in qcrypto_afalg_hash_hmac_ctx_new()
98 return afalg; in qcrypto_afalg_hash_hmac_ctx_new()
124 QCryptoAFAlg *afalg; in qcrypto_afalg_hash_hmac_bytesv() local
141 afalg = hmac; in qcrypto_afalg_hash_hmac_bytesv()
144 if (!afalg) { in qcrypto_afalg_hash_hmac_bytesv()
170 qcrypto_afalg_comm_free(afalg); in qcrypto_afalg_hash_hmac_bytesv()
200 QCryptoAFAlg *afalg; in qcrypto_afalg_hmac_ctx_free() local
202 afalg = hmac->opaque; in qcrypto_afalg_hmac_ctx_free()
[all …]
H A Dmeson.build47 crypto_ss.add(if_true: files('afalg.c', 'cipher-afalg.c', 'hash-afalg.c'))
H A Dafalgpriv.h65 void qcrypto_afalg_comm_free(QCryptoAFAlg *afalg);
/openbmc/qemu/scripts/
H A Dmeson-buildoptions.sh282 --enable-crypto-afalg) printf "%s" -Dcrypto_afalg=enabled ;;
283 --disable-crypto-afalg) printf "%s" -Dcrypto_afalg=disabled ;;