Optimal Element Allocation for RIS-Aided Physical Layer Security. (21st September 2022)