Searched refs:akcipher (Results 1 – 11 of 11) sorted by relevance
| /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 | 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/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 …]
|
| /openbmc/qemu/qapi/ |
| H A D | cryptodev.json | 40 # @akcipher: Asymmetric Key Cipher service 45 'data': ['cipher', 'hash', 'mac', 'aead', 'akcipher']}
|
| /openbmc/qemu/tests/bench/ |
| H A D | meson.build | 28 'benchmark-crypto-akcipher': [crypto],
|
| /openbmc/qemu/tests/unit/ |
| H A D | meson.build | 81 'test-crypto-akcipher': [crypto],
|