Synthesis of cyclic peptides on dual function supports