Searched refs:rsa_data (Results 1 – 6 of 6) sorted by relevance
/optee_os-3.20.0/core/drivers/crypto/versal/ |
A D | rsa.c | 47 rsa_data->key.key, in do_encrypt() 56 rsa_data->key.key, in do_encrypt() 83 versal_mbox_alloc(rsa_data->message.length, rsa_data->message.data, in do_encrypt() 100 err, rsa_data->rsa_id, rsa_data->key.n_size); in do_encrypt() 109 rsa_data->cipher.length = rsa_data->key.n_size; in do_encrypt() 110 memcpy(rsa_data->cipher.data, cipher.buf, rsa_data->key.n_size); in do_encrypt() 139 rsa_data->key.key, in do_decrypt() 175 versal_mbox_alloc(rsa_data->cipher.length, rsa_data->cipher.data, in do_decrypt() 192 err, rsa_data->rsa_id, rsa_data->key.n_size); in do_decrypt() 197 rsa_data->message.length = rsa_data->key.n_size; in do_decrypt() [all …]
|
/optee_os-3.20.0/core/drivers/crypto/crypto_api/acipher/ |
A D | rsa.c | 125 rsa_data.key.key = key; in crypto_acipher_rsanopad_decrypt() 132 rsa_data.message.data = msg; in crypto_acipher_rsanopad_decrypt() 164 rsa_data.key.key = key; in crypto_acipher_rsanopad_encrypt() 237 rsa_data.key.key = key; in crypto_acipher_rsaes_decrypt() 245 rsa_data.label.data = in crypto_acipher_rsaes_decrypt() 248 rsa_data.algo = algo; in crypto_acipher_rsaes_decrypt() 282 rsa_data.key.key = key; in crypto_acipher_rsaes_encrypt() 318 if (2 * rsa_data.digest_size >= rsa_data.key.n_size - 2) in crypto_acipher_rsaes_encrypt() 322 rsa_data.key.n_size - 2 * rsa_data.digest_size - 2) in crypto_acipher_rsaes_encrypt() 331 rsa_data.cipher.length = rsa_data.key.n_size; in crypto_acipher_rsaes_encrypt() [all …]
|
A D | rsassa.c | 204 rsa_data.key.isprivate = true; in rsassa_pkcs1_v1_5_sign() 217 rsa_data.cipher.data = EM.data; in rsassa_pkcs1_v1_5_sign() 220 rsa_data.algo = ssa_data->algo; in rsassa_pkcs1_v1_5_sign() 222 ret = rsa->decrypt(&rsa_data); in rsassa_pkcs1_v1_5_sign() 263 rsa_data.key.isprivate = false; in rsassa_pkcs1_v1_5_verify() 272 rsa_data.cipher.data = EM.data; in rsassa_pkcs1_v1_5_verify() 275 ret = rsa->encrypt(&rsa_data); in rsassa_pkcs1_v1_5_verify() 768 rsa_data.key.isprivate = true; in rsassa_pss_sign() 781 ret = rsa->decrypt(&rsa_data); in rsassa_pss_sign() 838 rsa_data.key.isprivate = false; in rsassa_pss_verify() [all …]
|
/optee_os-3.20.0/core/drivers/crypto/caam/acipher/ |
A D | caam_rsa.c | 750 db_size = rsa_data->key.n_size - rsa_data->digest_size - 1; in do_oaep_decoding() 772 ret = tee_hash_createdigest(rsa_data->hash_algo, rsa_data->label.data, in do_oaep_decoding() 833 ret = rsa_data->mgf(&mgf_data); in do_oaep_decoding() 869 ret = rsa_data->mgf(&mgf_data); in do_oaep_decoding() 933 rsa_data->message.length); in do_oaep_decoding() 982 db_size = rsa_data->key.n_size - rsa_data->digest_size - 1; in do_oaep_encoding() 1000 ret = tee_hash_createdigest(rsa_data->hash_algo, rsa_data->label.data, in do_oaep_encoding() 1013 ps_size = rsa_data->key.n_size - rsa_data->message.length - in do_oaep_encoding() 1466 RSA_DUMPBUF("Output", rsa_data->message.data, rsa_data->message.length); in do_caam_decrypt() 1490 switch (rsa_data->rsa_id) { in do_encrypt() [all …]
|
/optee_os-3.20.0/core/drivers/crypto/se050/core/ |
A D | rsa.c | 704 switch (rsa_data->rsa_id) { in do_encrypt() 716 rsa_data->key.key, in do_encrypt() 717 rsa_data->message.data, in do_encrypt() 719 rsa_data->cipher.data, in do_encrypt() 727 rsa_data->key.key, in do_encrypt() 730 rsa_data->cipher.data, in do_encrypt() 782 switch (rsa_data->rsa_id) { in do_decrypt() 794 rsa_data->key.key, in do_decrypt() 795 rsa_data->cipher.data, in do_decrypt() 805 rsa_data->key.key, in do_decrypt() [all …]
|
/optee_os-3.20.0/core/drivers/crypto/crypto_api/include/ |
A D | drvcrypt_acipher.h | 93 TEE_Result (*encrypt)(struct drvcrypt_rsa_ed *rsa_data); 95 TEE_Result (*decrypt)(struct drvcrypt_rsa_ed *rsa_data);
|
Completed in 12 milliseconds