Home
last modified time | relevance | path

Searched full:rsa (Results 1 – 25 of 73) sorted by relevance

123

/linux/drivers/crypto/ccp/
H A Dccp-crypto-rsa.c3 * AMD Cryptographic Coprocessor (CCP) RSA crypto API support
15 #include <crypto/internal/rsa.h>
52 req->dst_len = rctx->cmd.u.rsa.key_size >> 3; in ccp_rsa_complete()
61 return ctx->u.rsa.n_len; in ccp_rsa_maxsize()
75 rctx->cmd.u.rsa.key_size = ctx->u.rsa.key_len; /* in bits */ in ccp_rsa_crypt()
77 rctx->cmd.u.rsa.exp = &ctx->u.rsa.e_sg; in ccp_rsa_crypt()
78 rctx->cmd.u.rsa.exp_len = ctx->u.rsa.e_len; in ccp_rsa_crypt()
80 rctx->cmd.u.rsa.exp = &ctx->u.rsa.d_sg; in ccp_rsa_crypt()
81 rctx->cmd.u.rsa.exp_len = ctx->u.rsa.d_len; in ccp_rsa_crypt()
83 rctx->cmd.u.rsa.mod = &ctx->u.rsa.n_sg; in ccp_rsa_crypt()
[all …]
H A Dccp-crypto.h26 #include <crypto/internal/rsa.h>
239 /***** RSA related defines *****/
267 struct ccp_rsa_ctx rsa; member
/linux/drivers/crypto/caam/
H A Dcaampkc.h17 * caam_priv_key_form - CAAM RSA private key representation
18 * CAAM RSA private key may have either of three forms.
22 * n the RSA modulus
23 * d the RSA private exponent
27 * p the first prime factor of the RSA modulus n
28 * q the second prime factor of the RSA modulus n
29 * d the RSA private exponent
33 * p the first prime factor of the RSA modulus n
34 * q the second prime factor of the RSA modulus n
49 * caam_rsa_key - CAAM RSA key structure. Keys are allocated in DMA zone.
[all …]
H A Dpdb.h481 /* RSA Protocol Data Block */
500 * RSA Encrypt Protocol Data Block
504 * @n_dma: dma address of RSA modulus
505 * @e_dma: dma address of RSA public exponent
520 * RSA Decrypt PDB - Private Key Form #1
524 * @n_dma: dma address of RSA modulus
525 * @d_dma: dma address of RSA private exponent
538 * RSA Decrypt PDB - Private Key Form #2
542 * @d_dma : dma address of RSA private exponent
543 * @p_dma : dma address of RSA prime factor p of RSA modulus n
[all …]
H A Dpkc_desc.c13 /* Descriptor for RSA Public operation */
26 /* Descriptor for RSA Private operation - Private Key Form #1 */
39 /* Descriptor for RSA Private operation - Private Key Form #2 */
56 /* Descriptor for RSA Private operation - Private Key Form #3 */
/linux/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c10 #include <crypto/internal/rsa.h>
118 struct hpre_rsa_ctx rsa; member
134 struct akcipher_request *rsa; member
461 areq = req->areq.rsa; in hpre_rsa_cb()
526 h_req->areq.rsa = akreq; in hpre_msg_request_set()
801 akcipher_request_set_tfm(req, ctx->rsa.soft_tfm); in hpre_rsa_enc()
807 if (unlikely(!ctx->rsa.pubkey)) in hpre_rsa_enc()
815 msg->key = cpu_to_le64(ctx->rsa.dma_pubkey); in hpre_rsa_enc()
849 akcipher_request_set_tfm(req, ctx->rsa.soft_tfm); in hpre_rsa_dec()
855 if (unlikely(!ctx->rsa.prikey)) in hpre_rsa_dec()
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_asym_algs.c4 #include <crypto/internal/rsa.h>
119 struct qat_rsa_input_params rsa; member
123 struct qat_rsa_output_params rsa; member
132 struct qat_rsa_ctx *rsa; member
136 struct akcipher_request *rsa; member
569 struct akcipher_request *areq = req->areq.rsa; in qat_rsa_cb()
570 struct device *dev = &GET_DEV(req->ctx.rsa->inst->accel_dev); in qat_rsa_cb()
576 dma_unmap_single(dev, req->in.rsa.enc.m, req->ctx.rsa->key_sz, in qat_rsa_cb()
581 areq->dst_len = req->ctx.rsa->key_sz; in qat_rsa_cb()
582 dma_unmap_single(dev, req->out.rsa.enc.c, req->ctx.rsa->key_sz, in qat_rsa_cb()
[all …]
/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.c183 struct rx_sa *rsa; in ixgbevf_ipsec_find_rx_state() local
186 hash_for_each_possible_rcu(ipsec->rx_sa_list, rsa, hlist, in ixgbevf_ipsec_find_rx_state()
188 if (spi == rsa->xs->id.spi && in ixgbevf_ipsec_find_rx_state()
189 ((ip4 && *daddr == rsa->xs->id.daddr.a4) || in ixgbevf_ipsec_find_rx_state()
190 (!ip4 && !memcmp(daddr, &rsa->xs->id.daddr.a6, in ixgbevf_ipsec_find_rx_state()
191 sizeof(rsa->xs->id.daddr.a6)))) && in ixgbevf_ipsec_find_rx_state()
192 proto == rsa->xs->id.proto) { in ixgbevf_ipsec_find_rx_state()
193 ret = rsa->xs; in ixgbevf_ipsec_find_rx_state()
295 struct rx_sa rsa; in ixgbevf_ipsec_add_sa() local
310 memset(&rsa, 0, sizeof(rsa)); in ixgbevf_ipsec_add_sa()
[all …]
/linux/Documentation/devicetree/bindings/crypto/
H A Daspeed,ast2600-acry.yaml7 title: ASPEED ACRY ECDSA/RSA Hardware Accelerator Engines
13 The ACRY ECDSA/RSA engines is designed to accelerate the throughput
14 of ECDSA/RSA signature and verification. Basically, ACRY can be
15 divided into two independent engines - ECC Engine and RSA Engine.
/linux/drivers/crypto/aspeed/
H A DKconfig49 bool "Enable Aspeed ACRY RSA Engine"
54 Select here to enable Aspeed ECC/RSA Engine (ACRY)
55 RSA driver.
56 Supports 256 bits to 4096 bits RSA encryption/decryption
H A Daspeed-acry.c7 #include <crypto/internal/rsa.h>
40 #define ASPEED_ACRY_RSA_KEY_LEN 0x058 /* ACRY RSA Exp/Mod Key Length (Bits) */
44 /* rsa trigger */
48 /* rsa dma cmd */
53 /* rsa key len */
62 #define ASPEED_ACRY_RSA_MAX_KEY_LEN 512 /* ACRY RSA maximum key length (Bytes) */
339 dev_err(acry_dev->dev, "RSA engine error!\n"); in aspeed_acry_rsa_transfer()
406 /* Trigger RSA engines */ in aspeed_acry_rsa_trigger()
498 dev_err(acry_dev->dev, "rsa parse key failed, ret:0x%x\n", in aspeed_acry_rsa_setkey()
526 dev_err(acry_dev->dev, "rsa set key failed\n"); in aspeed_acry_rsa_setkey()
[all …]
/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_uc_fw_abi.h20 * | CSS header | uCode | RSA key | modulus | exponent |
29 * uCode and RSA signature are must-have components that will be used by driver.
36 * 1. Header, uCode and RSA are must-have components.
52 * header_size includes all non-uCode bits, including css_header, rsa
/linux/tools/testing/selftests/sgx/
H A Dsign_key.pem1 -----BEGIN RSA PRIVATE KEY-----
39 -----END RSA PRIVATE KEY-----
H A Dsigstruct.c153 static inline const BIGNUM *get_modulus(RSA *key) in get_modulus()
161 static RSA *gen_sign_key(void) in gen_sign_key()
165 RSA *key; in gen_sign_key()
323 RSA *key = NULL; in encl_measure()
/linux/include/linux/
H A Dccp.h357 /***** RSA engine *****/
359 * struct ccp_rsa_engine - CCP RSA operation
360 * @key_size: length in bits of RSA key
361 * @exp: RSA exponent
363 * @mod: RSA modulus
598 * @CCP_ENGINE_RSA: RSA operation
656 struct ccp_rsa_engine rsa; member
H A Dbcm963xx_tag.h17 #define RSASIG_LEN 20 /* Length of RSA Signature in tag */
79 /* 142-161: RSA Signature (not used; some vendors may use this) */
/linux/crypto/
H A Drsa_helper.c3 * RSA key extract helper
12 #include <crypto/internal/rsa.h>
35 pr_err("RSA: key size not allowed in FIPS mode\n"); in rsa_get_n()
/linux/drivers/crypto/hisilicon/
H A DKconfig74 Support for HiSilicon HPRE(High Performance RSA Engine)
75 accelerator, which can accelerate RSA and DH algorithms.
/linux/Documentation/admin-guide/
H A Dmodule-signing.rst31 type. The built-in facility currently only supports the RSA & NIST P-384 ECDSA
149 One can select between RSA (``MODULE_SIG_KEY_TYPE_RSA``) and ECDSA
150 (``MODULE_SIG_KEY_TYPE_ECDSA``) to generate either RSA 4k or NIST
163 The generated RSA key size can also be set with::
193 …asymmetri Fedora kernel signing key: d69a84e6bce3d216b979e9505b3e3ef9a7118079: X509.RSA a7118079 []
/linux/lib/
H A Ddigsig.c11 * implements signature (RSA) verification
61 * RSA Signature verification with public key
190 * Currently only RSA is supported.
/linux/crypto/asymmetric_keys/
H A Dselftest_rsa.c2 /* Self-tests for PKCS#7 RSA signature verification.
15 /* 4096-bit RSA certificate */
116 /* RSA signature using PKCS#1 v1.5 padding with SHA-256 */
164 fips_signature_selftest("RSA", in fips_signature_selftest_rsa()
/linux/drivers/misc/ibmasm/
H A Dremote.c219 mouse_dev->name = "ibmasm RSA I remote mouse"; in ibmasm_init_remote_input_dev()
229 keybd_dev->name = "ibmasm RSA I remote keyboard"; in ibmasm_init_remote_input_dev()
248 printk(KERN_INFO "ibmasm remote responding to events on RSA card %d\n", sp->number); in ibmasm_init_remote_input_dev()
/linux/certs/
H A DKconfig26 bool "RSA"
28 Use an RSA key for module signing.
/linux/drivers/crypto/starfive/
H A DMakefile4 jh7110-crypto-objs := jh7110-cryp.o jh7110-hash.o jh7110-rsa.o jh7110-aes.o
/linux/drivers/infiniband/hw/hfi1/
H A Dfirmware.c155 /* RSA engine timeout, in ms */
772 * Download the signature and start the RSA mechanism. Wait for
786 /* initialize RSA */ in run_rsa()
802 /* start RSA */ in run_rsa()
808 * The RSA engine is hooked up to two MISC errors. The driver in run_rsa()
816 * re-initializing the RSA engine, then clearing the status bit. in run_rsa()
817 * Do not re-init the RSA angine immediately after a successful in run_rsa()
863 * Arrive here on success or failure. Clear all RSA engine in run_rsa()
864 * errors. All current errors will stick - the RSA logic is keeping in run_rsa()
865 * error high. All previous errors will clear - the RSA logic in run_rsa()
[all …]

123