I'll answer for you before you get flamed. Short and simple answer is no, sr20 swap is not legal.
For an engine swap to be legal in Ca, the donor engine needs to be from the same class vehicle (i.e. no truck motors to cars), and needs to be swapped over with all original emission control equipment and sensors. Furthermore, donor engines have to follow an existing USDM engine setup. Finally, it is almost impossible to get an engine swap approved by the ref when converting fwd engines for rwd use and vice versa, since modification of the stock manifolds will be required.
For this reason a SR-20det setup would be illegal since this setup was never offered as a factory option here on any vehicle in the usa. It is theoretically possible to take a jdm motor and equip it with all the necessary smog emissions eqiupment to get it passed, however once you turbo charge it, it would become illegal, unless said turbo kit was approved by the C.A.R.B.
I'm in cali too. Your best options for smog legal power would probably be to do the VQ 35de swap, or if you like, you can do the LS1 swap. Both will require a dedicated amount of cash, however, both are legal options since both are factory offered rwd setups here in the usa.
Hope that helps, welcome to the forums, and next time try to make use of the search option, this question has already been asked countless times.