Home
last modified time | relevance | path

Searched refs:akcipher (Results 1 – 21 of 21) sorted by relevance

/openbmc/qemu/crypto/
H A Dakcipher.c38 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
67 int qcrypto_akcipher_sign(QCryptoAkCipher *akcipher, in qcrypto_akcipher_sign() argument
76 int qcrypto_akcipher_verify(QCryptoAkCipher *akcipher, in qcrypto_akcipher_verify() argument
87 return akcipher->max_plaintext_len; in qcrypto_akcipher_max_plaintext_len()
92 return akcipher->max_ciphertext_len; in qcrypto_akcipher_max_ciphertext_len()
97 return akcipher->max_signature_len; in qcrypto_akcipher_max_signature_len()
102 return akcipher->max_dgst_len; in qcrypto_akcipher_max_dgst_len()
105 void qcrypto_akcipher_free(QCryptoAkCipher *akcipher) in qcrypto_akcipher_free() argument
[all …]
H A Dakcipherpriv.h40 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 Dakcipher-gcrypt.c.inc2 * QEMU Crypto akcipher algorithms
26 #include "crypto/akcipher.h"
33 QCryptoAkCipher akcipher;
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;
407 if (in_len > akcipher->max_dgst_len) {
409 akcipher->max_dgst_len);
479 if (in2_len > akcipher->max_dgst_len) {
[all …]
H A Dakcipher-nettle.c.inc2 * QEMU Crypto akcipher algorithms
26 #include "crypto/akcipher.h"
33 QCryptoAkCipher akcipher;
42 QCryptoNettleRSA *rsa = (QCryptoNettleRSA *)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;
169 QCryptoNettleRSA *rsa = (QCryptoNettleRSA *)akcipher;
215 QCryptoNettleRSA *rsa = (QCryptoNettleRSA *)akcipher;
[all …]
H A Dmeson.build4 'akcipher.c',
H A Drsakey-nettle.c.inc2 * QEMU Crypto akcipher algorithms
H A Drsakey-builtin.c.inc2 * QEMU Crypto akcipher algorithms
/openbmc/qemu/include/crypto/
H A Dakcipher.h75 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 Dakcipher.c47 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_exit_tfm()
49 alg->exit(akcipher); in crypto_akcipher_exit_tfm()
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()
70 akcipher->free(akcipher); in crypto_akcipher_free_instance()
80 istat = akcipher_get_stat(akcipher); in crypto_akcipher_report_stat()
293 struct crypto_akcipher *akcipher; in crypto_init_akcipher_ops_sig() local
299 if (IS_ERR(akcipher)) { in crypto_init_akcipher_ops_sig()
301 return PTR_ERR(akcipher); in crypto_init_akcipher_ops_sig()
[all …]
H A Dtestmgr.c153 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 DMakefile27 obj-$(CONFIG_CRYPTO_AKCIPHER2) += akcipher.o
/openbmc/linux/include/crypto/internal/
H A Dakcipher.h46 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 Dapi-akcipher.rst4 .. 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 Dapi.rst15 api-akcipher
/openbmc/qemu/backends/
H A Dcryptodev-builtin.c47 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 Dcryptodev-lkcf.c315 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 Daspeed-acry.c131 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/tests/bench/
H A Dmeson.build28 'benchmark-crypto-akcipher': [crypto],
/openbmc/linux/drivers/crypto/caam/
H A Dcaampkc.c45 struct akcipher_engine_alg akcipher; member
1146 .akcipher.base = {
1163 .akcipher.op = {
1203 err = crypto_engine_register_akcipher(&caam_rsa.akcipher); in caam_pkc_init()
1208 caam_rsa.akcipher.base.base.cra_driver_name); in caam_pkc_init()
1224 crypto_engine_unregister_akcipher(&caam_rsa.akcipher); in caam_pkc_exit()
/openbmc/qemu/qapi/
H A Dcryptodev.json35 'data': ['cipher', 'hash', 'mac', 'aead', 'akcipher']}
/openbmc/qemu/tests/unit/
H A Dmeson.build80 'test-crypto-akcipher': [crypto],