Home
last modified time | relevance | path

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

/qemu/backends/
H A Dcryptodev-builtin.c138 int algo; in cryptodev_builtin_get_aes_algo() local
141 algo = QCRYPTO_CIPHER_ALGO_AES_128; in cryptodev_builtin_get_aes_algo()
143 algo = QCRYPTO_CIPHER_ALGO_AES_192; in cryptodev_builtin_get_aes_algo()
146 algo = QCRYPTO_CIPHER_ALGO_AES_128; in cryptodev_builtin_get_aes_algo()
148 algo = QCRYPTO_CIPHER_ALGO_AES_256; in cryptodev_builtin_get_aes_algo()
152 algo = QCRYPTO_CIPHER_ALGO_AES_256; in cryptodev_builtin_get_aes_algo()
160 return algo; in cryptodev_builtin_get_aes_algo()
221 int algo; in cryptodev_builtin_create_cipher_session() local
242 algo = cryptodev_builtin_get_aes_algo(sess_info->key_len, in cryptodev_builtin_create_cipher_session()
244 if (algo < 0) { in cryptodev_builtin_create_cipher_session()
[all …]
H A Dcryptodev-lkcf.c522 switch (sess_info->algo) { in cryptodev_lkcf_create_asym_session()
534 error_report("Unsupported asym alg %u", sess_info->algo); in cryptodev_lkcf_create_asym_session()
/qemu/include/standard-headers/linux/
H A Dvirtio_crypto.h66 uint32_t algo; member
88 uint32_t algo; member
125 uint32_t algo; member
153 uint32_t algo; member
171 uint32_t algo; member
222 uint32_t algo; member
339 uint32_t algo; member
/qemu/hw/misc/
H A Daspeed_hace.c79 QCryptoHashAlgo algo; member
137 return hash_algo_map[i].algo; in hash_algo_lookup()
354 static void hash_execute_non_acc_mode(AspeedHACEState *s, int algo, in hash_execute_non_acc_mode() argument
361 if (qcrypto_hash_bytesv(algo, iov, iov_idx, &digest_buf, in hash_execute_non_acc_mode()
373 static void hash_execute_acc_mode(AspeedHACEState *s, int algo, in hash_execute_acc_mode() argument
384 s->hash_ctx = qcrypto_hash_new(algo, &local_err); in hash_execute_acc_mode()
419 static void do_hash_operation(AspeedHACEState *s, int algo, bool sg_mode, in do_hash_operation() argument
446 hash_execute_acc_mode(s, algo, iov, iov_idx, acc_final_request); in do_hash_operation()
448 hash_execute_non_acc_mode(s, algo, iov, iov_idx); in do_hash_operation()
505 int algo; in aspeed_hace_write() local
[all …]
/qemu/hw/virtio/
H A Dvirtio-crypto.c81 info->cipher_alg = ldl_le_p(&cipher_para->algo); in virtio_crypto_cipher_session_helper()
153 ldl_le_p(&sess_req->u.chain.para.u.mac_param.algo); in virtio_crypto_create_sym_session()
177 &sess_req->u.chain.para.u.hash_param.algo); in virtio_crypto_create_sym_session()
206 uint32_t algo, keytype, keylen; in virtio_crypto_create_asym_session() local
209 algo = ldl_le_p(&sess_req->para.algo); in virtio_crypto_create_asym_session()
229 asym_info->algo = algo; in virtio_crypto_create_asym_session()
232 switch (asym_info->algo) { in virtio_crypto_create_asym_session()
/qemu/include/system/
H A Dcryptodev.h97 uint32_t algo; member