| /optee_os/core/pta/veraison_attestation/ |
| H A D | sign.c | 128 res = crypto_bignum_bin2bn(private_key, KEY_SIZE, key->d); in generate_key() 147 res = crypto_bignum_bin2bn(public_key_x, KEY_SIZE, pubkey->x); in generate_key() 151 res = crypto_bignum_bin2bn(public_key_y, KEY_SIZE, pubkey->y); in generate_key()
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | dh.c | 84 crypto_bignum_bin2bn(buf, xbytes, key->y); in crypto_acipher_gen_dh_key() 131 crypto_bignum_bin2bn(buf, olen, secret); in crypto_acipher_dh_shared_secret()
|
| H A D | bignum.c | 53 TEE_Result crypto_bignum_bin2bn(const uint8_t *from, size_t fromsize, in crypto_bignum_bin2bn() function
|
| /optee_os/core/drivers/crypto/se050/core/ |
| H A D | rsa.c | 650 crypto_bignum_bin2bn(n, n_len, key->n); in do_gen_keypair() 651 crypto_bignum_bin2bn(e, e_len, key->e); in do_gen_keypair() 653 crypto_bignum_bin2bn((uint8_t *)&kid, sizeof(kid), (key->d)); in do_gen_keypair() 654 crypto_bignum_bin2bn((uint8_t *)&oid, sizeof(oid), key->p); in do_gen_keypair() 655 crypto_bignum_bin2bn((uint8_t *)&oid, sizeof(oid), key->q); in do_gen_keypair() 656 crypto_bignum_bin2bn((uint8_t *)&oid, sizeof(oid), key->qp); in do_gen_keypair() 657 crypto_bignum_bin2bn((uint8_t *)&oid, sizeof(oid), key->dp); in do_gen_keypair() 658 crypto_bignum_bin2bn((uint8_t *)&oid, sizeof(oid), key->dq); in do_gen_keypair()
|
| H A D | ecc.c | 681 crypto_bignum_bin2bn(kf + 1, bytes / 2, key->x); in gen_keypair() 682 crypto_bignum_bin2bn(kf + 1 + bytes / 2, bytes / 2, key->y); in gen_keypair() 685 crypto_bignum_bin2bn((uint8_t *)&kid, sizeof(kid), key->d); in gen_keypair()
|
| /optee_os/core/crypto/ |
| H A D | signed_hdr.c | 104 res = crypto_bignum_bin2bn((uint8_t *)&e, sizeof(e), key.e); in shdr_verify_signature() 107 res = crypto_bignum_bin2bn(ta_pub_key_modulus, ta_pub_key_modulus_size, in shdr_verify_signature() 165 res = crypto_bignum_bin2bn(base + pub_exp->offs, pub_exp->size, key->e); in load_rsa_key() 168 res = crypto_bignum_bin2bn(base + modulus->offs, modulus->size, key->n); in load_rsa_key()
|
| H A D | crypto.c | 486 TEE_Result crypto_bignum_bin2bn(const uint8_t *from __unused, in crypto_bignum_bin2bn() function
|
| /optee_os/core/drivers/crypto/crypto_api/acipher/ |
| H A D | dh.c | 86 ret = crypto_bignum_bin2bn(secret_buf, in crypto_acipher_dh_shared_secret()
|
| /optee_os/core/drivers/crypto/stm32/ |
| H A D | ecc.c | 127 res = crypto_bignum_bin2bn(d.val, d.size, key->d); in stm32_gen_keypair() 131 res = crypto_bignum_bin2bn(pk.x.val, pk.x.size, key->x); in stm32_gen_keypair() 135 res = crypto_bignum_bin2bn(pk.y.val, pk.y.size, key->y); in stm32_gen_keypair()
|
| /optee_os/core/pta/stm32mp/ |
| H A D | remoteproc_pta.c | 246 res = crypto_bignum_bin2bn((uint8_t *)&e, sizeof(e), key.e); in rproc_pta_verify_rsa_signature() 250 res = crypto_bignum_bin2bn(rproc_pub_key_modulus, in rproc_pta_verify_rsa_signature()
|
| /optee_os/core/drivers/crypto/caam/acipher/ |
| H A D | caam_dsa.c | 116 crypto_bignum_bin2bn(outkey->q.data, outkey->q.length, key->q); in get_keypair_domain_params() 117 crypto_bignum_bin2bn(outkey->g.data, outkey->g.length, key->g); in get_keypair_domain_params() 118 crypto_bignum_bin2bn(outkey->p.data, outkey->p.length, key->p); in get_keypair_domain_params() 472 ret = crypto_bignum_bin2bn(caam_dsa_key.y.data, in do_gen_keypair()
|
| H A D | caam_ecc.c | 348 ret = crypto_bignum_bin2bn(xy.data, xy.length / 2, key->x); in do_gen_keypair() 352 ret = crypto_bignum_bin2bn(xy.data + xy.length / 2, in do_gen_keypair()
|
| H A D | caam_dh.c | 363 ret = crypto_bignum_bin2bn(caam_dh_key.y.data, in do_gen_keypair()
|
| H A D | caam_rsa.c | 737 ret = crypto_bignum_bin2bn(genkey.n.data, genkey.n.length, in do_gen_keypair()
|
| /optee_os/core/drivers/crypto/hisilicon/ |
| H A D | hpre_dh.c | 170 ret = crypto_bignum_bin2bn(buf, key_bytes, x); in hpre_dh_gen_privkey() 320 ret = crypto_bignum_bin2bn(msg.out, msg.out_bytes, key->y); in hpre_dh_gen_keypair()
|
| H A D | hpre_ecc.c | 895 ret = crypto_bignum_bin2bn(rand_k, size, d); in gen_random_k() 945 ret = crypto_bignum_bin2bn(msg.out, ecc_dh->rx_bytes, key->x); in hpre_ecc_gen_keypair() 951 ret = crypto_bignum_bin2bn(msg.out + msg.key_bytes, in hpre_ecc_gen_keypair()
|
| /optee_os/core/pta/ |
| H A D | attestation.c | 61 res = crypto_bignum_bin2bn((uint8_t *)&e, sizeof(e), key->e); in generate_key() 174 res = crypto_bignum_bin2bn(p, sz, bn); in deserialize_bignum()
|
| /optee_os/core/tee/ |
| H A D | tee_svc_cryp.c | 834 res = crypto_bignum_bin2bn(bbuf, size, *bn); in op_attr_bignum_from_user() 912 if (crypto_bignum_bin2bn((const uint8_t *)data + *offs, n, *bn)) in op_attr_bignum_from_binary() 2142 res = crypto_bignum_bin2bn((const uint8_t *)&e, sizeof(e), in tee_svc_obj_generate_key_rsa() 3574 crypto_bignum_bin2bn(bbuf, in get_sm2_kep_params() 3587 crypto_bignum_bin2bn(bbuf, in get_sm2_kep_params() 3601 crypto_bignum_bin2bn(bbuf, in get_sm2_kep_params() 3615 crypto_bignum_bin2bn(bbuf, in get_sm2_kep_params() 3759 crypto_bignum_bin2bn(bbuf, bin_size, pub); in syscall_cryp_derive_key() 3830 crypto_bignum_bin2bn(x_bbuf, params[0].content.ref.length, in syscall_cryp_derive_key() 3832 crypto_bignum_bin2bn(y_bbuf, params[1].content.ref.length, in syscall_cryp_derive_key()
|
| /optee_os/core/include/crypto/ |
| H A D | crypto.h | 95 TEE_Result crypto_bignum_bin2bn(const uint8_t *from, size_t fromsize,
|
| /optee_os/core/drivers/crypto/caam/ |
| H A D | caam_key.c | 636 res = crypto_bignum_bin2bn(buf, size, outkey); in caam_key_serialize_to_bn()
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | mpi_desc.c | 732 TEE_Result crypto_bignum_bin2bn(const uint8_t *from, size_t fromsize, in crypto_bignum_bin2bn() function
|