Lines Matching refs:bbuf

828 	void *bbuf = NULL;  in op_attr_bignum_from_user()  local
830 res = bb_memdup_user(buffer, size, &bbuf); in op_attr_bignum_from_user()
834 res = crypto_bignum_bin2bn(bbuf, size, *bn); in op_attr_bignum_from_user()
836 bb_free(bbuf, size); in op_attr_bignum_from_user()
849 void *bbuf = NULL; in op_attr_bignum_to_user() local
864 bbuf = bb_alloc(req_size); in op_attr_bignum_to_user()
865 if (!bbuf) in op_attr_bignum_to_user()
872 crypto_bignum_bn2bin(*bn, bbuf); in op_attr_bignum_to_user()
873 res = copy_to_user(buffer, bbuf, req_size); in op_attr_bignum_to_user()
875 bb_free(bbuf, req_size); in op_attr_bignum_to_user()
3560 void *bbuf = NULL; in get_sm2_kep_params() local
3570 &bbuf); in get_sm2_kep_params()
3574 crypto_bignum_bin2bn(bbuf, in get_sm2_kep_params()
3578 bb_free(bbuf, p->content.ref.length); in get_sm2_kep_params()
3583 &bbuf); in get_sm2_kep_params()
3587 crypto_bignum_bin2bn(bbuf, in get_sm2_kep_params()
3591 bb_free(bbuf, p->content.ref.length); in get_sm2_kep_params()
3597 &bbuf); in get_sm2_kep_params()
3601 crypto_bignum_bin2bn(bbuf, in get_sm2_kep_params()
3605 bb_free(bbuf, p->content.ref.length); in get_sm2_kep_params()
3611 &bbuf); in get_sm2_kep_params()
3615 crypto_bignum_bin2bn(bbuf, in get_sm2_kep_params()
3619 bb_free(bbuf, p->content.ref.length); in get_sm2_kep_params()
3624 &bbuf); in get_sm2_kep_params()
3628 kep_parms->initiator_id = bbuf; in get_sm2_kep_params()
3635 &bbuf); in get_sm2_kep_params()
3639 kep_parms->responder_id = bbuf; in get_sm2_kep_params()
3646 &bbuf); in get_sm2_kep_params()
3650 kep_parms->conf_in = bbuf; in get_sm2_kep_params()
3656 &bbuf); in get_sm2_kep_params()
3660 kep_parms->conf_out = bbuf; in get_sm2_kep_params()
3736 void *bbuf = NULL; in syscall_cryp_derive_key() local
3752 &bbuf); in syscall_cryp_derive_key()
3759 crypto_bignum_bin2bn(bbuf, bin_size, pub); in syscall_cryp_derive_key()
3979 void *bbuf = NULL; in syscall_cryp_derive_key() local
3995 &bbuf); in syscall_cryp_derive_key()
4000 x25519_pub_key = bbuf; in syscall_cryp_derive_key()
4021 void *bbuf = NULL; in syscall_cryp_derive_key() local
4037 &bbuf); in syscall_cryp_derive_key()
4042 x448_pub_key = bbuf; in syscall_cryp_derive_key()
4069 void *bbuf = NULL; in syscall_cryp_random_number_generate() local
4071 bbuf = bb_alloc(blen); in syscall_cryp_random_number_generate()
4072 if (!bbuf) in syscall_cryp_random_number_generate()
4075 res = crypto_rng_read(bbuf, blen); in syscall_cryp_random_number_generate()
4079 res = copy_to_user(buf, bbuf, blen); in syscall_cryp_random_number_generate()