| /optee_os/lib/libmbedtls/core/ |
| H A D | rsa.c | 101 struct rsa_keypair *key) in rsa_complete_from_key_pair() 152 struct rsa_keypair *key) in rsa_init_and_complete_from_key_pair() 159 static void mbd_rsa_free(mbedtls_rsa_context *rsa, struct rsa_keypair *key) in mbd_rsa_free() 180 static void mbd_pk_free(mbedtls_pk_context *ctx, struct rsa_keypair *key) in mbd_pk_free() 192 TEE_Result crypto_acipher_alloc_rsa_keypair(struct rsa_keypair *s, 196 TEE_Result sw_crypto_acipher_alloc_rsa_keypair(struct rsa_keypair *s, in sw_crypto_acipher_alloc_rsa_keypair() 262 void crypto_acipher_free_rsa_keypair(struct rsa_keypair *s) 265 void sw_crypto_acipher_free_rsa_keypair(struct rsa_keypair *s) in sw_crypto_acipher_free_rsa_keypair() 279 TEE_Result crypto_acipher_gen_rsa_key(struct rsa_keypair *key, 283 TEE_Result sw_crypto_acipher_gen_rsa_key(struct rsa_keypair *key, in sw_crypto_acipher_gen_rsa_key() [all …]
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | rsa.c | 96 TEE_Result crypto_acipher_alloc_rsa_keypair(struct rsa_keypair *s, 100 TEE_Result sw_crypto_acipher_alloc_rsa_keypair(struct rsa_keypair *s, in sw_crypto_acipher_alloc_rsa_keypair() 159 void crypto_acipher_free_rsa_keypair(struct rsa_keypair *s) 162 void sw_crypto_acipher_free_rsa_keypair(struct rsa_keypair *s) in sw_crypto_acipher_free_rsa_keypair() 176 TEE_Result crypto_acipher_gen_rsa_key(struct rsa_keypair *key, 180 TEE_Result sw_crypto_acipher_gen_rsa_key(struct rsa_keypair *key, in sw_crypto_acipher_gen_rsa_key() 295 TEE_Result crypto_acipher_rsanopad_decrypt(struct rsa_keypair *key, 301 TEE_Result sw_crypto_acipher_rsanopad_decrypt(struct rsa_keypair *key, in sw_crypto_acipher_rsanopad_decrypt() 326 struct rsa_keypair *key, 336 struct rsa_keypair *key, in sw_crypto_acipher_rsaes_decrypt() [all …]
|
| /optee_os/core/drivers/crypto/se050/adaptors/include/ |
| H A D | se050_utils.h | 37 struct rsa_keypair; 40 uint32_t se050_rsa_keypair_from_nvm(struct rsa_keypair *key);
|
| /optee_os/core/include/crypto/ |
| H A D | crypto.h | 109 struct rsa_keypair { struct 192 TEE_Result crypto_acipher_alloc_rsa_keypair(struct rsa_keypair *s, 197 void crypto_acipher_free_rsa_keypair(struct rsa_keypair *s); 224 TEE_Result crypto_acipher_gen_rsa_key(struct rsa_keypair *key, size_t key_size); 256 TEE_Result crypto_acipher_rsanopad_decrypt(struct rsa_keypair *key, 262 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo, struct rsa_keypair *key, 274 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key,
|
| H A D | crypto_impl.h | 511 TEE_Result sw_crypto_acipher_alloc_rsa_keypair(struct rsa_keypair *s, 519 void sw_crypto_acipher_free_rsa_keypair(struct rsa_keypair *s); 521 TEE_Result sw_crypto_acipher_gen_rsa_key(struct rsa_keypair *key, 524 TEE_Result sw_crypto_acipher_rsanopad_decrypt(struct rsa_keypair *key, 533 struct rsa_keypair *key, 550 TEE_Result sw_crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key,
|
| /optee_os/core/drivers/crypto/crypto_api/include/ |
| H A D | drvcrypt_acipher.h | 83 TEE_Result (*alloc_keypair)(struct rsa_keypair *key, size_t size_bits); 90 void (*free_keypair)(struct rsa_keypair *key); 92 TEE_Result (*gen_keypair)(struct rsa_keypair *key, size_t size_bits);
|
| /optee_os/core/drivers/crypto/crypto_api/acipher/ |
| H A D | rsa.c | 17 TEE_Result crypto_acipher_alloc_rsa_keypair(struct rsa_keypair *key, in crypto_acipher_alloc_rsa_keypair() 73 void crypto_acipher_free_rsa_keypair(struct rsa_keypair *key) in crypto_acipher_free_rsa_keypair() 86 TEE_Result crypto_acipher_gen_rsa_key(struct rsa_keypair *key, size_t size_bits) in crypto_acipher_gen_rsa_key() 107 TEE_Result crypto_acipher_rsanopad_decrypt(struct rsa_keypair *key, in crypto_acipher_rsanopad_decrypt() 200 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsaes_decrypt() 361 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsassa_sign()
|
| H A D | rsassa.c | 733 struct rsa_keypair *key = NULL; in rsassa_pss_sign()
|
| /optee_os/core/drivers/crypto/se050/core/ |
| H A D | rsa.c | 41 static bool rsa_keypair_has_crt(struct rsa_keypair *key) in rsa_keypair_has_crt() 53 static bool keypair_supported(struct rsa_keypair *key, sss_cipher_type_t ctype) in keypair_supported() 174 struct rsa_keypair *key) in se050_inject_keypair() 233 static TEE_Result decrypt_es(uint32_t algo, struct rsa_keypair *key, in decrypt_es() 323 static TEE_Result decrypt_nopad(struct rsa_keypair *key, const uint8_t *src, in decrypt_nopad() 447 static TEE_Result sign_ssa(uint32_t algo, struct rsa_keypair *key, in sign_ssa() 517 static TEE_Result do_alloc_keypair(struct rsa_keypair *s, in do_alloc_keypair() 574 static void do_free_keypair(struct rsa_keypair *s) in do_free_keypair() 600 static TEE_Result do_gen_keypair(struct rsa_keypair *key, size_t kb) in do_gen_keypair()
|
| /optee_os/core/drivers/crypto/versal/ |
| H A D | rsa.c | 123 struct rsa_keypair *p = rsa_data->key.key; in do_decrypt() 301 static TEE_Result do_gen_keypair(struct rsa_keypair *s, size_t size_bits) in do_gen_keypair() 306 static TEE_Result do_alloc_keypair(struct rsa_keypair *s, size_t size_bits) in do_alloc_keypair() 321 static void do_free_keypair(struct rsa_keypair *s) in do_free_keypair()
|
| /optee_os/core/drivers/crypto/caam/acipher/ |
| H A D | caam_rsa.c | 94 static void do_free_keypair(struct rsa_keypair *key) in do_free_keypair() 171 const struct rsa_keypair *inkey) in do_keypair_conv_f3() 237 const struct rsa_keypair *inkey) in do_keypair_conv_f2() 286 const struct rsa_keypair *inkey) in do_keypair_conv() 324 static TEE_Result do_allocate_keypair(struct rsa_keypair *key, in do_allocate_keypair() 434 static TEE_Result gen_keypair_get_f3(struct rsa_keypair *key, in gen_keypair_get_f3() 468 static TEE_Result gen_keypair_get_f2(struct rsa_keypair *key, in gen_keypair_get_f2() 494 do_black_key_encapsulation(struct caam_rsa_keypair *rsa_keypair) in do_black_key_encapsulation() argument 499 ret = caam_key_black_encapsulation(&rsa_keypair->p, key_type); in do_black_key_encapsulation() 505 ret = caam_key_black_encapsulation(&rsa_keypair->q, key_type); in do_black_key_encapsulation() [all …]
|
| /optee_os/core/crypto/ |
| H A D | crypto.c | 551 TEE_Result crypto_acipher_alloc_rsa_keypair(struct rsa_keypair *s __unused, in crypto_acipher_alloc_rsa_keypair() 568 void crypto_acipher_free_rsa_keypair(struct rsa_keypair *s __unused) in crypto_acipher_free_rsa_keypair() 572 TEE_Result crypto_acipher_gen_rsa_key(struct rsa_keypair *key __unused, in crypto_acipher_gen_rsa_key() 578 TEE_Result crypto_acipher_rsanopad_decrypt(struct rsa_keypair *key __unused, in crypto_acipher_rsanopad_decrypt() 597 struct rsa_keypair *key __unused, in crypto_acipher_rsaes_decrypt() 623 struct rsa_keypair *key __unused, in crypto_acipher_rsassa_sign()
|
| /optee_os/core/drivers/crypto/se050/adaptors/utils/ |
| H A D | utils.c | 130 uint32_t se050_rsa_keypair_from_nvm(struct rsa_keypair *key) in se050_rsa_keypair_from_nvm()
|
| /optee_os/core/drivers/crypto/hisilicon/ |
| H A D | hpre_rsa.c | 583 struct rsa_keypair *key = rsa_data->key.key; in hpre_rsa_crt_decrypt_bn2bin() 645 struct rsa_keypair *key = rsa_data->key.key; in hpre_rsa_ncrt_decrypt_bn2bin() 679 static bool hpre_rsa_is_crt_mod(struct rsa_keypair *key) in hpre_rsa_is_crt_mod() 694 struct rsa_keypair *key = rsa_data->key.key; in hpre_rsa_decrypt_init()
|
| /optee_os/core/tee/ |
| H A D | tee_svc_cryp.c | 138 RAW_DATA(struct rsa_keypair, n) 145 RAW_DATA(struct rsa_keypair, e) 152 RAW_DATA(struct rsa_keypair, d) 159 RAW_DATA(struct rsa_keypair, p) 166 RAW_DATA(struct rsa_keypair, q) 173 RAW_DATA(struct rsa_keypair, dp) 180 RAW_DATA(struct rsa_keypair, dq) 187 RAW_DATA(struct rsa_keypair, qp) 603 sizeof(struct rsa_keypair), 2129 struct rsa_keypair *key = o->attr; in tee_svc_obj_generate_key_rsa()
|
| /optee_os/core/pta/ |
| H A D | attestation.c | 29 static struct rsa_keypair *key;
|