Home
last modified time | relevance | path

Searched refs:crypto_bignum_bin2bn (Results 1 – 21 of 21) sorted by relevance

/optee_os/core/pta/veraison_attestation/
H A Dsign.c128 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 Ddh.c84 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 Dbignum.c53 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 Drsa.c650 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 Decc.c681 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 Dsigned_hdr.c104 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 Dcrypto.c486 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 Ddh.c86 ret = crypto_bignum_bin2bn(secret_buf, in crypto_acipher_dh_shared_secret()
/optee_os/core/drivers/crypto/stm32/
H A Decc.c127 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 Dremoteproc_pta.c246 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 Dcaam_dsa.c116 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 Dcaam_ecc.c348 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 Dcaam_dh.c363 ret = crypto_bignum_bin2bn(caam_dh_key.y.data, in do_gen_keypair()
H A Dcaam_rsa.c737 ret = crypto_bignum_bin2bn(genkey.n.data, genkey.n.length, in do_gen_keypair()
/optee_os/core/drivers/crypto/hisilicon/
H A Dhpre_dh.c170 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 Dhpre_ecc.c895 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 Dattestation.c61 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 Dtee_svc_cryp.c834 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 Dcrypto.h95 TEE_Result crypto_bignum_bin2bn(const uint8_t *from, size_t fromsize,
/optee_os/core/drivers/crypto/caam/
H A Dcaam_key.c636 res = crypto_bignum_bin2bn(buf, size, outkey); in caam_key_serialize_to_bn()
/optee_os/core/lib/libtomcrypt/
H A Dmpi_desc.c732 TEE_Result crypto_bignum_bin2bn(const uint8_t *from, size_t fromsize, in crypto_bignum_bin2bn() function