Low complexity implementation of modified McEliece algorithms