/openbmc/qemu/crypto/ |
H A D | akcipher.c | 38 QCryptoAkCipher *akcipher = NULL; in qcrypto_akcipher_new() local 40 return akcipher; in qcrypto_akcipher_new() 49 int qcrypto_akcipher_encrypt(QCryptoAkCipher *akcipher, in qcrypto_akcipher_encrypt() argument 53 const QCryptoAkCipherDriver *drv = akcipher->driver; in qcrypto_akcipher_encrypt() 55 return drv->encrypt(akcipher, in, in_len, out, out_len, errp); in qcrypto_akcipher_encrypt() 58 int qcrypto_akcipher_decrypt(QCryptoAkCipher *akcipher, in qcrypto_akcipher_decrypt() argument 62 const QCryptoAkCipherDriver *drv = akcipher->driver; in qcrypto_akcipher_decrypt() 64 return drv->decrypt(akcipher, in, in_len, out, out_len, errp); in qcrypto_akcipher_decrypt() 67 int qcrypto_akcipher_sign(QCryptoAkCipher *akcipher, in qcrypto_akcipher_sign() argument 71 const QCryptoAkCipherDriver *drv = akcipher->driver; in qcrypto_akcipher_sign() [all …]
|
H A D | akcipherpriv.h | 40 int (*encrypt)(QCryptoAkCipher *akcipher, 43 int (*decrypt)(QCryptoAkCipher *akcipher, 46 int (*sign)(QCryptoAkCipher *akcipher, 49 int (*verify)(QCryptoAkCipher *akcipher, 52 void (*free)(QCryptoAkCipher *akcipher);
|
H A D | akcipher-gcrypt.c.inc | 2 * QEMU Crypto akcipher algorithms 26 #include "crypto/akcipher.h" 33 QCryptoAkCipher akcipher; 39 static void qcrypto_gcrypt_rsa_free(QCryptoAkCipher *akcipher) 41 QCryptoGcryptRSA *rsa = (QCryptoGcryptRSA *)akcipher; 74 static void qcrypto_gcrypt_set_rsa_size(QCryptoAkCipher *akcipher, gcry_mpi_t n) 77 akcipher->max_plaintext_len = key_size; 78 akcipher->max_ciphertext_len = key_size; 79 akcipher->max_dgst_len = key_size; 80 akcipher->max_signature_len = key_size; [all …]
|
H A D | akcipher-nettle.c.inc | 2 * QEMU Crypto akcipher algorithms 26 #include "crypto/akcipher.h" 33 QCryptoAkCipher akcipher; 40 static void qcrypto_nettle_rsa_free(QCryptoAkCipher *akcipher) 42 QCryptoNettleRSA *rsa = (QCryptoNettleRSA *)akcipher; 75 static void qcrypto_nettle_rsa_set_akcipher_size(QCryptoAkCipher *akcipher, 78 akcipher->max_plaintext_len = key_size; 79 akcipher->max_ciphertext_len = key_size; 80 akcipher->max_signature_len = key_size; 81 akcipher->max_dgst_len = key_size; [all …]
|
H A D | meson.build | 4 'akcipher.c',
|
H A D | rsakey-nettle.c.inc | 2 * QEMU Crypto akcipher algorithms
|
H A D | rsakey-builtin.c.inc | 2 * QEMU Crypto akcipher algorithms
|
/openbmc/qemu/include/crypto/ |
H A D | akcipher.h | 75 int qcrypto_akcipher_encrypt(QCryptoAkCipher *akcipher, 95 int qcrypto_akcipher_decrypt(QCryptoAkCipher *akcipher, 115 int qcrypto_akcipher_sign(QCryptoAkCipher *akcipher, 135 int qcrypto_akcipher_verify(QCryptoAkCipher *akcipher, 139 int qcrypto_akcipher_max_plaintext_len(QCryptoAkCipher *akcipher); 141 int qcrypto_akcipher_max_ciphertext_len(QCryptoAkCipher *akcipher); 143 int qcrypto_akcipher_max_signature_len(QCryptoAkCipher *akcipher); 145 int qcrypto_akcipher_max_dgst_len(QCryptoAkCipher *akcipher); 154 void qcrypto_akcipher_free(QCryptoAkCipher *akcipher);
|
/openbmc/linux/crypto/ |
H A D | akcipher.c | 46 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_exit_tfm() local 47 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_exit_tfm() 49 alg->exit(akcipher); in crypto_akcipher_exit_tfm() 54 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_init_tfm() local 55 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_init_tfm() 58 akcipher->base.exit = crypto_akcipher_exit_tfm; in crypto_akcipher_init_tfm() 61 return alg->init(akcipher); in crypto_akcipher_init_tfm() 68 struct akcipher_instance *akcipher = akcipher_instance(inst); in crypto_akcipher_free_instance() local 70 akcipher->free(akcipher); in crypto_akcipher_free_instance() 76 struct akcipher_alg *akcipher = __crypto_akcipher_alg(alg); in crypto_akcipher_report_stat() local [all …]
|
H A D | testmgr.c | 153 struct akcipher_test_suite akcipher; member 4289 if (desc->suite.akcipher.vecs) in alg_test_akcipher() 4290 err = test_akcipher(tfm, desc->alg, desc->suite.akcipher.vecs, in alg_test_akcipher() 4291 desc->suite.akcipher.count); in alg_test_akcipher() 5114 .akcipher = __VECS(ecdsa_nist_p192_tv_template) 5121 .akcipher = __VECS(ecdsa_nist_p256_tv_template) 5128 .akcipher = __VECS(ecdsa_nist_p384_tv_template) 5134 .akcipher = __VECS(ecrdsa_tv_template) 5461 .akcipher = __VECS(pkcs1pad_rsa_tv_template) 5558 .akcipher = __VECS(rsa_tv_template) [all …]
|
H A D | Makefile | 27 obj-$(CONFIG_CRYPTO_AKCIPHER2) += akcipher.o
|
/openbmc/linux/include/crypto/internal/ |
H A D | akcipher.h | 46 static inline void akcipher_set_reqsize(struct crypto_akcipher *akcipher, in akcipher_set_reqsize() argument 49 akcipher->reqsize = reqsize; in akcipher_set_reqsize() 52 static inline void akcipher_set_reqsize_dma(struct crypto_akcipher *akcipher, in akcipher_set_reqsize_dma() argument 56 akcipher->reqsize = reqsize; in akcipher_set_reqsize_dma() 93 struct crypto_akcipher *akcipher) in akcipher_alg_instance() argument 95 return akcipher_instance(crypto_tfm_alg_instance(&akcipher->base)); in akcipher_alg_instance()
|
/openbmc/linux/Documentation/crypto/ |
H A D | api-akcipher.rst | 4 .. kernel-doc:: include/crypto/akcipher.h 10 .. kernel-doc:: include/crypto/akcipher.h 13 .. kernel-doc:: include/crypto/akcipher.h 19 .. kernel-doc:: include/crypto/akcipher.h
|
H A D | api.rst | 15 api-akcipher
|
/openbmc/qemu/backends/ |
H A D | cryptodev-builtin.c | 47 QCryptoAkCipher *akcipher; member 314 QCryptoAkCipher *akcipher; in cryptodev_builtin_create_akcipher_session() local 356 akcipher = qcrypto_akcipher_new(&opts, type, sess_info->key, in cryptodev_builtin_create_akcipher_session() 358 if (!akcipher) { in cryptodev_builtin_create_akcipher_session() 363 sess->akcipher = akcipher; in cryptodev_builtin_create_akcipher_session() 438 } else if (session->akcipher) { in cryptodev_builtin_close_session() 439 qcrypto_akcipher_free(session->akcipher); in cryptodev_builtin_close_session() 495 ret = qcrypto_akcipher_encrypt(sess->akcipher, in cryptodev_builtin_asym_operation() 501 ret = qcrypto_akcipher_decrypt(sess->akcipher, in cryptodev_builtin_asym_operation() 507 ret = qcrypto_akcipher_sign(sess->akcipher, in cryptodev_builtin_asym_operation() [all …]
|
H A D | cryptodev-lkcf.c | 315 g_autoptr(QCryptoAkCipher) akcipher = NULL; in cryptodev_lkcf_execute_task() 344 akcipher = qcrypto_akcipher_new(&session->akcipher_opts, in cryptodev_lkcf_execute_task() 348 if (!akcipher) { in cryptodev_lkcf_execute_task() 362 ret = qcrypto_akcipher_encrypt(akcipher, in cryptodev_lkcf_execute_task() 374 ret = qcrypto_akcipher_decrypt(akcipher, in cryptodev_lkcf_execute_task() 386 ret = qcrypto_akcipher_sign(akcipher, in cryptodev_lkcf_execute_task() 398 ret = qcrypto_akcipher_verify(akcipher, in cryptodev_lkcf_execute_task()
|
/openbmc/linux/drivers/crypto/aspeed/ |
H A D | aspeed-acry.c | 131 struct akcipher_engine_alg akcipher; member 577 acry_alg = container_of(alg, struct aspeed_acry_alg, akcipher.base); in aspeed_acry_rsa_init_tfm() 601 .akcipher.base = { 623 .akcipher.op = { 635 rc = crypto_engine_register_akcipher(&aspeed_acry_akcipher_algs[i].akcipher); in aspeed_acry_register() 638 aspeed_acry_akcipher_algs[i].akcipher.base.base.cra_name); in aspeed_acry_register() 648 crypto_engine_unregister_akcipher(&aspeed_acry_akcipher_algs[i].akcipher); in aspeed_acry_unregister()
|
/openbmc/qemu/qapi/ |
H A D | cryptodev.json | 38 # @akcipher: Asymmetric Key Cipher service 43 'data': ['cipher', 'hash', 'mac', 'aead', 'akcipher']}
|
/openbmc/qemu/tests/bench/ |
H A D | meson.build | 28 'benchmark-crypto-akcipher': [crypto],
|
/openbmc/linux/drivers/crypto/caam/ |
H A D | caampkc.c | 45 struct akcipher_engine_alg akcipher; member 1149 .akcipher.base = { 1166 .akcipher.op = { 1206 err = crypto_engine_register_akcipher(&caam_rsa.akcipher); in caam_pkc_init() 1211 caam_rsa.akcipher.base.base.cra_driver_name); in caam_pkc_init() 1227 crypto_engine_unregister_akcipher(&caam_rsa.akcipher); in caam_pkc_exit()
|
/openbmc/qemu/tests/unit/ |
H A D | meson.build | 81 'test-crypto-akcipher': [crypto],
|
/openbmc/linux/ |
H A D | opengrok0.0.log | [all...] |
H A D | opengrok1.0.log | [all...] |
H A D | opengrok2.0.log | [all...] |