A novel approach to the synthesis of Boc-core, a key starting material for ritonavir and lopinavir involving an unprecedented diastereoselective nitroaldol reaction on beta-amino aldehyde is disclosed.